astefanutti / kubebox

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

Problem with scrolling logs on Windows 10 #31

Closed szegi closed 3 years ago

szegi commented 5 years ago

I don't know if it's intended but i can't scroll logs from selected pod I see when there is new info added but i can't scroll it up or down using these shortcuts obraz

Im using release 0.3.2 on Windows 10, and i have info in Resources that "Resource usage metrics is unavailable"

astefanutti commented 5 years ago

I don't know if it's intended but i can't scroll logs from selected pod I see when there is new info added but i can't scroll it up or down using these shortcuts

I think you need to click on the log widget so that it has focus and receives the shortcut events.

Im using release 0.3.2 on Windows 10, and i have info in Resources that "Resource usage metrics is unavailable"

It is either due to permissions or your cluster version, see #11.

szegi commented 5 years ago

I run it using kubebox.exe and i don't see how to focus on log widget, it looks like normal cmd app obraz

astefanutti commented 5 years ago

You can five focus on the logs widget by clicking on it. Then you should be able to use the shortcuts.

You should be able to scroll the logs with the mouse wheel as well. It works on Linux and Mac OS but I haven't tested it on Windows 10.

szegi commented 5 years ago

On windows i can't focus on anything:/ i can use shortcuts, but if they depend on focus i am not able to use it maybe option for global shortcuts like these M,C,T i don't need focus there

astefanutti commented 5 years ago

I get your point. I wonder if mouse support actually works on Windows 10. It may depend on your terminal emulator configuration. By chance, does clicking on the debug tab work?

johnpoth commented 5 years ago

I wonder if running it in Cygwin makes a difference...

szegi commented 5 years ago

By chance, does clicking on the debug tab work?

No it doesnt change anything, i can switch there only with keyboard

I wonder if running it in Cygwin makes a difference...

I tried to run ./kubebox.exe in cygwin but it doesn't work at all or i'm doing something wrong

szegi commented 5 years ago

any news on this?:)

astefanutti commented 5 years ago

@szegi unfortunately no. Can you just check that clicking on the debug tab works? That will confirm that mouse support does not work on your Windows environment.

I still need to have a proper Windows environment to troubleshoot. Otherwise, I think we need to work on a solution that could change focus from the keyboard, like TAB and SHIFT+TAB.

szegi commented 5 years ago

I tried and it didn't work, i will also try on my home computer later today keyboard shortcuts like n,r,m,2 work without any issues

edit: on my second windows machine this issue still occurs

code-to-joy commented 4 years ago

I cannot get the mouse to work in the console. It works in the console in general, but not in kubebox. I also cannot scroll the log window, as the others above.

astefanutti commented 4 years ago

@code-to-joy can you confirm you're using Windows OS?

code-to-joy commented 4 years ago

@astefanutti I can. Windows 10. I also noticed that it actually works in a different shell emulator. I'm using "cmder" (which is ConEmu in the foundation) when it doesn't work. When I switch over to "Terminus", it actually works.

astefanutti commented 4 years ago

@code-to-joy thanks for the feedback.

It seems most terminal emulators on Windows do not support mouse events. We'll try to dig into this. Otherwise, more generally, I think a keyboard-only navigation would be a plus, and would mitigate the lack of mouse support on Windows.

astefanutti commented 3 years ago

Fixed with #104.

625781186 commented 2 years ago

@code-to-joy感谢您的反馈。

Windows 上的大多数终端模拟器似乎都不支持鼠标事件。我们将尝试深入研究这一点。否则,更一般地说,我认为仅使用键盘的导航将是一个加分项,并且可以缓解 Windows 上缺少鼠标支持的情况。

@code-to-joy thanks for the feedback.

It seems most terminal emulators on Windows do not support mouse events. We'll try to dig into this. Otherwise, more generally, I think a keyboard-only navigation would be a plus, and would mitigate the lack of mouse support on Windows.

@code-to-joy thanks for the feedback.

It seems most terminal emulators on Windows do not support mouse events. We'll try to dig into this. Otherwise, more generally, I think a keyboard-only navigation would be a plus, and would mitigate the lack of mouse support on Windows.

No , https://github.com/migueldeicaza/gui.cs https://github.com/prompt-toolkit/python-prompt-toolkit , they ary both support mouse on win10 .

It's kubebox can't support mouse click on win10 ?

625781186 commented 2 years ago

@code-to-joy感谢您的反馈。 Windows 上的大多数终端模拟器似乎都不支持鼠标事件。我们将尝试深入研究这一点。否则,更一般地说,我认为仅使用键盘的导航将是一个加分项,并且可以缓解 Windows 上缺少鼠标支持的情况。

@code-to-joy thanks for the feedback. It seems most terminal emulators on Windows do not support mouse events. We'll try to dig into this. Otherwise, more generally, I think a keyboard-only navigation would be a plus, and would mitigate the lack of mouse support on Windows.

@code-to-joy thanks for the feedback. It seems most terminal emulators on Windows do not support mouse events. We'll try to dig into this. Otherwise, more generally, I think a keyboard-only navigation would be a plus, and would mitigate the lack of mouse support on Windows.

No , https://github.com/migueldeicaza/gui.cs https://github.com/prompt-toolkit/python-prompt-toolkit , they ary both support mouse on win10 .

It's kubebox can't support mouse click on win10 ?

Oh , It's a reason about https://github.com/chjj/blessed can't support mouse on win10.