1
0
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:
Jacob Nevins
2005-04-21 13:57:08 +00:00
parent 2e761fefaf
commit fb581ac625
16 changed files with 726 additions and 35 deletions

View File

@ -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);
}