Add ~. and ~^Z handling to exit/suspend dbclient

This commit is contained in:
Matt Johnston
2013-03-23 23:16:06 +08:00
parent c172fb3b32
commit 5996c3824c
5 changed files with 81 additions and 4 deletions

View File

@@ -259,6 +259,9 @@ struct clientsession {
int stderrcopy;
int stderrflags;
/* for escape char handling */
int last_char;
int winchange; /* Set to 1 when a windowchange signal happens */
int lastauthtype; /* either AUTH_TYPE_PUBKEY or AUTH_TYPE_PASSWORD,