bug fixes and clean code

This commit is contained in:
2024-09-29 21:22:25 +02:00
parent e873c01e50
commit dd8f1fbc1f
14 changed files with 89 additions and 90 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ func LogicValueInt(b bool, _if, _else int) int {
}
func GetTerminalSize() (int, int) {
w, h, err := term.GetSize(0)
w, h, err := term.GetSize(int(os.Stdin.Fd()))
if err != nil {
panic(err)
}