@types/inquirer
Version:
TypeScript definitions for inquirer
57 lines (51 loc) • 1.16 kB
TypeScript
import { Interface as ReadlineInterface } from "readline";
/**
* Moves the cursor to the left.
*
* @param readLine
* The readline-object.
*
* @param count
* The number of columns to move the cursor.
*/
export function left(readLine: ReadlineInterface, count: number): void;
/**
* Moves the cursor to the right.
*
* @param readLine
* The readline-object.
*
* @param count
* The number of columns to move the cursor.
*/
export function right(readLine: ReadlineInterface, count: number): void;
/**
* Moves the cursor upwards.
*
* @param readLine
* The readline-object.
*
* @param count
* The number of lines to move the cursor.
*/
export function up(readLine: ReadlineInterface, count: number): void;
/**
* Moves the cursor downwards.
*
* @param readLine
* The readline-object.
*
* @param count
* The number of lines to move the cursor.
*/
export function down(readLine: ReadlineInterface, count: number): void;
/**
* Clears one or more lines.
*
* @param readLine
* The readline-object.
*
* @param count
* The number of lines to clear.
*/
export function clearLine(readLine: ReadlineInterface, count: number): void;