v0.1.7 backend fixes, go and dependency updates

This commit is contained in:
2026-09-08 19:58:14 -04:00
parent c246f38170
commit ea9a20c5de
6 changed files with 30 additions and 10 deletions
+3 -3
View File
@@ -43,10 +43,10 @@ func resetTerminalMode() {
defer tty.Close()
fd := int(tty.Fd())
// Get current termios, enable ECHO and ICANON
if termios, err := unix.IoctlGetTermios(fd, unix.TCGETS); err == nil {
if termios, err := unix.IoctlGetTermios(fd, tcgets); err == nil {
termios.Lflag |= unix.ECHO | unix.ICANON | unix.ISIG | unix.IEXTEN
termios.Iflag |= unix.ICRNL
unix.IoctlSetTermios(fd, unix.TCSETS, termios)
unix.IoctlSetTermios(fd, tcsets, termios)
}
}
}
}