    term.prompt();

            term.on('key', function (key, ev) {
                const printable = !ev.altKey && !ev.altGraphKey && !ev.ctrlKey && !ev.metaKey;

                if (ev.keyCode === 13) {
                    term.prompt();
                } else if (ev.keyCode === 8) {
                    if (term._core.buffer.x > 2) {
                        term.write('\b \b');
                    }
                } else if (printable) {
                    term.write(key);
                }
            