1'use strict'; 2require('../common'); 3 4process.env.TERM = 'dumb'; 5 6const readline = require('readline'); 7 8const rl = readline.createInterface({ 9 input: process.stdin, 10 output: process.stdout 11}); 12 13rl.write('text'); 14rl.write(null, { ctrl: true, name: 'u' }); 15rl.write(null, { name: 'return' }); 16rl.write('text'); 17rl.write(null, { name: 'backspace' }); 18rl.write(null, { name: 'escape' }); 19rl.write(null, { name: 'enter' }); 20rl.write('text'); 21rl.write(null, { ctrl: true, name: 'c' }); 22