aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-04-16 16:53:27 -0500
committerRob Landley <rob@landley.net>2019-04-16 16:53:27 -0500
commit2a1f89e5d941a77e8c93ad0a5fe78229a4207d61 (patch)
treef54c6364e70eafb604bff6e078728e6faf66a57d /toys/pending
parent63a0e7afff271ac1b1df3309bbf35f52e4771419 (diff)
downloadtoybox-2a1f89e5d941a77e8c93ad0a5fe78229a4207d61.tar.gz
Add argument to xflush() so it can test for stdout err without flushing.
Diffstat (limited to 'toys/pending')
-rw-r--r--toys/pending/arping.c1
-rw-r--r--toys/pending/vi.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/toys/pending/arping.c b/toys/pending/arping.c
index be43cab1..6007845b 100644
--- a/toys/pending/arping.c
+++ b/toys/pending/arping.c
@@ -166,7 +166,6 @@ static void recv_from(struct sockaddr_ll *from, int *recv_len)
gettimeofday(&tval, NULL);
delta = (tval.tv_sec * 1000000ULL + (tval.tv_usec)) - TT.sent_at;
xprintf(" %u.%03ums\n", delta / 1000, delta % 1000);
- xflush();
}
}
TT.rcvd_nr++;
diff --git a/toys/pending/vi.c b/toys/pending/vi.c
index 31516b55..2beedf49 100644
--- a/toys/pending/vi.c
+++ b/toys/pending/vi.c
@@ -543,7 +543,7 @@ void vi_main(void)
//we dont get scroll log full of junk
tty_esc("?1049h");
tty_esc("H");
- xflush();
+ xflush(1);
draw_page();
while(1) {
key = scan_key(keybuf, -1);
@@ -821,7 +821,7 @@ static void draw_page()
tty_esc("0m");
} else tty_jump(cx_scr, cy_scr);
- xflush();
+ xflush(1);
}