Mitchell Hashimoto
65df657b4e
make cell attrs bools instead of u1s
2022-08-26 11:09:48 -07:00
Mitchell Hashimoto
4ffd5cd994
SGR 39/49 (reset fg/bg, respectively)
2022-08-26 09:56:17 -07:00
Mitchell Hashimoto
46bbab5d10
ignore zero-width characters for now
2022-08-24 13:48:22 -07:00
Mitchell Hashimoto
ec288d9111
get rid of assertions because its possible they're false
2022-08-20 17:21:14 -07:00
Mitchell Hashimoto
da79aae0ab
terminal: print wide characters
2022-08-20 16:11:48 -07:00
Mitchell Hashimoto
2457454b07
test wasm of the term package
2022-08-17 13:57:21 -07:00
Mitchell Hashimoto
ad1cdbcd59
implement erase display scrollback ("clear" command)
2022-08-09 09:22:34 -07:00
Mitchell Hashimoto
38af14ff3a
resize alt screen without reflow
2022-08-08 21:14:27 -07:00
Mitchell Hashimoto
be3a539152
start working on new resize with reflow, can grow rows
2022-08-07 15:52:53 -07:00
Mitchell Hashimoto
2d6d027097
Screen.region to get a region of contiguous memory for a tag
2022-08-07 10:46:35 -07:00
Mitchell Hashimoto
05e0adaa01
screen operations operate on the active area
...
This fixes tons of bugs around escape sequences while scrolling that
used to work on the offset from the viewport (which is wrong). This now
calculates the actual active area and does that. This also fixes the
TODO in the diff.
2022-08-07 09:49:54 -07:00
Mitchell Hashimoto
8ea20f9e41
start changing getRow and rowIndex to use tagged indexes
...
Lots of bugs here, but it MATCHES the bugs!
2022-08-07 09:41:30 -07:00
Mitchell Hashimoto
c99a79055c
HPA does nothing when status display is active
2022-08-05 19:56:40 -07:00
Mitchell Hashimoto
974138378b
introducing dedicated point types
2022-08-04 13:04:42 -07:00
Mitchell Hashimoto
1680aee880
some logging improvements
2022-08-03 21:13:05 -07:00
Mitchell Hashimoto
befeb08b3d
add a lot more tracing as I hunt down some performance things
2022-08-03 09:56:32 -07:00
Mitchell Hashimoto
40cec18943
implement DECSASD by just blackholing the output for now
...
We don't want to support status lines, and if anything sends us status
line information we don't want it to mess up the main display, so just
drop it.
2022-08-02 11:03:01 -07:00
Mitchell Hashimoto
2b80699179
cursor position absolute needs to ignore all the offset stuff
2022-08-02 10:30:20 -07:00
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
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
f602d09d5d
hook up scrolling, kind of works, kind of broke
2022-07-10 17:04:19 -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
afd47eb10c
start building in "scrolling" of sorts
2022-07-10 14:45:43 -07:00
Mitchell Hashimoto
4b6968e0d1
enable/disable autowrap
2022-07-08 17:43:52 -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
245b9642f9
save and restore cursor
2022-06-25 10:56:41 -07:00
Mitchell Hashimoto
090e580cc7
setting and clearing tab stops
2022-06-24 18:15:14 -07:00