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:
Anders Kaseorg
2013-01-27 22:05:07 -05:00
committed by Keith Winstein
parent ed42d31bda
commit ea3ad786fa
3 changed files with 16 additions and 2 deletions
+4 -2
View File
@@ -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");
}
}
}