1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 20:12:48 -05:00

Bug fix: line discipline selection is not enabled until after ssh

authentication phase to stop user/password prompts behaving oddly

[originally from svn r614]
This commit is contained in:
Simon Tatham
2000-09-22 13:10:19 +00:00
parent e5ef37f3f5
commit c0ac8ab9b4
7 changed files with 37 additions and 5 deletions

View File

@ -82,6 +82,12 @@ static Mouse_Button lastbtn;
static char *window_name, *icon_name;
static Ldisc *real_ldisc;
void begin_session(void) {
ldisc = real_ldisc;
}
int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) {
static char appname[] = "PuTTY";
WORD winsock_ver;
@ -239,7 +245,10 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) {
}
}
ldisc = (cfg.ldisc_term ? &ldisc_term : &ldisc_simple);
real_ldisc = (cfg.ldisc_term ? &ldisc_term : &ldisc_simple);
/* To start with, we use the simple line discipline, so we can
* type passwords etc without fear of them being echoed... */
ldisc = &ldisc_simple;
if (!prev) {
wndclass.style = 0;