Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tea.WithAltScreen() allows scrollback and thus the rendering of undesirable content from the main buffer #349

Closed
dcominottim opened this issue Jun 18, 2022 · 2 comments

Comments

@dcominottim
Copy link

dcominottim commented Jun 18, 2022

Hello there! Absolutely awesome project! <3

I believe the behavior described in the title is a bug as per what I've researched (e.g: for reference, see xtermjs/xterm.js#802) and the fact it blocks bubbletea users from making proper full screen apps similar to vim etc. Right now, this is a big blocker for the app I am developing.

The issue can easily be seen with any examples from the docs, such as the one for TextInput, for instance. I am starting the program with

p := tea.NewProgram(initialModel(), tea.WithAltScreen())

@lrstanley
Copy link
Contributor

@dcominottim what terminal are you using? From my testing on Windows Terminal and a few others, enabling mouse events (haven't tested motion), captures the scroll. The scrollbar, if manually used, does still let me scroll up in some of them, however it seems it's the same behavior with Vim for the ones where it lets me manually scroll up.

@dcominottim
Copy link
Author

@lrstanley, thanks a lot for your comment. Indeed, I double checked in MacOS with the standard terminal app and have confirmed the behavior that you described. I believe I missed this the first time because the default terminal app hides the scrollbar and doesn't enable scroll back using just the touchpad in this case — but if manually going for the scrollbar, it is as you said. Therefore, I am going to close the issue. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants