aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-02-13 15:29:52 -0800
committerRob Landley <rob@landley.net>2019-02-13 21:19:11 -0600
commitda11940f93ec52b00f7306195d73797921a29a95 (patch)
treec1bf45fe3f179dfbd3e55fb69ddaebebf19a762b /toys/posix
parent706628b94e65cfa9e583d7a54d7cdd8de9f70c63 (diff)
downloadtoybox-da11940f93ec52b00f7306195d73797921a29a95.tar.gz
top: support Enter as a synonym for Space.
Both refresh the display in the traditional implementation.
Diffstat (limited to 'toys/posix')
-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 926132c4..faddf685 100644
--- a/toys/posix/ps.c
+++ b/toys/posix/ps.c
@@ -1679,7 +1679,7 @@ static void top_common(
// Flush unknown escape sequences.
if (i==27) while (0<scan_key_getsize(scratch, 0, &TT.width, &TT.height));
- else if (i==' ') {
+ else if (i=='\r' || i==' ') {
timeout = 0;
break;
} else if (toupper(i)=='R')