astefanutti / kubebox

⎈❏ Terminal and Web console for Kubernetes
http://astefanutti.github.io/kubebox
MIT License
2.14k stars 142 forks source link

Unable to scroll terminal when running in iTerm #59

Closed MelanieT closed 3 years ago

MelanieT commented 4 years ago

When running kubebox in a container and displaying on iTerm on apple, it is not possible to scroll back in the terminal window (R-key). iTerm doesn't pass mouse events to curses, so mouse actions scroll the local iTerm history buffer, not the terminal session. Therefore, any output longer than the height of the screen becomes inaccessible.

astefanutti commented 4 years ago

Thanks for the report. Could you confirm that by running kubebox in a container, you mean running it with kubectl?

MelanieT commented 4 years ago

kubectl, yes. i just used your command line from the readme.

astefanutti commented 4 years ago

By change, would you be able to try with docker run in iTerm? I suspect this has more to do with how kubectl deal with nouse events rather than the terminal.

Here is the command to run kubebox with Docker:

$ docker run -it --rm -v ~/.kube/:/home/node/.kube/:ro astefanutti/kubebox
MelanieT commented 4 years ago

Mouse events do not get forwarded. What I'm looking for is a keyboard way to scroll. I don't interact with terminals using the mouse so mouse events are diabled.

astefanutti commented 4 years ago

OK, then it relates to #31, for which we want to introduce full keyboard navigation and scrolling to address terminals for which mouse events are not supported or disabled.

MelanieT commented 4 years ago

It relates only somewhat, because the keys for log navigation are actually valid inputs in a teminal, so can't be used. What should be used are the navigation keys, as in a Linux console - shift pgup, shift pgdn.

astefanutti commented 3 years ago

It should be fixed with 7da074d23626bbb94fd5120536e54db30ae7d2e4.