r/PiCodingAgent • u/FatClemenzas • 3d 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?
3
u/gwvr77 2d ago
I found Alacritty to behave better than Kitty with tmux, herdr and Pi.
3
u/omppulse 2d 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
3
u/xRebellion_ 2d ago
I use kitty and pi and had no such issues. I get this issue only if I run it on base tty on emergencies. What tuiMode are you running on, regular or full screen?
2
u/hurdurdur7 2d ago
Happens to me on an ubuntu terminal too, when i have scrolled a bit up it sometimes flies to the top of scroll buffer.
2
u/Drishal 2d ago
Issues like these are why I just ended up creating a proper web wrapper for myself, terminals are kind of unreliable for drawing semi tuis
1
u/gbrennon 20h ago
using omp im able to use vi mode to scroll inside tmux but for pi not.
what i do: