GHC 2020-04-25

1 comment.

, https://git.io/Jftvo in jarun/googler
> so it seems the first 3 lines of the normal output are missing

Sounds like scrolling to me? ...

googler is not a TUI program, it doesn't use any termcap other than color sequences. So missing lines indicates one of the following:

- Regular scrolling; just scroll it back...
- CR somehow mixed into the output. You can check with xxd, but I highly doubt we're somehow printing three CRs in the first three lines.
- Messed up terminal emulation. Since we don't use any termcap as I said, I'd be astonished if tmux could mess up something this basic.

Anyway, this is just a boring CLI program without any terminal rendering trickery. The only time we query the terminal at all is `os.get_terminal_size` to determine line wrapping: https://github.com/jarun/googler/blob/140f4d0bd28dbf143c801c339cbd490bf4dc54ed/googler#L2413 which is a standard PSL function.