summaryrefslogtreecommitdiff
path: root/lib/tty.js
AgeCommit message (Collapse)AuthorFilesLines
2015-07-03util: prepend '(node) ' to deprecation messagesSakthipriyan Vairamani1-2/+4
Changes included in this commit are 1. Making the deprecation messages consistent. The messages will be in the following format x is deprecated. Use y instead. If there is no alternative for `x`, then the ` Use y instead.` part will not be there in the message. 2. All the internal deprecation messages are printed with the prefix `(node) `, except when the `--trace-deprecation` flag is set. Fixes: https://github.com/nodejs/io.js/issues/1883 PR-URL: https://github.com/nodejs/io.js/pull/1892 Reviewed-By: Roman Reiss <me@silverwind.io>
2015-06-15lib,test: fix whitespace issuesRoman Reiss1-1/+0
PR-URL: https://github.com/nodejs/io.js/pull/1971 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-01-31lib: reduce util.is*() usagecjihrig1-3/+2
Many of the util.is*() methods used to check data types simply compare against a single value or the result of typeof. This commit replaces calls to these methods with equivalent checks. This commit does not touch calls to the more complex methods (isRegExp(), isDate(), etc.). Fixes: https://github.com/iojs/io.js/issues/607 PR-URL: https://github.com/iojs/io.js/pull/647 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-01-21lib: use const to define constantscjihrig1-6/+6
This commit replaces a number of var statements throughout the lib code with const statements. PR-URL: https://github.com/iojs/io.js/pull/541 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-01-12Remove excessive copyright/license boilerplateisaacs1-21/+0
The copyright and license notice is already in the LICENSE file. There is no justifiable reason to also require that it be included in every file, since the individual files are not individually distributed except as part of the entire package.
2014-11-22lib: turn on strict modeBen Noordhuis1-0/+2
Turn on strict mode for the files in the lib/ directory. It helps catch bugs and can have a positive effect on performance. PR-URL: https://github.com/node-forward/node/pull/64 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Fedor Indutny <fedor@indutny.com>
2013-08-15lib: remove unused variables and functionsBrian White1-1/+0
2013-07-20src, lib: update after internal api changeBen Noordhuis1-5/+7
Libuv now returns errors directly. Make everything in src/ and lib/ follow suit. The changes to lib/ are not strictly necessary but they remove the need for the abominations that are process._errno and node::SetErrno().
2013-07-20src, lib: deduplicate errnoExceptionBen Noordhuis1-9/+3
2013-02-28lib, src: remove errno globalBen Noordhuis1-1/+1
Remove the errno global. It's a property on the process object now. Fixes #3095.
2013-02-21stream: remove lowWaterMark featureisaacs1-1/+0
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/errisaacs1-11/+2
This fixes windows stdio pipes in streams2 land.
2012-12-14tty/stdin: Refactor for streams2isaacs1-15/+20
2012-06-21Add --no-deprecation and --trace-deprecation flagsisaacs1-3/+3
2012-05-22deps: upgrade libuv to a478847Ben Noordhuis1-2/+0
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.jsisaacs1-0/+1
2012-04-30tty: emit "error" instead of throwing when getWindowSize() failsNathan Rajlich1-1/+1
2012-04-30tty: throw an Error when getWindowSize() failsNathan Rajlich1-2/+16
2012-03-30Revert "tty: add keypress event for backwards-compat"isaacs1-2/+0
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 Rajlich1-1/+1
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 Ohtsu1-0/+1
2012-03-28tty: add keypress event for backwards-compatShigeki Ohtsu1-0/+2
2012-03-29tty, readline: fix style errorsBen Noordhuis1-1/+1
2012-03-26readline: migrate ansi/vt100 logic from tty to readlineNathan Rajlich1-313/+35
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 Kocharin1-0/+5
Fixes #2959.
2012-01-28tty: emit 'unknown' key event if key sequence not foundDan VerWeire1-0/+4
Add key.code and key.sequence -mad props go out to @TooTallNate
2012-01-18Add missing TTY key translations for F1-F5 on WindowsBrandon Benvie1-0/+7
2011-12-05Fix #2257 pause/resume semantics for stdinisaacs1-0/+11
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 Dahl1-0/+376
2011-09-27Initial pass at new TTY js layerRyan Dahl1-34/+0
This breaks Windows.
2011-03-14Update copyright headersRyan Dahl1-0/+21
2011-01-18Implement tty.ReadStream and tty.WriteStreamBert Belder1-31/+6
2011-01-10getWindowSize/setWindowSizeRyan Dahl1-1/+2
2011-01-10tty.open() returns stream instead of slaveFDRyan Dahl1-3/+12
Also is run in its own session.
2010-12-02Introduce require('tty')Ryan Dahl1-0/+28
You may need to reconfigure after this commit due to the new library.