r/PiCodingAgent • u/FatClemenzas • 16d ago
Question Pi + kitty: Scrolling Issues
Hi, guys. I like to use pi inside kitty, but I'm facing an issue in that kitty keeps scrolling-to-very-top inside a pi session, when I scroll a little bit up to read past text while pi is actively working/writing in the tty. The strange part is that I was writing a terminal emulator in python for learning purposes (and trying to get a feature like sidebar/workspaces like cmux) and testing pi inside the toy emulator displayed the same scrolling issue. I asked the agent to debug the issue and the results was that "is nothing exactly wrong with the way pi is clearing/redrawing the scrollback", so this not seems do be a bug in pi. Have you noticed something like this using kitty+pi? Or in other terminals? Which terminals do you usually use?
View all comments
3
u/omppulse 16d ago
yeah it's not really a pi bug. whenever a tui has to redraw stuff that's already scrolled off it clears and reprints it, and the terminal snaps your view when the scrollback gets rewritten. easiest workaround in kitty is ctrl+shift+h, it opens the scrollback in a pager so you can read back without it jumping around while pi keeps going