App logs window scroll issues
-
@nebulon Since new log lines inject and start from left to right, that seems to reset the view as it follows the cursor focus at least initially?
There are other log windows where this doesn't occur. How are they different?
Another thought is that perhaps by adding a transparent layer on top of the logs, it will allow the window to remain static but have logs keep coming.
An improvement idea would be to have the log windows function more like less -F which can be cancelled and then searched via / and other useful less commands.
-
I use Byobu F7 key to freeze the terminal log move up (pgup) and down (pgdown) in the log, works really great, you then ESC to escape the freeze and back to last log line, works nicely
-
@rmdes nice, and I use ctrl-a+[ in screen to do the same, but that doesn't apply here talking about logs from the Cloudron GUI
-
In firefox, when I scroll up, the view does not automatically scroll for me when as new lines come in.
-
In firefox, when I scroll up, the view does not automatically scroll for me when as new lines come in.
-
-
@robi Ah I see. If it's fully vertically scrolled, it auto scrolls. If you scroll up even a tiny bit, it will stop auto scrolling. I think this behavior is copied from gnome-terminal and the like. How does your terminal do it?
-
I think the behavior even comes from upstream xterm.js but @nebulon can confirm
-
The logviewer does not use xterm.js but just plain DOM elements. The root cause of this is, that we call
scrollIntoView()
for an anchor element at the bottom of the page, if the user has not vertically scrolled.
Since this element sits bottom left, the browser also scrolls left. I will see what can be done to keep horizontal scroll position. -
N nebulon marked this topic as a question on
-
N nebulon has marked this topic as solved on