isaacs
5b39929d47
Add --no-deprecation and --trace-deprecation flags
13 years ago
Ben Noordhuis
039fac633e
deps: upgrade libuv to a478847
The event loop's reference counting scheme in this version of libuv has changed.
Update the libuv bindings to reflect that fact.
13 years ago
isaacs
fb400b4868
Return after emitting error in tty.js
13 years ago
Nathan Rajlich
f4403f90f8
tty: emit "error" instead of throwing when getWindowSize() fails
13 years ago
Nathan Rajlich
f1f5de1c8d
tty: throw an Error when getWindowSize() fails
13 years ago
isaacs
2726c22f0b
Revert "tty: add keypress event for backwards-compat"
In this case, backwards compatibility is not worth the API
inconsistency. We can just document the change.
This reverts commit b521ff3b4f
.
13 years ago
Nathan Rajlich
304f1fcf86
tty: clarify that tty.setRawMode() has moved to process.stdin
Technically saying `tty.ReadStream#setRawMode()` is correct,
but since a typical use cannot instantiate `tty.ReadStream` themselves,
and 99% of the time the only instance is `process.stdin`,
then a little clarification seemed necessary.
13 years ago
Shigeki Ohtsu
238e12af22
tty: show deprecated warn of tty.setRawMode()
13 years ago
Shigeki Ohtsu
b521ff3b4f
tty: add keypress event for backwards-compat
13 years ago
Ben Noordhuis
b031671138
tty, readline: fix style errors
13 years ago
Nathan Rajlich
aad12d0b26
readline: migrate ansi/vt100 logic from tty to readline
The overall goal here is to make readline more interoperable with other node
Streams like say a net.Socket instance, in "terminal" mode.
See #2922 for all the details.
Closes #2922 .
13 years ago
Alex Kocharin
06a058d731
readline: row-agnostic multiline readline implementation
Fixes #2959 .
13 years ago
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