mirror of https://github.com/Hilbis/Hilbish
fix(ansikit): define cursor consts
parent
29c1e29bb7
commit
4bb65572e4
|
@ -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 lunacolors = require 'lunacolors'
|
||||||
local ansikit = {}
|
local ansikit = {
|
||||||
|
blockCursor = 1,
|
||||||
|
blockCursorSteady = 2,
|
||||||
|
underlineCursor = 3,
|
||||||
|
underlineCursorSteady = 4,
|
||||||
|
lineCursor = 5,
|
||||||
|
lineCursorSteady = 6,
|
||||||
|
}
|
||||||
|
|
||||||
ansikit.clear = function(scrollback)
|
ansikit.clear = function(scrollback)
|
||||||
local typ = (scrollback and 3 or 2)
|
local typ = (scrollback and 3 or 2)
|
||||||
|
|
Loading…
Reference in New Issue