Oops - repercussions of the close-on-exit stuff which I forgot to

check in. I must stop doing my Unix checkins in the Unix subdir :-(

[originally from svn r2125]
This commit is contained in:
Simon Tatham 2002-10-24 14:12:55 +00:00
Родитель c0a3c62f6a
Коммит 6e549a6db3
3 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

@ -73,6 +73,12 @@ void ldisc_send(char *buf, int len, int interactive)
ldisc_update(ECHOING, EDITING);
return;
}
/*
* Notify the front end that something was pressed, in case
* it's depending on finding out (e.g. keypress termination for
* Close On Exit).
*/
frontend_keypress();
/*
* Less than zero means null terminated special string.
*/

Просмотреть файл

@ -429,6 +429,7 @@ void beep(int);
void begin_session(void);
void sys_cursor(int x, int y);
void request_paste(void);
void frontend_keypress(void);
#define OPTIMISE_IS_SCROLL 1
void set_iconic(int iconic);

Просмотреть файл

@ -4553,3 +4553,14 @@ void flip_full_screen()
ShowWindow(hwnd, SW_MAXIMIZE);
}
}
void frontend_keypress(void)
{
/*
* Keypress termination in non-Close-On-Exit mode is not
* currently supported in PuTTY proper, because the window
* always has a perfectly good Close button anyway. So we do
* nothing here.
*/
return;
}