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

2015-03-18 Thread Roberto E. Vargas Caballero
I'm going to apply it, but with this small change: - csiescseq.mode[1] = *p; + csiescseq.mode[1] = (p < csiescseq.buf+csiescseq.len) ? *p : '\0'; because my suggestion was not totally true, and it was possible go further of the end of the string. Regards,

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

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

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

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