From 3e0b077ec236aa26bfeb290f3cd7973ec3fbcb7d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 21 Oct 2018 13:05:22 -0500 Subject: Move start_redraw() to lib/ and have ps.c (top) use it. --- toys/pending/watch.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'toys/pending') diff --git a/toys/pending/watch.c b/toys/pending/watch.c index f360ac7c..41fb020e 100644 --- a/toys/pending/watch.c +++ b/toys/pending/watch.c @@ -32,23 +32,6 @@ GLOBALS( pid_t pid, oldpid; ) -void start_redraw(unsigned *width, unsigned *height) -{ - // If never signaled, do raw mode setup. - if (!toys.signal) { - *width = 80; - *height = 25; - set_terminal(0, 1, 0, 0); - sigatexit(tty_sigreset); - xsignal(SIGWINCH, generic_signal); - } - if (toys.signal != -1) { - toys.signal = -1; - terminal_probesize(width, height); - } - xprintf("\033[H\033[J"); -} - // When a child process exits, stop tracking them. Handle errors for -be void watch_child(int sig) { -- cgit v1.2.3