isaacs
5b39929d47
Add --no-deprecation and --trace-deprecation flags
2012-06-21 12:05:33 -07:00
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.
2012-05-22 16:14:24 +02:00
isaacs
fb400b4868
Return after emitting error in tty.js
2012-05-01 15:51:29 -07:00
Nathan Rajlich
f4403f90f8
tty: emit "error" instead of throwing when getWindowSize() fails
2012-04-30 18:51:20 -07:00
Nathan Rajlich
f1f5de1c8d
tty: throw an Error when getWindowSize() fails
2012-04-30 16:20:27 -07:00
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
.
2012-03-30 17:37:35 -07:00
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.
2012-03-29 13:15:24 -07:00
Shigeki Ohtsu
238e12af22
tty: show deprecated warn of tty.setRawMode()
2012-03-28 20:13:23 -07:00
Shigeki Ohtsu
b521ff3b4f
tty: add keypress event for backwards-compat
2012-03-28 20:12:38 -07:00
Ben Noordhuis
b031671138
tty, readline: fix style errors
2012-03-29 01:36:46 +02:00
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 .
2012-03-26 15:21:25 -07:00
Alex Kocharin
06a058d731
readline: row-agnostic multiline readline implementation
...
Fixes #2959 .
2012-03-20 15:37:06 -07:00
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
2012-01-28 17:01:04 +01:00
Brandon Benvie
f7b612550a
Add missing TTY key translations for F1-F5 on Windows
2012-01-18 16:00:55 +01:00
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
2011-12-05 16:47:11 -08:00
Ryan Dahl
cdf5d91fe5
Remove tty_legacy
2011-10-11 13:41:33 -07:00
Ryan Dahl
74b6426ec6
Initial pass at new TTY js layer
...
This breaks Windows.
2011-09-27 13:02:11 -07:00
Ryan Dahl
55048cdf79
Update copyright headers
2011-03-14 17:37:05 -07:00
Bert Belder
87d898929f
Implement tty.ReadStream and tty.WriteStream
2011-01-18 23:22:38 -08:00
Ryan Dahl
b9cfd9527a
getWindowSize/setWindowSize
2011-01-10 17:25:48 -08:00
Ryan Dahl
1f38046b51
tty.open() returns stream instead of slaveFD
...
Also is run in its own session.
2011-01-10 16:25:15 -08:00
Ryan Dahl
a0e9a510b0
Introduce require('tty')
...
You may need to reconfigure after this commit due to the new library.
2010-12-02 18:06:43 -08:00