lp.Println() should act live fmt.Println()

also use a dedicated error type for signalining perm denied
This commit is contained in:
Kovid Goyal
2023-07-26 02:03:43 +05:30
parent 5578e34da8
commit ce593dbb5f
2 changed files with 8 additions and 7 deletions

View File

@@ -202,8 +202,8 @@ func (self *Loop) KillIfSignalled() {
}
func (self *Loop) Println(args ...any) {
self.QueueWriteString(fmt.Sprint(args...))
self.QueueWriteString("\r\n")
self.QueueWriteString(fmt.Sprintln(args...))
self.QueueWriteString("\r")
}
func (self *Loop) SprintStyled(style string, args ...any) string {