alacritty / vte

Parser for virtual terminal emulators
https://docs.rs/vte/
Apache License 2.0
242 stars 56 forks source link

SS3 sequence #101

Closed gwenn closed 1 year ago

gwenn commented 1 year ago

On MacOS, F1 key is reported as ESC-O-P ([27, 79, 80]) sequence. But vte reports two events:

vte % cargo run --example parselog
^[OP
[esc_dispatch] intermediates=[], ignore=false, byte=4f
[print] 'P'

Could vte be extended to report a single event ? Thanks.

https://en.wikipedia.org/wiki/C0_and_C1_control_codes#C1_control_codes_for_general_use

Next character invokes a graphic character from the G2 or G3 graphic sets respectively.

chrisduerr commented 1 year ago

C1s are a bad idea and intentionally not supported.