aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-04-15 18:48:12 -0700
committerRob Landley <rob@landley.net>2016-04-16 19:58:56 -0500
commit00a60fcaa318a437ab66d9a6bd6c065a019a8fad (patch)
tree6dbf8f2731b1b4a861dddc385d5e72cc2d512146 /lib
parent406d4c978ac841b34c8725e67da9962957da1848 (diff)
downloadtoybox-00a60fcaa318a437ab66d9a6bd6c065a019a8fad.tar.gz
Fix "ssh top".
The ps.c change allows us to start. The interestingtimes.c change allows us to clean up properly afterwards if you ^C out (which you usually do). Tested with both ssh and "adb shell" (the latter being where I noticed the problem).
Diffstat (limited to 'lib')
-rw-r--r--lib/interestingtimes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/interestingtimes.c b/lib/interestingtimes.c
index c4ea2c27..8337ce8b 100644
--- a/lib/interestingtimes.c
+++ b/lib/interestingtimes.c
@@ -227,7 +227,7 @@ void tty_jump(int x, int y)
void tty_reset(void)
{
- set_terminal(1, 0, 0);
+ set_terminal(0, 0, 0);
tty_esc("?25h");
tty_esc("0m");
tty_jump(0, 999);