diff --git a/terminal.go b/terminal.go index ea599d5..17d060b 100644 --- a/terminal.go +++ b/terminal.go @@ -54,7 +54,8 @@ func getBgColor(code int) string { // Check percent flag: num & PCT // // Reset percent flag: num & 0xFF -const PCT = 0x80000000 +const shift = uint(^uint(0)>>63) << 4 +const PCT = 0x8000 << shift type winsize struct { Row uint16