Commit Graph
75 Commits
Author SHA1 Message Date
Kovid Goyal 96d2567815 Fix compilation with gcc >= 7
Requires explicit fallthrough comments in switch statements
2017-06-03 08:59:09 +05:30
Kovid Goyal c27b597951 Fix incorrect implementation of the CSI scroll commands
I was lazy and just assumed they were n indexes, but they actually
scroll the screen without moving the cursor. Fixes #76
2017-05-19 19:25:41 +05:30
Kovid Goyal d180601711 More command replaying 2017-05-19 15:43:15 +05:30
Kovid Goyal 14a66762a6 Fix incorrect response to request for device attributes 2017-05-17 10:33:33 +05:30
Kovid Goyal f0c546208d Implement OSC codes for changing selection colors 2017-05-17 08:55:57 +05:30
Kovid Goyal 0c8231d356 Implement OSC codes for changing cursor colors 2017-05-17 07:10:23 +05:30
Kovid Goyal 35f2b3254a A spot of refactoring 2017-04-28 08:54:06 +05:30
Kovid Goyal 898a8075be Fix #69 2017-04-28 08:31:07 +05:30
Kovid Goyal db2d14d9ed Fix backslashes in OSC codes not being parsed correctly
Fixes #61
2017-04-05 09:07:55 +05:30
Kovid Goyal c504b96b60 Add a --dump-bytes option, useful for reproducing problems from users computers 2017-04-05 00:13:31 +05:30
Kovid Goyal bb7edb5f8f Implement DECRQM
Also add tests for DECRQM and DECCKM
2017-02-05 16:21:13 +05:30
Kovid Goyal cc14562f2c Forgot the unicode version of APC and PM 2017-01-20 13:40:58 +05:30
Kovid Goyal 0612855c95 Ignore PM and APC control codes 2017-01-20 13:31:05 +05:30
Kovid Goyal a9efe7036c Fix an infinite loop in the UTF-8 decoding code with invalid input 2017-01-18 12:19:29 +05:30
Kovid Goyal d0c16e8b7b Fix crash when parsing malformed CSI sequence with several thousand parameters 2016-12-19 18:33:48 +05:30
Kovid Goyal 1648ac1036 Add support for CSI s/u used by some old programs 2016-12-14 10:19:51 +05:30
Kovid Goyal a568f73e77 Fix compilation with clang 2016-12-12 13:36:11 +05:30
Kovid Goyal 489504cda5 More charset fixes
Properly use the G0/G1 charsets only to map characters being drawn to
the screen. And only decode bytes using either Latin-1 or UTF-8,
defaulting to UTF-8 at startup/reset.
2016-11-30 23:36:10 +05:30
Kovid Goyal 635ce4dc10 Implement CHT 2016-11-30 21:55:20 +05:30
Kovid Goyal 9e68cc559a Implement CBT 2016-11-30 21:50:54 +05:30
Kovid Goyal ce1514963b Various charset related fixes
Fix changing of charset not taking effect immediately while parsing a
single block of bytes

Fix incorrect mapping of C0 control codes in some of the charsets
2016-11-30 19:44:41 +05:30
Kovid Goyal c713712f89 Restore support for charsets other than UTF-8 2016-11-30 17:48:52 +05:30
Kovid Goyal f36aa19c3f Pull out the dispatching of unicode characters 2016-11-30 16:29:31 +05:30
Kovid Goyal 45a5190a0d Handle CSI codes that start with a ; 2016-11-30 16:03:45 +05:30
Kovid Goyal 95d3f20832 Do not ignore CUP when y is out of margins, instead clamp to margins 2016-11-30 14:58:34 +05:30
Kovid Goyal f7ad3120cf Fix handling of NEL 2016-11-30 12:17:09 +05:30
Kovid Goyal 5b78769d28 Report unshifted mode numbers 2016-11-30 09:04:59 +05:30
Kovid Goyal 49f3a4213c ... 2016-11-30 08:51:40 +05:30
Kovid Goyal 56cfc7df3b Handle leading zeroes in CSI codes 2016-11-30 08:50:55 +05:30
Kovid Goyal d132ba5a48 Implement DECALN 2016-11-30 08:34:02 +05:30
Kovid Goyal 256a5318f1 Improve dumping of SGR command 2016-11-30 07:51:25 +05:30
Kovid Goyal 03f7ced17e Release GIL during read() 2016-11-25 10:26:42 +05:30
Kovid Goyal 3031d41e72 Start work on supporting changing of entries in the color table 2016-11-24 15:28:52 +05:30
Kovid Goyal c983f002c1 Also silently ignore attempts to change charset to US-ASCII (apparently curses does that a lot) 2016-11-24 13:57:00 +05:30
Kovid Goyal 41e583842e Flush draw buf at end of each parse call 2016-11-24 13:43:28 +05:30
Kovid Goyal bbea86020a Implement DCS querying of terminfo data 2016-11-24 12:12:19 +05:30
Kovid Goyal d65caa767a Implement scroll by n lines 2016-11-24 10:36:54 +05:30
Kovid Goyal 2e3e6d331d Parse DCS+q 2016-11-24 08:14:29 +05:30
Kovid Goyal 56fe60ae84 ... 2016-11-23 20:36:29 +05:30
Kovid Goyal f03813e588 Check array access 2016-11-23 20:33:49 +05:30
Kovid Goyal 9f6da44ee9 ... 2016-11-23 20:32:36 +05:30
Kovid Goyal 2c3893d8a4 Port parsing of CSI codes 2016-11-23 20:23:37 +05:30
Kovid Goyal ce8db74154 Port OSC parsing 2016-11-23 17:25:38 +05:30
Kovid Goyal cdd58207a3 Start migrating the tests 2016-11-23 15:47:22 +05:30
Kovid Goyal f14e7037e2 Start work on dumping non-UTF-8 charset support 2016-11-23 15:33:08 +05:30
Kovid Goyal 4b0e8fcb49 ... 2016-11-23 11:11:23 +05:30
Kovid Goyal a0df10d0c2 Start work on handling DCS 2016-11-23 11:08:35 +05:30
Kovid Goyal d87e4eeb95 Speed un reading from child process
Do the reading into a pre-allocated buffer to avoid mallocs in the inner
loop.
2016-11-19 16:59:12 +05:30
Kovid Goyal 6e7f537850 DRYer 2016-11-19 15:06:56 +05:30
Kovid Goyal 42976b1048 Allow OSC codes that consist of only a numeric component 2016-11-19 13:48:49 +05:30