0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/pseudo-tty
Ruben Bridgewater 9e4349e797
repl: implement reverse search
Add a reverse search that works similar to the ZSH one. It is
triggered with <ctrl> + r and <ctrl> + s. It skips duplicated history
entries and works with multiline statements. Matching entries indicate
the search parameter with an underscore and cancelling with <ctrl> + c
or escape brings back the original line.
Multiple matches in a single history entry work as well and are
matched in the order of the current search direction. The cursor is
positioned at the current match position of the history entry.
Changing the direction immediately checks for the next entry in the
expected direction from the current position on.
Entries are accepted as soon any button is pressed that doesn't
correspond with the reverse search.
The behavior is deactivated for simple terminals. They do not support
most ANSI escape codes that are necessary for this feature.

PR-URL: https://github.com/nodejs/node/pull/31006
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2019-12-25 11:16:38 +01:00
..
console_colors.js util: highlight stack frames 2019-04-15 17:30:50 +02:00
console_colors.out test: do not strip left whitespace in pseudo-tty tests 2019-04-19 10:44:02 +08:00
console-dumb-tty.js
console-dumb-tty.out
no_dropped_stdio.js
no_dropped_stdio.out
no_interleaved_stdio.js
no_interleaved_stdio.out
pseudo-tty.status test: fix pty test hangs on aix 2019-07-15 00:12:38 +02:00
pty_helper.py tools: make pty_helper.py python3-compatible 2019-08-19 09:56:35 -07:00
readline-dumb-tty.js
readline-dumb-tty.out
ref_keeps_node_running.js
ref_keeps_node_running.out
repl-dumb-tty.js repl: implement reverse search 2019-12-25 11:16:38 +01:00
repl-dumb-tty.out repl: implement reverse search 2019-12-25 11:16:38 +01:00
stdin-setrawmode.js
stdin-setrawmode.out
test-assert-colors.js assert: print more lines in the error diff 2019-06-12 19:50:03 -07:00
test-assert-colors.out
test-assert-no-color.js test: refactor test using assert instead of try/catch 2019-07-30 06:22:01 -07:00
test-assert-no-color.out
test-assert-position-indicator.js assert: refine assertion message 2019-05-05 14:44:19 -07:00
test-assert-position-indicator.out
test-async-wrap-getasyncid-tty.js
test-async-wrap-getasyncid-tty.out
test-fatal-error.js process: inspect error in case of a fatal exception 2019-05-16 12:50:05 +02:00
test-fatal-error.out process: inspect error in case of a fatal exception 2019-05-16 12:50:05 +02:00
test-handle-wrap-isrefed-tty.js
test-handle-wrap-isrefed-tty.out
test-readable-tty-keepalive.js
test-readable-tty-keepalive.out
test-repl-external-module.js repl: check for NODE_REPL_EXTERNAL_MODULE 2019-10-11 12:33:40 -07:00
test-repl-external-module.out repl: check for NODE_REPL_EXTERNAL_MODULE 2019-10-11 12:33:40 -07:00
test-set-raw-mode-reset-process-exit.js
test-set-raw-mode-reset-process-exit.out
test-set-raw-mode-reset-signal.js
test-set-raw-mode-reset-signal.out
test-set-raw-mode-reset.js
test-set-raw-mode-reset.out
test-stderr-stdout-handle-sigwinch.js
test-stderr-stdout-handle-sigwinch.out
test-stdin-write.js
test-stdin-write.out
test-stdout-read.in test: fix pty test hangs on aix 2019-07-15 00:12:38 +02:00
test-stdout-read.js
test-stdout-read.out test: fix pty test hangs on aix 2019-07-15 00:12:38 +02:00
test-tty-color-support.js tty: truecolor check moved before 256 check 2019-11-28 00:53:55 +01:00
test-tty-color-support.out
test-tty-isatty.js
test-tty-isatty.out
test-tty-stdin-call-end.js
test-tty-stdin-call-end.out
test-tty-stdin-end.js
test-tty-stdin-end.out
test-tty-stdout-end.js
test-tty-stdout-end.out
test-tty-stdout-resize.js
test-tty-stdout-resize.out
test-tty-stream-constructors.js
test-tty-stream-constructors.out
test-tty-window-size.js
test-tty-window-size.out
test-tty-wrap.js
test-tty-wrap.out
testcfg.py test: fix pty test hangs on aix 2019-07-15 00:12:38 +02:00