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

tic80 -h command outputs to nowhere unless redirected #1269

Closed
KatPurpy opened this issue Dec 10, 2020 · 2 comments
Closed

tic80 -h command outputs to nowhere unless redirected #1269

KatPurpy opened this issue Dec 10, 2020 · 2 comments
Assignees

Comments

@KatPurpy
Copy link

OS: Windows

Problem: when executing tic80 -h it seems to output nothing BUT if I writetic80 -h >>OUT.TXT then file OUT.TXT appears with output exactly what's expected

Usage: tic80 [cart] [options]

TIC-80 startup options:

    -h, --help        show this help message and exit
    --skip            skip startup animation
    --nosound         disable sound output
    --fullscreen      enable fullscreen mode
    --fs=<str>        path to the file system folder
    --scale=<int>     main window scale
    --cmd=<str>       run commands in the console

Possible solution? Make ArgParse module write into stdout not stderr or wherever it is writing now

@nesbox nesbox self-assigned this Dec 11, 2020
@msx80
Copy link
Contributor

msx80 commented Dec 11, 2020

i don't know if it helps, but looking at the code recently i came across a wild setbuf(stdout, NULL); here. Perhaps it's related.

nesbox added a commit that referenced this issue Dec 16, 2020
nesbox added a commit that referenced this issue Dec 16, 2020
@nesbox
Copy link
Owner

nesbox commented Dec 16, 2020

I found a hacky solution on how to output to the console in the windows app.

@nesbox nesbox closed this as completed Dec 16, 2020
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

3 participants