Skip to content

Tty initialization error leads to illegible errors + potentially erroneous examples? #222

@xydone

Description

@xydone

Taking the cli.zig example for example, running it without any changes to the source code results in an error which looks like this:

Image

This error only occurs on when enterAltScreen(...) is not called. I assume that this is something related to my terminal setup, however I am able to replicate it on Windows Terminal and standard cmd.exe. I'm unsure if this is an error exclusively called by some terminal misconfiguration or something that runs deeper, but I thought I should report it either way.

Adding enterAltScreen(...) does fix the runtime crash, but I don't believe it is functional, as this is how it looks like

Image

I decided to group both issues into one as I assume they are correlated.

Setup:

edit: removed irrelevant error log as it occurs due to stdout piping

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions