Ok, the third time's a charm heh. I hope the patch is alright now.
- 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
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
---
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 */
---
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 */