mirror of https://github.com/Hilbis/Hilbish
feat(ansikit): add screenMain and screenAlt functions to switch terminal screen
parent
fb3cedb161
commit
764e2372a2
|
@ -135,6 +135,15 @@ ansikit.saveState = function()
|
|||
return ansikit.printCode(7)
|
||||
end
|
||||
|
||||
ansikit.screenMain = function()
|
||||
return ansikit.printCSI('?1049', 'l')
|
||||
end
|
||||
|
||||
ansikit.screenAlt = function()
|
||||
ansikit.cursorTo(0, 0)
|
||||
return ansikit.printCSI('?1049', 'h')
|
||||
end
|
||||
|
||||
ansikit.setTitle = function(text)
|
||||
return ansikit.printCode(']2;' .. text, true)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue