diff options
author | Thomas Adam <thomas@xteddy.org> | 2023-01-09 16:01:11 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2023-01-09 16:01:11 +0000 |
commit | 9b1ea8b16d53a73c1dcd0ca020a45e9d1dd08ac6 (patch) | |
tree | 42ad851d0dfe817da1328dc7171d5ef738f52a20 | |
parent | 90512202434daa0c1c7d2d2d7fffd4f58ea7ab77 (diff) | |
parent | b41892622de3a2383ff5b419364530f08223558e (diff) | |
download | rtmux-9b1ea8b16d53a73c1dcd0ca020a45e9d1dd08ac6.tar.gz rtmux-9b1ea8b16d53a73c1dcd0ca020a45e9d1dd08ac6.tar.bz2 rtmux-9b1ea8b16d53a73c1dcd0ca020a45e9d1dd08ac6.zip |
Merge branch 'obsd-master'
-rw-r--r-- | tty-keys.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1528,13 +1528,11 @@ tty_keys_colours(struct tty *tty, const char *buf, size_t len, size_t *size) } if (i == (sizeof tmp) - 1) return (-1); - if (tmp[i] == '\007') { - *size = 5 + i; - tmp[i] = '\0'; - } else { - *size = 6 + i; + if (tmp[i - 1] == '\033') tmp[i - 1] = '\0'; - } + else + tmp[i] = '\0'; + *size = 6 + i; n = colour_parseX11(tmp); if (n != -1 && buf[3] == '0') { |