Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

tty → readline ansi/vt100 migration #2922

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
1463271
tty: move setRawMode() to ReadStream's prototype
TooTallNate Mar 13, 2012
a8e9eb1
tty: remove exports.getWindowSize() and exports.setWindowSize()
TooTallNate Mar 13, 2012
d115e42
tty: add a ReadStream#isRaw flag
TooTallNate Mar 13, 2012
1e20f74
tty: remove final traces of stdinHandle
TooTallNate Mar 13, 2012
c958c91
readline: remove use of the tty module
TooTallNate Mar 13, 2012
3cc19a7
tty, readline: transfer the SIGWINCH code to tty.WriteStream
TooTallNate Mar 13, 2012
f38c01b
tty, readline: move the ansi keypress parsing code to realine
TooTallNate Mar 13, 2012
eef9899
tty, readline: migrate the tty.WriteStream ansi code functions
TooTallNate Mar 13, 2012
76c25d9
tty: set tty.ReadStream#readable to true
TooTallNate Mar 13, 2012
22fdb73
readline: add default values for columns/rows
TooTallNate Mar 13, 2012
e1db1d2
readline: fix lint
TooTallNate Mar 13, 2012
8fc2aba
repl: remove unused readline() function
TooTallNate Mar 14, 2012
1358526
readline: add an explicit 'enabled' option, false by default
TooTallNate Mar 14, 2012
bb5b47e
readline: accept an options object when creating
TooTallNate Mar 14, 2012
8fc8112
repl: accept an options object when creating REPLServer
TooTallNate Mar 14, 2012
d2b7b5b
repl: use an options object on readline for the 'enabled' option
TooTallNate Mar 14, 2012
75c45ad
process: use the new repl API for the global repl
TooTallNate Mar 14, 2012
3b006d5
debugger: use the new repl API for the debugger repl
TooTallNate Mar 14, 2012
20148ce
move the NODE_NO_READLINE check to the global/debugger repl
TooTallNate Mar 14, 2012
35c9d43
readline: coerce the 'enabled' var into a boolean
TooTallNate Mar 15, 2012
ba47778
readline: emitKeypress() -> emitKeypressEvents()
TooTallNate Mar 17, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions lib/_debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,14 @@ function Interface(stdin, stdout, args) {

// Two eval modes are available: controlEval and debugEval
// But controlEval is used by default
this.repl = new repl.REPLServer('debug> ', streams,
this.controlEval.bind(this), false, true);
this.repl = repl.start({
prompt: 'debug> ',
stream: streams,
enabled: !parseInt(process.env['NODE_NO_READLINE'], 10),
eval: this.controlEval.bind(this),
useGlobal: false,
ignoreUndefined: true
});

// Kill child process when main process dies
process.on('exit', function() {
Expand Down
Loading