Dan VerWeire
e4afb2f724
tty: emit 'unknown' key event if key sequence not found
Add key.code and key.sequence -mad props go out to @TooTallNate
13 years ago
Brandon Benvie
f7b612550a
Add missing TTY key translations for F1-F5 on Windows
13 years ago
isaacs
cf20b6bf65
Fix #2257 pause/resume semantics for stdin
This makes it so that the stdin TTY-wrap stream gets ref'ed on
.resume() and unref'ed on .pause()
The semantics of the names "pause" and "resume" are a bit weird, but the
important thing is that this corrects an API change from 0.4 -> 0.6
which made it impossible to read from stdin multiple times, without
knowing when it might end up being closed. If no one has it open, this
lets the process die naturally.
LGTM'd by @ry
13 years ago
Ryan Dahl
cdf5d91fe5
Remove tty_legacy
13 years ago
Ryan Dahl
e6092f337c
tty.WritableStream should be writable
13 years ago
Ryan Dahl
7cf787a2d1
Upgrade libuv to 5656e3
This modifies the TTYWrap constructor to add another argument specifying if
it's a readable or writable TTY . That is stdin or stdout. If a TTYWrap is
not readable then writes to it are blocking.
This makes process.stdout blocking.
13 years ago
Colton Baker
87286cc737
Fixed a lot of jslint errors.
Fixes #1831
13 years ago
Ryan Dahl
e1dc6e6d73
Bind uv_tty_get_winsize
13 years ago
Ryan Dahl
74b6426ec6
Initial pass at new TTY js layer
This breaks Windows.
13 years ago
Ryan Dahl
0aad61e802
Use net_uv instead of net_legacy for stdio
Also temporary hack to prevent process.stdout from keeping event loop alive
by calling uv_unref on process.stdout initialization.
13 years ago
Ryan Dahl
8527f00c3c
Lazy load a few modules
14 years ago
Yoshihiro KIKUCHI
99b210d7ea
tiny fixes in tty_posix.js
Close #1158
Close #1160
Close #1252
14 years ago
Ryan Dahl
710f8e2acc
Add --use-uv command-line flag to use libuv backend
14 years ago
Ryan Dahl
391f087981
Fix setsid in tty.open
Thanks to Leen Besselink for pointing this out.
Closes GH-815.
14 years ago
Ryan Dahl
55048cdf79
Update copyright headers
14 years ago
Tom Hughes
cf7b680db9
newline should also be treated as "enter" key.
14 years ago
koichik
0a51a6d3ac
Fix process.stdout.end() throws ENOTSOCK error.
14 years ago
isaacs
430a7f1bed
Support pastes and meta-backspace
14 years ago
Ryan Dahl
9e976abad9
lint
14 years ago
isaacs
49275524a5
Fix for meta keys in a weird iTerm state.
14 years ago
isaacs
d40af91b30
Windows line endings. s/\r//g
14 years ago
Bert Belder
8da7202d0b
Fix meta+character keys on mac
14 years ago
Ryan Dahl
d4127717ac
Fix tab on posix tty
14 years ago
Bert Belder
87d898929f
Implement tty.ReadStream and tty.WriteStream
14 years ago