Improve current Arch Linux run log
All checks were successful
Alpine 3.22 Success

This commit is contained in:
2025-11-23 19:38:23 +01:00
parent 6868bde5e6
commit b766c9ef20
2 changed files with 6 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
Copyright (c) 2024, Přemysl Eric Janouch <p@janouch.name>
Copyright (c) 2024 - 2025, Přemysl Eric Janouch <p@janouch.name>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

View File

@@ -210,11 +210,13 @@ func (tw *terminalWriter) processParsedCSI(
if len(params) == 0 {
tw.line = tw.lineTop
tw.column = 0
} else if len(params) >= 2 && params[0] != 0 && params[1] != 0 {
} else if len(params) < 2 || params[0] <= 0 || params[1] <= 0 {
return false
} else if params[0] >= 32766 && params[1] >= 32766 {
// Ignore attempts to scan terminal bounds.
} else {
tw.line = tw.lineTop + params[0] - 1
tw.column = params[1] - 1
} else {
return false
}
return true
case final == 'J': // Erase in Display