Alex Kocharin
06a058d731
readline: row-agnostic multiline readline implementation
Fixes #2959 .
13 years ago
Nathan Rajlich
8517089b3e
Revert "readline: add multiline support"
This reverts commit 443071db57
.
Patch was overly compilicated and made some incorrect assumptions about the
position of the cursor being at the bottom of the screen. @rlidwka and I are
working on getting a proper implementation written.
13 years ago
Colton Baker
c84b3c4b73
readline: ignore stray escape sequence
Fixes #2876 .
13 years ago
Rlidwka
443071db57
readline: add multiline support
13 years ago
Colton Baker
fd61bfc731
readline: ^Z (SIGSTP) handling
Bugfix and update.
- Fixed bug where Node's REPL wouldn't continue when returning from ^Z
(SIGTSTP)
- Removed old readline callback
Readline API update with docs.
- ^Z (SIGTSTP) is now bypassed on Windows systems.
- SIGCONT is now bypassed on Windows systems.
- Docs updated to reflect above.
13 years ago
Colton Baker
ce485791db
Readline proposal and bugfixes. Related: #2737 #2756
- Removed extra newline from .question(); Users can input a
newline if it they require it.
- Removed .close() due to it only emulating closing, causing a bug where
readline is left open to trigger events such as .on('line', ...').
- Removed ._attemptClose()
- .pause() now triggers event .on('pause', ...)
- .resume() now triggers event .on('resume', ...)
- CTRL-C (SIGINT) in readline will now default to .pause() if no SIGINT event
is present.
- CTRL-D (delete right) will also default to .pause() if there is nothing to
delete (signaling the end of the file).
- Added new event `SIGTSTP`
- Added new event `SIGCONT`
- Added `resume` to `write` to resume the stream if paused.
- Docs updated.
- Updated repl.js
13 years ago
Fedor Indutny
c07edd90f5
preserve cursor pos
* configurable via .prompt()'s preserveCursor argument (false by default)
13 years ago
Ryan Dahl
2d13cdfd2a
Fixes #2052 . Readline get win cols correctly
13 years ago
Maciej Małecki
fc61134b1a
doc: fix links
Changes:
* 'http://github.com ' => 'https://github.com '
* 'https://github.com/ry/node ' => 'https://github.com/joyent/node '
* 'https://github.com/ry/http-parser ' =>
'https://github.com/joyent/http-parser '
* old issue links
* wiki link
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
Ben Noordhuis
92d4ed397b
readline: handle null completer graciously
Fixes #1698 .
13 years ago
Fedor Indutny
8d7aade663
[debugger] call silent resume in debugEval to prevent incorrect cursor position after repl autocompletion, small refactor in readline
13 years ago
Fedor Indutny
e13ed4a8d0
[repl, readline] refactor async completion and execution
14 years ago
Fedor Indutny
71a9aefa0f
[readline, repl] Fix completion grouping, fix parens eval results
handling
14 years ago
Fedor Indutny
42b8b77d9f
[repl, readline] async interface
Add async completion and execution interface for repl and readline
14 years ago
Robert Mustacchi
de0b8d601c
jslint cleanup: path.js, readline.js, repl.js, tls.js, tty_win32.js, url.js
14 years ago
Ryan Dahl
55048cdf79
Update copyright headers
14 years ago
Bert Belder
07f3274ac4
Readline: fixes, more key bindings
- Made backward/forward more convenient
- More key bindings that windows users are used to
- Fix delete-word-right
- Duplicate code cleanup
14 years ago
isaacs
430a7f1bed
Support pastes and meta-backspace
14 years ago
Ryan Dahl
9e976abad9
lint
14 years ago
Ryan Dahl
ba80d4d8a9
Transfer data gathering responsibility to readline
Fixes non-raw REPL/Debugger on Posix.
14 years ago
Bert Belder
e6e6e87463
Windows: fix window size getter bug
14 years ago
Bert Belder
4475b76535
Readline: use symbolic key names instead of ascii control codes
14 years ago
Bert Belder
8c9b2d1066
Readline: use tty methods instead of control sequences
14 years ago
Bert Belder
0b5bf70bff
Use tty.ReadStream and tty.WriteStream for stdio when appropriate
14 years ago
Bert Belder
dc99aa0c8c
Windows: implement missing stdio methods
14 years ago
Ryan Dahl
860e7a7a5f
debugger: don't hang on ^d and ^c
14 years ago
Ryan Dahl
b9cfd9527a
getWindowSize/setWindowSize
14 years ago
Ryan Dahl
5a05992155
Lint
14 years ago
Ryan Dahl
af6662d5e5
debugger: Prompt before quitting
14 years ago
Ryan Dahl
62e0ca05a6
debugger: Disable/Enable raw mode for child
14 years ago
Ryan Dahl
8874c51d04
Disable OPOST
Helps when sharing a tty with non-raw mode processes
14 years ago
Ryan Dahl
0dcbe3f74a
Fork out to debugger on debugger statements
Also implement continue in Client.
14 years ago
Ryan Dahl
e3ce73a214
Add ability to ask question from readline
14 years ago
Ryan Dahl
a0e9a510b0
Introduce require('tty')
You may need to reconfigure after this commit due to the new library.
14 years ago
Ryan Dahl
e232f6e735
more lint
14 years ago
isaacs
a52f59b437
Use a proper tty test.
14 years ago
Ryan Dahl
d4af8a6b6a
Add writeFilter when in the readline
Switch \n with \r\n for all strings printed out.
Necessary for writev patch.
14 years ago
Micheil Smith
e38eb0c5a4
Soft migration of sys -> util, Removal of deprecated utils module.
14 years ago
Joshaven Potter
3d4e4d8909
syntax fixes to pass jslint
14 years ago
Ryan Dahl
069d973d74
Remove require('buffer') in built-in libraries.
14 years ago
Aaron Heckmann
7c5cc57ece
quicker loops
14 years ago
Ryan Dahl
d2de8ba400
^c to get out of '...' in REPL
14 years ago
Ryan Dahl
2d09ef8541
Fix style in readline
15 years ago
Ryan Dahl
0ef8a86af2
Add SIGWINCH handler for readline
15 years ago
Trent Mick
1d961a6630
add ANSI coloring option to sys.inspect and, by default, to the repl
15 years ago
Trent Mick
5330fea954
Ctrl+W support for the REPL
FWIW, command-line style (delete back to whitespace) would be:
leading = leading.replace(/\S+\s*$/, '');
15 years ago
Johan Euphrosine
e49be4768b
add readline support for meta-d
15 years ago
Brian
d9eb64928e
Fix home/end keys in repl for putty/xterm.
15 years ago