zompiexx / wargames

Wargames Simulator (Wargames Movie, 1983) by Andy Glenn - WOPR, Union Marine Bank, Pan-AM, School Computer, Tic-Tac-Toe Programs included in project
99 stars 13 forks source link

Replace control sequence RIS by DECSTR #6

Open Schwefelholz opened 1 month ago

Schwefelholz commented 1 month ago

Seems you're using the RIS signal (ESC c) to reset the terminal (clear screen). You should consider to replace this sequence by the DECSTR signal instead.

If you refer to https://vt100.net/docs/vt510-rm/RIS

The RIS control sequence is a full terminal reset.

The page says:

It is recommended that you not use RIS to reset the terminal. You should use a soft terminal reset (DECSTR) instead. RIS usually causes a communication line disconnect and may change the current baud rate settings. When performing a RIS, the terminal sends XOFF to the host to stop communication. When the RIS is complete, the terminal sends XON to resume communication.

Schwefelholz commented 1 month ago

I found that using DECSTR doesn't seem to be such a good idea as well, because it apparently has got issues with the WebUI Terminal.

I found a working ESC sequence to clear the screen that is actually working on all three different terminals I have at my disposal: The WebUI Terminal on the IMSAIesp, the S-132 by TheHighNibble and a VT-100 Terminal by LegacyPixels:

^[[2J ^[[f