17 Commits

Author SHA1 Message Date
Tim Culverhouse
5e800df277 osc: allow 0x20-0xFF in osc_put
The osc_string state of the parser limited accepted bytes to 0x7F. When
parsing a utf-8 encoded string as part of an OSC string, the parser
would encounter an error and abort the OSC parsing, allowing any
remaining bytes to be leaked (possibly) as printable characters to the
terminal window.

Allow any byte in the range 0x20 - 0xFF to be accepted by osc_put. Add
test cases which conflict with the 'anywhere' transitions (IE the utf8
sequence includes C1 control codes which might transition to another
state).
2023-09-21 03:08:41 -05:00
Mitchell Hashimoto
29e3e79b94 terminal: parse APC strings 2023-08-20 22:03:19 -07:00
Kevin Hovsäter
22b8173164 Fix typos 2023-08-08 14:27:34 +02:00
Mitchell Hashimoto
314f9287b1 Update Zig (#164)
* update zig

* pkg/fontconfig: clean up @as

* pkg/freetype,harfbuzz: clean up @as

* pkg/imgui: clean up @as

* pkg/macos: clean up @as

* pkg/pixman,utf8proc: clean up @as

* clean up @as

* lots more @as cleanup

* undo flatpak changes

* clean up @as
2023-06-30 12:15:31 -07:00
Mitchell Hashimoto
56f8e39e5b Update zig, mach, fmt 2023-06-25 11:08:20 -07:00
Mitchell Hashimoto
f79d9ba3a7 fix regression where BEL is accepted to end OSC sequences 2023-03-17 14:18:34 -07:00
Mitchell Hashimoto
4b57a715b0 terminal: clean up duplicate states in parse table 2023-03-17 14:07:24 -07:00
Mitchell Hashimoto
38cd496c82 terminal: add missing anywhere states to ground, get rid of real state 2023-03-17 13:46:59 -07:00
Mitchell Hashimoto
4a3e2b35b9 terminal: parse table needs to have room for all chars 2022-12-14 21:10:22 -08:00
Mitchell Hashimoto
94c9f73ec0 update comments clarifying changes to state table from vt100.net 2022-05-16 11:26:06 -07:00
Mitchell Hashimoto
ead4cec159 terminal: utf-8 decoding 2022-05-16 09:31:07 -07:00
Mitchell Hashimoto
21be62f780 terminal parser allows colons for SGR 2022-05-11 21:20:04 -07:00
Mitchell Hashimoto
bb4332ac38 terminal: OSC parser 2022-05-10 09:27:29 -07:00
Mitchell Hashimoto
a95e72eced fix release mode builds by building parse table 2022-04-29 20:02:22 -07:00
Mitchell Hashimoto
20f9ad3f55 implement basic VT parser -- only print/execute handled 2022-04-18 11:01:47 -07:00
Mitchell Hashimoto
94f3c5e490 comment 2022-04-18 09:41:04 -07:00
Mitchell Hashimoto
8d389b4ea9 initial VT emulation table 2022-04-18 09:38:52 -07:00