Lines Matching refs:repl
28 function _writeToOutput(repl, message) { argument
29 repl._writeToOutput(message);
30 repl._refreshLine();
33 function setupHistory(repl, historyPath, ready) { argument
39 repl._historyPrev = _replHistoryMessage;
40 return ready(null, repl);
47 _writeToOutput(repl, '\nError: Could not get the home directory.\n' +
51 repl._historyPrev = _replHistoryMessage;
52 return ready(null, repl);
59 repl.pause();
69 _writeToOutput(repl, '\nError: Could not open history file.\n' +
73 repl._historyPrev = _replHistoryMessage;
74 repl.resume();
75 return ready(null, repl);
93 repl.history = RegExpPrototypeSymbolSplit(/[\n\r]+/, data, repl.historySize);
95 repl.history = [];
106 repl._historyHandle = hnd;
107 repl.on('line', online);
108 repl.once('exit', onexit);
111 repl.once('flushHistory', function() {
112 repl.resume();
113 ready(null, repl);
121 repl._flushing = true;
137 const historyData = ArrayPrototypeJoin(repl.history, os.EOL);
138 fs.write(repl._historyHandle, historyData, 0, 'utf8', onwritten);
147 repl._flushing = Boolean(timer);
148 if (!repl._flushing) {
149 repl.emit('flushHistory');
155 if (repl._flushing) {
156 repl.once('flushHistory', onexit);
159 repl.off('line', online);
160 fs.close(repl._historyHandle, noop);