UNPKG

lib-curses

Version:

Simple node.js library for work with console

17 lines (16 loc) 600 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addch = addch; const position_helper_1 = require("./position.helper"); /** * Outputs a given string at specified position on screen. * * @param {any} string - String or value to be output. * @param {number} [x=-1] - X coordinate for output. Default is no specific position. * @param {number} [y=-1] - Y coordinate for output. Default is no specific position. * @returns {void} */ function addch(string, x = -1, y = -1) { (0, position_helper_1.position)(x, y); process.stdout.write(String(string)); }