Update halyde/kernel/modules/terminal.lua

This commit is contained in:
2026-06-24 18:26:44 +03:00
parent 2d60593041
commit 95cac2ac59
+1 -2
View File
@@ -614,8 +614,6 @@ function module.init()
local text = options.defaultText or "" local text = options.defaultText or ""
_G._PUBLIC.terminal.flush()
local historyIdx local historyIdx
if options.readHistoryType then if options.readHistoryType then
if not readHistory[options.readHistoryType] then if not readHistory[options.readHistoryType] then
@@ -634,6 +632,7 @@ function module.init()
local cur = unicode.len(text)+1 local cur = unicode.len(text)+1
if options.prefix then _PUBLIC.terminal.write(options.prefix) end if options.prefix then _PUBLIC.terminal.write(options.prefix) end
_G._PUBLIC.terminal.flush()
local startX, startY = cursor.x, cursor.y local startX, startY = cursor.x, cursor.y
local fg, bg = gpu.getForeground(), gpu.getBackground() local fg, bg = gpu.getForeground(), gpu.getBackground()
local cursorBlink = true local cursorBlink = true