mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 12:02:47 -05:00
First crack at `terminal-modes' in SSH. PuTTY now sends ERASE by default,
Unix Plink sends everything sensible it can find, and it's fully configurable from the GUI. I'm not entirely sure about the precise set of modes that Unix Plink should look at; informed tweaks are welcome. Also the Mac bits are guesses (but trivial). [originally from svn r5653] [this svn revision also touched putty-wishlist]
This commit is contained in:
14
terminal.c
14
terminal.c
@ -6265,3 +6265,17 @@ void term_set_focus(Terminal *term, int has_focus)
|
||||
term->has_focus = has_focus;
|
||||
term_schedule_cblink(term);
|
||||
}
|
||||
|
||||
/*
|
||||
* Provide "auto" settings for remote tty modes, suitable for an
|
||||
* application with a terminal window.
|
||||
*/
|
||||
char *term_get_ttymode(Terminal *term, const char *mode)
|
||||
{
|
||||
char *val = NULL;
|
||||
if (strcmp(mode, "ERASE") == 0) {
|
||||
val = term->cfg.bksp_is_delete ? "^?" : "^H";
|
||||
}
|
||||
/* FIXME: perhaps we should set ONLCR based on cfg.lfhascr as well? */
|
||||
return dupstr(val);
|
||||
}
|
||||
|
Reference in New Issue
Block a user