From 41219968957b3557e654b4e8c91a5ea8c71ef710 Mon Sep 17 00:00:00 2001 From: Florrie Date: Fri, 8 Dec 2017 10:24:26 -0400 Subject: Add invertOff ansi function --- util/ansi.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'util/ansi.js') diff --git a/util/ansi.js b/util/ansi.js index 0ee1bc1..564fdf8 100644 --- a/util/ansi.js +++ b/util/ansi.js @@ -96,6 +96,12 @@ const ansi = { return `${ESC}[7m` }, + invertOff() { + // Un-inverts the foreground and backgrund colors. + + return `${ESC}[27m` + }, + requestCursorPosition() { // Requests the position of the cursor. // Expect a stdin-result '\ESC[l;cR', where l is the line number (1-based), -- cgit 1.3.0-6-gf8a5