Rylee Lyman
e2c19c3c8f
fix: update to zig 0.13, broken test
2024-06-09 04:53:58 -07:00
Tim Culverhouse
0cb81e30eb
parser: fix handling of function keys with kitty encoding
2024-06-05 12:52:49 -05:00
Tim Culverhouse
91152eecdf
parser: remove log line
2024-06-05 11:56:08 -05:00
Tim Culverhouse
43a714de0c
parser: fix query responses for kitty kbd, decrpm
2024-06-05 11:49:03 -05:00
Tim Culverhouse
49003b0e2b
refactor(parser): make parser easier to read and more robust
...
Refactor the parser to be more robust and easier to read.
2024-05-28 10:33:36 -05:00
Tim Culverhouse
93ac8e00f8
vaxis: add support for color scheme updates
2024-05-26 06:52:06 -05:00
Tim Culverhouse
6b9f91986c
vaxis: add support for color reports (OSC 4, 10, 11, 12)
...
Add support for querying colors (index, foreground, background, and
cursor)
2024-05-24 10:59:20 -05:00
CJ van den Berg
473357f24a
parser: don't enable pixel mouse if the terminal explicitly says it doesn't support it
2024-05-23 13:05:36 -05:00
CJ van den Berg
55809160b9
vaxis: detect pixel mouse mode and translate coordinates to cell offsets
...
This detects support for pixel mouse mode so it can be enabled only
if supported.
This also translates pixel coordinates to something more compatible
with plaine cell coordinates. This make it much easier to write
applications that support both.
2024-05-22 15:04:26 -05:00
CJ van den Berg
a75cce6e78
parser: fix panic on zero mouse coordinate reports
2024-05-22 15:04:26 -05:00
CJ van den Berg
d48826c0b1
vaxis: add osc52 copy/paste support
2024-05-22 13:51:19 -05:00
Tim Culverhouse
92883f5d42
event: handle key_release events
2024-04-30 08:42:21 -05:00
Tim Culverhouse
8a71cd4c85
zg: complete replacement of ziglyph with zg
2024-04-29 14:00:08 -05:00
Tim Culverhouse
770f6d1c07
parser: fix 0x0A decoding
...
0x0A should be decoded as Key.enter
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2024-04-03 19:38:06 -05:00
Tim Culverhouse
d51530cb73
parser: don't encode tab and enter as ctrl+I and ctrl+m
2024-02-24 19:25:45 -06:00
Tim Culverhouse
927b4120b5
tests: remove finished TODO
...
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2024-01-31 20:07:02 -06:00
Tim Culverhouse
f3cf7bcfcd
mouse: implement mouse parsing and events
...
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2024-01-31 12:50:00 -06:00
Tim Culverhouse
8c8c592722
parser: handle parsing of apc, sos, pm strings
...
This lets us detect kitty graphics.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2024-01-31 06:59:34 -06:00
Tim Culverhouse
b57342726f
parser: parse 0x08 as backspace
...
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2024-01-24 06:45:24 -06:00
Tim Culverhouse
04f6117cfe
vaxis: enable da1 parsing, use futex timeout to return from query
...
Now that DA1 parsing is done, block the queryTerminal function until the
DA1 response is received, or a 1 second timeout elapses. With this
functionality, move certain events into Vaxis's realm of handling: IE
enabling kitty keyboard, unicode mode, etc
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2024-01-23 21:30:09 -06:00
Tim Culverhouse
a2dc97c039
vaxis: add mode 2027 query parsing, wcwidth measurement
...
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2024-01-23 21:06:02 -06:00
Tim Culverhouse
aaa1c17a81
key: enable kitty keyboard
...
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2024-01-23 13:25:31 -06:00