User sequences to repaint and quit

This commit is contained in:
Keith Winstein
2011-10-13 01:16:55 -04:00
parent 5f8fe39ac2
commit 80f34faadd
5 changed files with 44 additions and 11 deletions
+2 -2
View File
@@ -140,11 +140,11 @@ void NotificationEngine::render_notification( void )
if ( message.empty() && (!time_expired) ) {
return;
} else if ( message.empty() && time_expired ) {
swprintf( tmp, 128, L"[stm] No contact for %.0f seconds.", (double)(now - last_word) / 1000.0 );
swprintf( tmp, 128, L"[stm] No contact for %.0f seconds. [To quit: Ctrl-^ .]", (double)(now - last_word) / 1000.0 );
} else if ( (!message.empty()) && (!time_expired) ) {
swprintf( tmp, 128, L"[stm] %ls", message.c_str() );
} else {
swprintf( tmp, 128, L"[stm] %ls (No contact for %.0f seconds.)", message.c_str(),
swprintf( tmp, 128, L"[stm] %ls [To quit: Ctrl-^ .] (No contact for %.0f seconds.)", message.c_str(),
(double)(now - last_word) / 1000.0 );
}