aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/posix/ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/ps.c b/toys/posix/ps.c
index 7cf6e0dd..dac39c83 100644
--- a/toys/posix/ps.c
+++ b/toys/posix/ps.c
@@ -1459,8 +1459,8 @@ static void top_common(
// Avoid flicker and hide the cursor in interactive mode.
if (!FLAG(b)) {
setbuf(stdout, stdout_buf);
- tty_esc("?25l");
sigatexit(top_cursor_cleanup);
+ tty_esc("?25l");
}
toys.signal = SIGWINCH;