@@ -216,8 +216,8 @@ void NotificationEngine::apply( Framebuffer &fb ) const
216216
217217 double since_heard = (double )(now - last_word_from_server) / 1000.0 ;
218218 double since_ack = (double )(now - last_acked_state) / 1000.0 ;
219- const char server_message[] = " contact" ;
220- const char reply_message[] = " reply" ;
219+ const char server_message[] = " contact with " ;
220+ const char reply_message[] = " reply from " ;
221221
222222 double time_elapsed = since_heard;
223223 const char *explanation = server_message;
@@ -235,17 +235,17 @@ void NotificationEngine::apply( Framebuffer &fb ) const
235235 return ;
236236 }
237237 if ( message.empty () && time_expired ) {
238- swprintf ( tmp, 128 , L" mosh: Last %s %s ago.%s" , explanation,
238+ swprintf ( tmp, 128 , L" mosh: Last %s %s %s ago.%s" , explanation, server_addr. c_str () ,
239239 human_readable_duration ( static_cast <int >( time_elapsed ),
240240 " seconds" ).c_str (),
241241 keystroke_str );
242242 } else if ( (!message.empty ()) && (!time_expired) ) {
243243 swprintf ( tmp, 128 , L" mosh: %ls%s" , message.c_str (), keystroke_str );
244244 } else {
245- swprintf ( tmp, 128 , L" mosh: %ls (%s without %s.)%s" , message.c_str (),
245+ swprintf ( tmp, 128 , L" mosh: %ls (%s without %s %s .)%s" , message.c_str (),
246246 human_readable_duration ( static_cast <int >( time_elapsed ),
247247 " s" ).c_str (),
248- explanation, keystroke_str );
248+ explanation, server_addr. c_str (), keystroke_str );
249249 }
250250
251251 wstring string_to_draw ( tmp );
0 commit comments