summaryrefslogtreecommitdiff
path: root/lib/tty.js
AgeCommit message (Collapse)Author
2013-02-28lib, src: remove errno globalBen Noordhuis
Remove the errno global. It's a property on the process object now. Fixes #3095.
2013-02-21stream: remove lowWaterMark featureisaacs
It seems like a good idea on the face of it, but lowWaterMarks are actually not useful, and in practice should always be set to zero. It would be worthwhile for writers if we actually did some kind of writev() type of thing, but actually this just delays calling write() and the overhead of doing a bunch of Buffer copies is not worth the slight benefit of calling write() fewer times.
2012-12-21stdio: Do not read from stdout/errisaacs
This fixes windows stdio pipes in streams2 land.
2012-12-14tty/stdin: Refactor for streams2isaacs
2012-06-21Add --no-deprecation and --trace-deprecation flagsisaacs
2012-05-22deps: upgrade libuv to a478847Ben Noordhuis
The event loop's reference counting scheme in this version of libuv has changed. Update the libuv bindings to reflect that fact.
2012-05-01Return after emitting error in tty.jsisaacs
2012-04-30tty: emit "error" instead of throwing when getWindowSize() failsNathan Rajlich
2012-04-30tty: throw an Error when getWindowSize() failsNathan Rajlich
2012-03-30Revert "tty: add keypress event for backwards-compat"isaacs
In this case, backwards compatibility is not worth the API inconsistency. We can just document the change. This reverts commit b521ff3b4f8e79c5e28a1f4915d4203d8bcb0ab7.
2012-03-29tty: clarify that tty.setRawMode() has moved to process.stdinNathan Rajlich
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-28tty: show deprecated warn of tty.setRawMode()Shigeki Ohtsu
2012-03-28tty: add keypress event for backwards-compatShigeki Ohtsu
2012-03-29tty, readline: fix style errorsBen Noordhuis
2012-03-26readline: migrate ansi/vt100 logic from tty to readlineNathan Rajlich
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-20readline: row-agnostic multiline readline implementationAlex Kocharin
Fixes #2959.
2012-01-28tty: emit 'unknown' key event if key sequence not foundDan VerWeire
Add key.code and key.sequence -mad props go out to @TooTallNate
2012-01-18Add missing TTY key translations for F1-F5 on WindowsBrandon Benvie
2011-12-05Fix #2257 pause/resume semantics for stdinisaacs
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-10-11Remove tty_legacyRyan Dahl
2011-09-27Initial pass at new TTY js layerRyan Dahl
This breaks Windows.
2011-03-14Update copyright headersRyan Dahl
2011-01-18Implement tty.ReadStream and tty.WriteStreamBert Belder
2011-01-10getWindowSize/setWindowSizeRyan Dahl
2011-01-10tty.open() returns stream instead of slaveFDRyan Dahl
Also is run in its own session.
2010-12-02Introduce require('tty')Ryan Dahl
You may need to reconfigure after this commit due to the new library.