Show the escape key properly when server unavailable.

Fixes #624.

Signed-off-by: John Hood <cgull@glup.org>
This commit is contained in:
John Hood
2015-06-08 21:57:08 -04:00
parent 39c8b04c97
commit fc80eaaecf
3 changed files with 10 additions and 2 deletions
+1
View File
@@ -186,6 +186,7 @@ void STMClient::init( void )
tmp = string( escape_key_name_buf );
wstring escape_key_name = std::wstring(tmp.begin(), tmp.end());
escape_key_help = L"Commands: Ctrl-Z suspends, \".\" quits, " + escape_pass_name + L" gives literal " + escape_key_name;
overlays.get_notification_engine().set_escape_key_string( tmp );
}
wchar_t tmp[ 128 ];
swprintf( tmp, 128, L"Nothing received from server on UDP port %s.", port.c_str() );