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

Python error when TERM=tty33 #1

Open
hughpyle opened this issue Feb 10, 2022 · 9 comments
Open

Python error when TERM=tty33 #1

hughpyle opened this issue Feb 10, 2022 · 9 comments

Comments

@hughpyle
Copy link

With tty33 or tty37 terminal, displays this python error message:
/usr/local/lib/python3.6/dist-packages/blessed/terminal.py:186: UserWarning: Failed to setupterm(kind='tty33'): setupterm: unknown error

@hughpyle
Copy link
Author

Looks like this is just a warning from blessed. I don't think it has any bad side-effects, but does interfere with the display a bit. So you could avoid it by

with warnings.catch_warnings():
   warnings.simplefilter("ignore")
   term = blessed.Terminal()

@xereeto
Copy link
Owner

xereeto commented Feb 10, 2022

I'll add this but uhh... isn't a tty33 an actual paper teletype? I don't think this will work with one of those since it requires the ability to position the cursor

@hughpyle
Copy link
Author

Yes, this is true. It'd not really playable on an original tty33 terminal (for obvious reasons) - I won't mind if you close as "out of scope" ;)

IMG_8113
IMG_8109

@xereeto
Copy link
Owner

xereeto commented Feb 10, 2022

Holy shit, this is awesome! I thought I was cool for running it on a vt220... but you win :D
I'm gonna make a strictly line-based version now... shouldn't take long

@xereeto
Copy link
Owner

xereeto commented Feb 10, 2022

OK, it's done and up now... the user play-lineonly or play-lineonly-random should now work with the TTY!

@hughpyle
Copy link
Author

great - nice work!

IMG_8115

IMG_8116

@xereeto
Copy link
Owner

xereeto commented Feb 11, 2022

absolutely beyond cool... I need to get myself one of those!

@xereeto
Copy link
Owner

xereeto commented Feb 11, 2022

btw... if you're interested in hooking up this marvellous piece of retro tech over a proper modem, i should have that endpoint up and running by tomorrow... :)

@glitchphan
Copy link

Would you consider updating the repo code with this?

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