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

(0.11.0-rc1) typst watch output can't be scrolled and doesn't react to terminal resizing #3613

Closed
1 task done
SillyFreak opened this issue Mar 10, 2024 · 1 comment · Fixed by #3648
Closed
1 task done
Labels
bug Something isn't working cli About Typst's command line interface. urgent Should be fixed before the next release.

Comments

@SillyFreak
Copy link
Sponsor Contributor

Description

With the display of typst watch output being shown in an "alternate screen", the regular viewport behavior of a terminal is not automatically available. This is especially relevant when compilation results in an error message that does not fit the current terminal height. In this case

  • using the arrow or page up/down keys does not scroll output
    • using the mouse wheel seems to be translated into arrow key presses (at least in my configuration)
  • resizing the terminal does not reveal more of the output but only blank lines (triggering a recompile by editing shows all output that fits in the new terminal size).

This makes debugging problems that result in long error traces harder.

Steps to reproduce

  • create a document with errors in it, ideally nested for a longer trace
  • run typst w on that document in a terminal with low height
  • try to scroll the error output or resize the terminal

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst
@SillyFreak SillyFreak added the bug Something isn't working label Mar 10, 2024
@frozolotl
Copy link
Contributor

I am now working on a solution to this.

@laurmaedje laurmaedje added cli About Typst's command line interface. urgent Should be fixed before the next release. labels Mar 11, 2024
laurmaedje added a commit that referenced this issue Mar 13, 2024
The alternate screen doesn't support scrolling by default. A more comprehensive alternate screen solution could support it, but adding something so complex immediately before the release is a bit risky.

Fixes #3613
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli About Typst's command line interface. urgent Should be fixed before the next release.
Projects
None yet
3 participants