projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
988dd55
)
Escape sequences sent over serial links don't come in as a block, so poll
author
Rob Landley
<rob@landley.net>
Tue, 14 Oct 2008 08:44:09 +0000
(08:44 -0000)
committer
Rob Landley
<rob@landley.net>
Tue, 14 Oct 2008 08:44:09 +0000
(08:44 -0000)
needs to pause a bit to make sure the next character has time to come in.
editors/vi.c
patch
|
blob
|
history
diff --git
a/editors/vi.c
b/editors/vi.c
index 6902b768823ae417a58c815cddd4513e97ff62cb..3c3d759e589022bee91411c4b872b88a1d3f2ac5 100644
(file)
--- a/
editors/vi.c
+++ b/
editors/vi.c
@@
-2280,7
+2280,7
@@
static char readit(void) // read (maybe cursor) key from stdin
struct pollfd pfd;
pfd.fd = 0;
pfd.events = POLLIN;
- if (0 < safe_poll(&pfd, 1, 0)
+ if (0 < safe_poll(&pfd, 1,
30
0)
&& 0 < safe_read(0, readbuffer + n, 1))
n++;