158 Commits

Author SHA1 Message Date
Mitchell Hashimoto
28acd99d7d reset inverse attribute 2022-07-26 09:37:52 -07:00
Mitchell Hashimoto
85a9e6fdf0 fix an off by one in set cursor pos 2022-07-25 17:03:20 -07:00
Mitchell Hashimoto
a239098883 index should return after handling bottom-most line in scroll region 2022-07-25 08:08:23 -07:00
Mitchell Hashimoto
d81bb19af6 fix crash we can get with horizontal tabs off the end of the screen 2022-07-24 16:33:57 -07:00
Mitchell Hashimoto
5c8c9d8e3c support DECCOLM
This gets vttest page 1 and page 2 now FULL passing.

We now crash on page 3. This is a lingering bug in our grid code
though and we need to find it anyways so we'll keep the crash in.
2022-07-24 16:06:04 -07:00
Mitchell Hashimoto
a3409ac70d erase line left should include cursor position 2022-07-24 09:53:21 -07:00
Mitchell Hashimoto
a43c63111f count = 0 implies 1 for all cursor movement, fixes one line of vttest 2022-07-24 09:38:38 -07:00
Mitchell Hashimoto
6369f1f2f9 big improvements in action logging 2022-07-24 09:20:02 -07:00
Mitchell Hashimoto
4a9b8ea187 add a formatter for CSI logs so that they're more easy to read 2022-07-23 18:13:37 -07:00
Mitchell Hashimoto
dfde2acf10 on resize, make sure we resize the alt screen too 2022-07-22 14:22:53 -07:00
Mitchell Hashimoto
855a71d55c quiet noisy log 2022-07-22 13:45:51 -07:00
Mitchell Hashimoto
d672bedec7 alternate screen buffer (mode 1049) now supported 2022-07-22 13:36:16 -07:00
Mitchell Hashimoto
5564bd7213 cursor belongs to screen (prep for alternate screen) 2022-07-22 13:08:40 -07:00
Mitchell Hashimoto
f445de7568 CSI: Insert Blanks (ESC [ n @) 2022-07-22 09:58:39 -07:00
Mitchell Hashimoto
fbd79ee585 comment to be clear 2022-07-17 10:06:17 -07:00
Mitchell Hashimoto
baf2f9c1de index (IND) handles scroll up properly with a scrolling region set
This makes vttest slightly closer.
2022-07-15 17:01:03 -07:00
Mitchell Hashimoto
8dbb6343f4 KIND OF handle mode 3 (132 col mode)
This gets vttest looking slightly better on test 1, page 4. It still
isn't correct but we're looking better.
2022-07-15 09:34:17 -07:00
Mitchell Hashimoto
1f12577b8c use packed struct for modes 2022-07-15 09:18:54 -07:00
Mitchell Hashimoto
3655609886 fix tab behavior, should not print 2022-07-14 13:43:38 -07:00
Mitchell Hashimoto
dcc5fe34cf typing jumps scroll to bottom 2022-07-12 21:07:58 -07:00
Mitchell Hashimoto
45992ff9c9 defining some terms, prepare to have helpers for active vs history 2022-07-11 07:55:10 -07:00
Mitchell Hashimoto
7213bfb14a disable debug 2022-07-11 07:19:24 -07:00
Mitchell Hashimoto
07d5e3c588 scroll down with no scrollback fixes 2022-07-11 06:53:21 -07:00
Mitchell Hashimoto
f602d09d5d hook up scrolling, kind of works, kind of broke 2022-07-10 17:04:19 -07:00
Mitchell Hashimoto
67d6114202 can scroll to bottom 2022-07-10 16:30:27 -07:00
Mitchell Hashimoto
a09b87bc9e scroll with delta no grow 2022-07-10 15:54:32 -07:00
Mitchell Hashimoto
9f3e6344cc fix build 2022-07-10 15:49:17 -07:00
Mitchell Hashimoto
d36bf5195c scroll down behaves correctly 2022-07-10 14:58:10 -07:00
Mitchell Hashimoto
0fc9c956c4 better tests around scrollback 2022-07-10 14:52:35 -07:00
Mitchell Hashimoto
afd47eb10c start building in "scrolling" of sorts 2022-07-10 14:45:43 -07:00
Mitchell Hashimoto
5606bec8b8 add constants for 132 col mode but don't implement 2022-07-08 17:49:09 -07:00
Mitchell Hashimoto
4b6968e0d1 enable/disable autowrap 2022-07-08 17:43:52 -07:00
Mitchell Hashimoto
79f684ab0f disable action debug 2022-07-08 17:38:50 -07:00
Mitchell Hashimoto
4cc38e7281 implement auto-wrap, always enabled for now (ignores mode 7) 2022-07-08 17:37:22 -07:00
Mitchell Hashimoto
f53efa633a initial underline support, can be improved 2022-06-28 14:22:25 -07:00
Mitchell Hashimoto
75b9d1cb84 bold font rendering 2022-06-28 13:44:20 -07:00
Mitchell Hashimoto
e325ea1616 parse more SGR attrs 2022-06-26 17:37:08 -07:00
Mitchell Hashimoto
fae36f4e65 reverse colors 2022-06-26 11:56:15 -07:00
Mitchell Hashimoto
4753b64690 fix test 2022-06-26 10:10:08 -07:00
Mitchell Hashimoto
b42c54e964 fix tabstops off by one 2022-06-25 11:08:20 -07:00
Mitchell Hashimoto
96d2de8f60 enq and cursor report with origin mode 2022-06-25 11:04:48 -07:00
Mitchell Hashimoto
245b9642f9 save and restore cursor 2022-06-25 10:56:41 -07:00
Mitchell Hashimoto
fb6800c8ce handle SO/SI but don't do anything yet (just don't crash) 2022-06-25 10:06:40 -07:00
Mitchell Hashimoto
090e580cc7 setting and clearing tab stops 2022-06-24 18:15:14 -07:00
Mitchell Hashimoto
4d2d4322f4 implement VT 2022-06-24 18:00:42 -07:00
Mitchell Hashimoto
4661b73d01 NEL next line 2022-06-24 17:55:38 -07:00
Mitchell Hashimoto
51b2786a3b hook up IND index 2022-06-24 17:53:17 -07:00
Mitchell Hashimoto
55db659d2b basic "index" implementation 2022-06-24 17:47:43 -07:00
Mitchell Hashimoto
f7aca2e493 f CSI alias for set cursor pos 2022-06-24 10:20:56 -07:00
Mitchell Hashimoto
52c5af9228 erase line complete 2022-06-24 10:02:50 -07:00