ComputerScienceHouse / bingehack4

A replacement for bingehack. For information about in-game features and changes:
https://github.com/ComputerScienceHouse/bingehack4/wiki
Other
17 stars 8 forks source link

"terminal is too small" error when using PuTTY #46

Closed digitalcora closed 8 years ago

digitalcora commented 11 years ago

Using the latest version of PuTTY, I get this error message upon telnet to games-ng:

Sorry, your terminal is too small for NetHack 4. Current: (0, 0)

Everything works fine if I instead telnet to nethack4.org, so this problem seems to be specific either to bingehack or its particular server environment.

(Notably, this only occurred after I set my terminal-type string to "putty" instead of the default "xterm", as advised by the Nethack4 FAQ, to fix the character encoding issues I initially encountered. I can get into the server with the terminal-type set to "xterm", but the characters are all garbled.)

clockfort commented 11 years ago

Can you SSH to rancor with your nethack4 settings and echo $LINES : $COLUMNS : $TERM ?

It looks like, if you're not providing a $LINES and $COLUMNS back to me (as environmental variables --> ncursesw --> nethack), I can set ones manually for you in a terminfo config file, which may be what the nethack4 server is doing to help braindead terminal emulators. The downside is that everyone using braindead terminal emulators would have to pick a graphics resolution and keep it.

digitalcora commented 11 years ago
grantovich@rancor ~ $ echo $LINES : $COLUMNS : $TERM
40 : 110 : putty

Also, when I telnet to nethack4.org, go to view a replay or something, and resize my terminal, the interface resizes to fit. So it is definitely communicating the terminal size somehow.

digitalcora commented 8 years ago

Necro-close: This no longer happens for me with the current versions of PuTTY and games-ng. :rocket: