mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
vere: adds backwards-compatibility TODO comments for terminal inputs
This commit is contained in:
parent
b0b2e3aec8
commit
c270708b76
@ -664,10 +664,15 @@ _term_io_suck_char(u3_utty* uty_u, c3_y cay_y)
|
||||
else {
|
||||
if ( (cay_y >= 'a') && (cay_y <= 'z') ) {
|
||||
tat_u->esc.ape = c3n;
|
||||
// XX for backwards compatibility, check kelvin version
|
||||
// and fallback to [%met @c]
|
||||
//
|
||||
_term_io_belt(uty_u, u3nt(c3__mod, c3__met, cay_y));
|
||||
}
|
||||
else if ( 8 == cay_y || 127 == cay_y ) {
|
||||
tat_u->esc.ape = c3n;
|
||||
// XX backwards compatibility [%met @c]
|
||||
//
|
||||
_term_io_belt(uty_u, u3nq(c3__mod, c3__met, c3__bac, u3_nul));
|
||||
}
|
||||
else if ( ('[' == cay_y) || ('O' == cay_y) ) {
|
||||
@ -732,6 +737,8 @@ _term_io_suck_char(u3_utty* uty_u, c3_y cay_y)
|
||||
_term_io_belt(uty_u, u3nc(c3__ret, u3_nul));
|
||||
}
|
||||
else if ( cay_y <= 26 ) {
|
||||
// XX backwards compatibility [%ctl @c]
|
||||
//
|
||||
_term_io_belt(uty_u, u3nt(c3__mod, c3__ctl, ('a' + (cay_y - 1))));
|
||||
}
|
||||
else if ( 27 == cay_y ) {
|
||||
|
Loading…
Reference in New Issue
Block a user