fix(ansikit): define cursor consts

windows-fixes
TorchedSammy 2022-03-06 09:42:35 -04:00
parent 29c1e29bb7
commit 4bb65572e4
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 8 additions and 4 deletions

View File

@ -1,8 +1,12 @@
-- We're basically porting Ansikit to lua
-- https://github.com/Luvella/AnsiKit/blob/master/lib/index.js
-- which is made by yours truly sammy :^)
local lunacolors = require 'lunacolors'
local ansikit = {}
local ansikit = {
blockCursor = 1,
blockCursorSteady = 2,
underlineCursor = 3,
underlineCursorSteady = 4,
lineCursor = 5,
lineCursorSteady = 6,
}
ansikit.clear = function(scrollback)
local typ = (scrollback and 3 or 2)