fixup alt-KEY to send escape rather than set bits
This commit is contained in:
1 parent
d289906dbc
commit
7ab462f2bd
1 file changed
+4
-1
+4
-1
@@ -1249,7 +1249,10 @@ impl TerminalState {
|
||||
buf.as_str()
|
||||
}
|
||||
(Char(c), _, ALT, ..) if c <= 0xff as char => {
|
||||
buf.push((c as u8 | 0x80) as char);
|
||||
// TODO: add config option to select 8-bit vs. escape behavior?
|
||||
//buf.push((c as u8 | 0x80) as char);
|
||||
buf.push(0x1b as char);
|
||||
buf.push(c);
|
||||
buf.as_str()
|
||||
}
|
||||
(Char(c), ..) => {
|
||||
|
||||
Reference in new issue
Block a user