File indexing completed on 2024-05-19 04:42:04
0001 /* 0002 SPDX-FileCopyrightText: 2014 Denis Steckelmacher <steckdenis@yahoo.fr> 0003 0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 var stream = require("stream"); 0008 0009 var event = require("event"); 0010 0011 exports.createInterface = function (options) { return new Interface(); }; 0012 exports.createInterface(new Object()); 0013 0014 /* 0015 * exports.Interface 0016 */ 0017 function Interface() { return ; } 0018 exports.Interface = Interface; 0019 exports.Interface.prototype = event.EventEmitter; 0020 0021 exports.Interface.prototype.setPrompt = function (prompt, length) { return ; }; 0022 exports.Interface.prototype.setPrompt("", 1); 0023 0024 exports.Interface.prototype.prompt = function (preserveCursor) { return ; }; 0025 exports.Interface.prototype.prompt(true); 0026 0027 exports.Interface.prototype.question = function (query, callback) { return ; }; 0028 exports.Interface.prototype.question("", function(){}); 0029 0030 exports.Interface.prototype.pause = function () { return ; }; 0031 exports.Interface.prototype.pause(); 0032 0033 exports.Interface.prototype.resume = function () { return ; }; 0034 exports.Interface.prototype.resume(); 0035 0036 exports.Interface.prototype.close = function () { return ; }; 0037 exports.Interface.prototype.close(); 0038 0039 exports.Interface.prototype.write = function (data, key) { return ; }; 0040 exports.Interface.prototype.write("", new Object()); 0041 0042 0043 exports.cursorTo = function (stream, x, y) { return ; }; 0044 exports.cursorTo(new stream.Stream(), 1, 1); 0045 0046 exports.moveCursor = function (stream, dx, dy) { return ; }; 0047 exports.moveCursor(new stream.Stream(), 1, 1); 0048 0049 exports.clearLine = function (stream, dir) { return ; }; 0050 exports.clearLine(new stream.Stream(), 1); 0051 0052 exports.clearScreenDown = function (stream) { return ; }; 0053 exports.clearScreenDown(new stream.Stream()); 0054