Janis Papanagnou
2024-08-17 14:24:24 UTC
I just noticed an undesired display effect when playing and viewing
games on the Hardfought server (that I access through command line
with ssh)...
I played as usual a game of 'notnotdNethack', usual tty display, and
everything was fine. Then I saved and viewed someone else's 'nndnh'
game; it was played with a game configuration that used some other
display setting (organized with separate sub-windows for inventory,
map, messages, etc.). When I left that view-session to continue my
own game the cursor was gone, and also when leaving the ssh session
the cursor was still gone (and I had to reset my terminal).
I assume that the display functions of the program ('nndnh') were
not properly reset in that runtime environment. I'm not quite sure
whether that would have to be fixed in the executable of the nndnh
program[*] or (as a safety measure) in the Hardfought script that
controls the viewing and playing of games. Or maybe in both tools,
just to be sure and suppor a reliable interface. It's certainly to
be considered a bug.
Janis
[*] In my own programs where I control the display output with ANSI
codes I certainly do an ANSI-reset before exiting my programs, also
in cases where the program gets interrupted roughly by signals such
a cleanup is mandatory.
games on the Hardfought server (that I access through command line
with ssh)...
I played as usual a game of 'notnotdNethack', usual tty display, and
everything was fine. Then I saved and viewed someone else's 'nndnh'
game; it was played with a game configuration that used some other
display setting (organized with separate sub-windows for inventory,
map, messages, etc.). When I left that view-session to continue my
own game the cursor was gone, and also when leaving the ssh session
the cursor was still gone (and I had to reset my terminal).
I assume that the display functions of the program ('nndnh') were
not properly reset in that runtime environment. I'm not quite sure
whether that would have to be fixed in the executable of the nndnh
program[*] or (as a safety measure) in the Hardfought script that
controls the viewing and playing of games. Or maybe in both tools,
just to be sure and suppor a reliable interface. It's certainly to
be considered a bug.
Janis
[*] In my own programs where I control the display output with ANSI
codes I certainly do an ANSI-reset before exiting my programs, also
in cases where the program gets interrupted roughly by signals such
a cleanup is mandatory.