Home
last modified time | relevance | path

Searched refs:replServer (Results 1 – 6 of 6) sorted by relevance

/third_party/node/test/parallel/
Dtest-repl-editor.js27 const replServer = repl.start({
37 replServer.write('', event);
38 replServer.close();
86 const replServer = repl.start({
97 assert.strictEqual(line, replServer.line);
98 assert.strictEqual(cursor, replServer.cursor);
100 replServer.write('', { ctrl: true, name: 'd' });
101 replServer.close();
103 assert.notStrictEqual(replServer.history[0].trim(), '');
Dtest-repl-tab-complete-on-editor-mode.js8 const replServer = repl.start({ constant
15 replServer.write('.editor\n');
18 replServer.write('a');
19 replServer.write(null, { name: 'tab' }); // Should not throw
21 replServer.close();
Dtest-repl-save-load.js127 const replServer = repl.start({ terminal: true, stream: putIn }); constant
131 replServer.write('', { ctrl: true, name: 'd' });
134 replServer.close();
Dtest-repl.js894 const [ socket, replServer ] = await startUnixRepl();
898 replServer.replMode = repl.REPL_MODE_STRICT;
960 const replServer = repl.start({
966 replServer.context.message = message;
967 resolveReplServer(replServer);
/third_party/node/test/pseudo-tty/
Drepl-dumb-tty.js15 const replServer = new repl.REPLServer({ constant
23 replServer.on('close', common.mustCall());
25 replServer.write(null, { ctrl: true, name: 'r' });
26 replServer.write(null, { ctrl: true, name: 's' });
27 replServer.write(null, { ctrl: true, name: 'd' });
/third_party/node/doc/api/
Drepl.md406 replServer.on('exit', () => {
458 ### `replServer.defineCommand(keyword, cmd)`
467 The `replServer.defineCommand()` method is used to add new `.`-prefixed commands
481 const replServer = repl.start({ prompt: '> ' });
482 replServer.defineCommand('sayhello', {
490 replServer.defineCommand('saybye', function saybye() {
505 ### `replServer.displayPrompt([preserveCursor])`
513 The `replServer.displayPrompt()` method readies the REPL instance for input
522 The `replServer.displayPrompt` method is primarily intended to be called from
524 `replServer.defineCommand()` method.
[all …]