Lines Matching refs:rl
11 const rl = readline.createInterface({
16 rl.on('line', common.mustCall((data) => {
25 const rl = readline.createInterface({
30 rl.on('line', common.mustNotCall('must not be called before newline'));
37 const rl = readline.createInterface({
42 rl.on('line', common.mustCall((data) => {
51 const rl = readline.createInterface({
56 rl.write('foo');
57 assert.strictEqual(rl.cursor, 3);
79 rl.write.apply(rl, key.home);
80 assert.strictEqual(rl.cursor, 0);
81 rl.write.apply(rl, key.end);
82 assert.strictEqual(rl.cursor, 3);
89 const rl = readline.createInterface({
102 rl.write('foo bar.hop/zoo');
103 rl.write.apply(rl, key.xterm.home);
118 rl.write.apply(rl, action.key);
119 assert.strictEqual(rl.cursor, action.cursor);
125 const rl = readline.createInterface({
137 rl.write('foo bar.hop/zoo');
138 rl.write.apply(rl, key.xterm.home);
147 rl.write.apply(rl, key.xterm.metad);
148 assert.strictEqual(rl.cursor, 0);
149 assert.strictEqual(rl.line, expectedLine);