2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-03-28 09:20:41 +00:00

fix(ansikit): define cursor consts

This commit is contained in:
TorchedSammy 2022-03-06 09:42:35 -04:00
parent 29c1e29bb7
commit 4bb65572e4
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

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)