scripts/mosh: Add --no-init option to disable alternate screen mode
Signed-off-by: Anders Kaseorg <andersk@mit.edu> Closes #384. Closes #2.
This commit is contained in:
committed by
Keith Winstein
parent
ed42d31bda
commit
ea3ad786fa
@@ -146,7 +146,9 @@ Display::Display( bool use_environment )
|
||||
posterize_colors = ti_num( "colors" ) < 256;
|
||||
*/
|
||||
|
||||
smcup = ti_str("smcup");
|
||||
rmcup = ti_str("rmcup");
|
||||
if ( !getenv( "MOSH_NO_TERM_INIT" ) ) {
|
||||
smcup = ti_str("smcup");
|
||||
rmcup = ti_str("rmcup");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user