• Home
  • Raw
  • Download

Lines Matching refs:writable

30 const writable = new TestWritable();  constant
32 assert.strictEqual(readline.clearScreenDown(writable), true);
33 assert.deepStrictEqual(writable.data, CSI.kClearScreenDown);
34 assert.strictEqual(readline.clearScreenDown(writable, common.mustCall()), true);
38 readline.clearScreenDown(writable, null);
48 writable.data = '';
49 assert.strictEqual(readline.clearLine(writable, -1), true);
50 assert.deepStrictEqual(writable.data, CSI.kClearToLineBeginning);
52 writable.data = '';
53 assert.strictEqual(readline.clearLine(writable, 1), true);
54 assert.deepStrictEqual(writable.data, CSI.kClearToLineEnd);
56 writable.data = '';
57 assert.strictEqual(readline.clearLine(writable, 0), true);
58 assert.deepStrictEqual(writable.data, CSI.kClearLine);
60 writable.data = '';
61 assert.strictEqual(readline.clearLine(writable, -1, common.mustCall()), true);
62 assert.deepStrictEqual(writable.data, CSI.kClearToLineBeginning);
66 readline.clearLine(writable, 0, null);
89 writable.data = '';
90 assert.strictEqual(readline.moveCursor(writable, set[0], set[1]), true);
91 assert.deepStrictEqual(writable.data, set[2]);
92 writable.data = '';
94 readline.moveCursor(writable, set[0], set[1], common.mustCall()),
97 assert.deepStrictEqual(writable.data, set[2]);
102 readline.moveCursor(writable, 1, 1, null);
122 writable.data = '';
123 assert.strictEqual(readline.cursorTo(writable, 'a'), true);
124 assert.strictEqual(writable.data, '');
126 writable.data = '';
127 assert.strictEqual(readline.cursorTo(writable, 'a', 'b'), true);
128 assert.strictEqual(writable.data, '');
130 writable.data = '';
132 () => readline.cursorTo(writable, 'a', 1),
138 assert.strictEqual(writable.data, '');
140 writable.data = '';
141 assert.strictEqual(readline.cursorTo(writable, 1, 'a'), true);
142 assert.strictEqual(writable.data, '\x1b[2G');
144 writable.data = '';
145 assert.strictEqual(readline.cursorTo(writable, 1), true);
146 assert.strictEqual(writable.data, '\x1b[2G');
148 writable.data = '';
149 assert.strictEqual(readline.cursorTo(writable, 1, 2), true);
150 assert.strictEqual(writable.data, '\x1b[3;2H');
152 writable.data = '';
153 assert.strictEqual(readline.cursorTo(writable, 1, 2, common.mustCall()), true);
154 assert.strictEqual(writable.data, '\x1b[3;2H');
156 writable.data = '';
157 assert.strictEqual(readline.cursorTo(writable, 1, common.mustCall()), true);
158 assert.strictEqual(writable.data, '\x1b[2G');
162 readline.cursorTo(writable, 1, 1, null);