diff options
author | Elliott Hughes <enh@google.com> | 2019-02-13 15:29:52 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-02-13 21:19:11 -0600 |
commit | da11940f93ec52b00f7306195d73797921a29a95 (patch) | |
tree | c1bf45fe3f179dfbd3e55fb69ddaebebf19a762b /toys | |
parent | 706628b94e65cfa9e583d7a54d7cdd8de9f70c63 (diff) | |
download | toybox-da11940f93ec52b00f7306195d73797921a29a95.tar.gz |
top: support Enter as a synonym for Space.
Both refresh the display in the traditional implementation.
Diffstat (limited to 'toys')
-rw-r--r-- | toys/posix/ps.c | 2 |
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') |