[dev] [st] Support the DECSCUSR CSI escape sequence

2015-03-18 Thread LemonBoy
Ok, the third time's a charm heh. I hope the patch is alright now.

[dev] [st] Support the DECSCUSR CSI escape sequence

2015-03-18 Thread Roberto E. Vargas Caballero
- csiescseq.mode = *p; + csiescseq.mode[0] = *p; + p++; + if (strchr(q, *p)) + csiescseq.mode[1] = *p; } The strchr is not needed, you can do something like: csiescseq.mode[0] = *p++; csiescseq.mode[1] = *p; if the string has only one

Re: [dev] [st] Support the DECSCUSR CSI escape sequence

2015-03-17 Thread Ivan Delalande
Hi, On Tue, Mar 17, 2015 at 09:04:32PM +0100, LemonBoy wrote: --- st.c | 47 ++- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/st.c b/st.c index 836ae21..37da82e 100644 --- a/st.c +++ b/st.c @@ -257,6 +257,7 @@ typedef struct

[dev] [st] Support the DECSCUSR CSI escape sequence

2015-03-17 Thread LemonBoy
--- st.c | 64 +++- 1 file changed, 51 insertions(+), 13 deletions(-) diff --git a/st.c b/st.c index 836ae21..d8e9b94 100644 --- a/st.c +++ b/st.c @@ -197,14 +197,14 @@ typedef struct { } TCursor; /* CSI Escape sequence structs */

[dev] [st] Support the DECSCUSR CSI escape sequence

2015-03-17 Thread LemonBoy
--- st.c | 47 ++- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/st.c b/st.c index 836ae21..37da82e 100644 --- a/st.c +++ b/st.c @@ -257,6 +257,7 @@ typedef struct { int ch; /* char height */ int cw; /* char width */