File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,8 @@ void STMClient::main_init( void )
257257
258258 network->set_send_delay ( 1 ); /* minimal delay on outgoing keystrokes */
259259
260+ /* Hold session until further notice */
261+ network->get_current_state ().push_back ( Parser::HoldSession ( true ) );
260262 /* tell server the size of the terminal */
261263 network->get_current_state ().push_back ( Parser::Resize ( window_size.ws_col , window_size.ws_row ) );
262264
@@ -267,6 +269,8 @@ void STMClient::main_init( void )
267269 /* send server the wcwidth overlay */
268270 network->get_current_state ().
269271 push_back ( Parser::ChWidthOverlay ( network_overlay ) );
272+ /* Release session. (In a future version of Mosh, this might be in a later message.) */
273+ network->get_current_state ().push_back ( Parser::HoldSession ( false ) );
270274
271275
272276 /* be noisy as necessary */
You can’t perform that action at this time.
0 commit comments