mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-16 02:27:32 -05:00
Withdraw support for the DECEDM escape sequence.
Having decided that the terminal's local echo setting shouldn't be allowed to propagate through to termios, I think the local edit setting shouldn't either. Also, no other terminal emulator I know seems to implement this sequence, and if you enable it, things get very confused in general. I think it's generally better off absent; if somebody turns out to have been using it, then we'll at least be able to find out what it's good for.
This commit is contained in:
15
terminal.c
15
terminal.c
@ -1341,7 +1341,6 @@ static void power_on(Terminal *term, bool clear)
|
||||
term->alt_save_attr = term->curr_attr = ATTR_DEFAULT;
|
||||
term->curr_truecolour.fg = term->curr_truecolour.bg = optionalrgb_none;
|
||||
term->save_truecolour = term->alt_save_truecolour = term->curr_truecolour;
|
||||
term->term_editing = false;
|
||||
term->app_cursor_keys = conf_get_bool(term->conf, CONF_app_cursor);
|
||||
term->app_keypad_keys = conf_get_bool(term->conf, CONF_app_keypad);
|
||||
term->use_bce = conf_get_bool(term->conf, CONF_bce);
|
||||
@ -2639,11 +2638,6 @@ static void toggle_mode(Terminal *term, int mode, int query, bool state)
|
||||
case 8: /* DECARM: auto key repeat */
|
||||
term->repeat_off = !state;
|
||||
break;
|
||||
case 10: /* DECEDM: set local edit mode */
|
||||
term->term_editing = state;
|
||||
if (term->ldisc) /* cause ldisc to notice changes */
|
||||
ldisc_echoedit_update(term->ldisc);
|
||||
break;
|
||||
case 25: /* DECTCEM: enable/disable cursor */
|
||||
compatibility2(OTHER, VT220);
|
||||
term->cursor_on = state;
|
||||
@ -7025,15 +7019,6 @@ void term_lost_clipboard_ownership(Terminal *term, int clipboard)
|
||||
term_out(term);
|
||||
}
|
||||
|
||||
bool term_ldisc(Terminal *term, int option)
|
||||
{
|
||||
if (option == LD_ECHO)
|
||||
return false;
|
||||
if (option == LD_EDIT)
|
||||
return term->term_editing;
|
||||
return false;
|
||||
}
|
||||
|
||||
static void term_added_data(Terminal *term)
|
||||
{
|
||||
if (!term->in_term_out) {
|
||||
|
Reference in New Issue
Block a user