coder / coder/ghostty-web

Could the automatic scrollToBttom() behaviour made to be configurable/togglable?

Open
#127 2 comments 2 reactions 0 assignees View on GitHub
accepted feature triage:done
Dominant language
TypeScript
Stars
2.8k
Forks
172
PR merge metrics
No merged PRs in 30d

Description

In `terminal.ts` a `scrollToBottom()` call is made after each `write()`.
https://github.com/coder/ghostty-web/blob/03ead6e154b44656a8efc053694d0dedfc3dc476/lib/terminal.ts#L573-L576

Even if the user scrolls up, the terminal just scrolls back to the bottom on the next write. Imagine that there's a log being streamed through a websocket and the user temporarily wants to scroll back for something that was written to the terminal earlier. They have a small window to do that, before the next line gets written and it scrolls to the bottom again.

xterm.js had this same [issue](https://github.com/xtermjs/xterm.js/issues/1824) and was eventually [handled](https://github.com/xtermjs/xterm.js/pull/4289).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.