This commit is contained in:
Kovid Goyal
2025-09-21 10:15:06 +05:30
parent 508ca700d8
commit ee00bfa01a

View File

@@ -331,6 +331,7 @@ func (self *Loop) Run() (err error) {
os.Stderr.WriteString("\x1b]\x1b\\\x1bc\x1b[H\x1b[2J") // reset terminal
}
os.Stderr.WriteString(text)
os.Stderr.WriteString("\n")
if is_terminal {
if term, err := tty.OpenControllingTerm(tty.SetRaw); err == nil {
defer term.RestoreAndClose()