Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] Terminal left in wrong state when quitting due to gameover
Home

[Freeciv-Dev] Terminal left in wrong state when quitting due to gameover

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Terminal left in wrong state when quitting due to gameover (PR#1077)
From: Petr Baudis <pasky@xxxxxxxxxxx>
Date: Mon, 26 Nov 2001 06:19:42 -0800 (PST)

Hi,

  when the game is over and server exits (at least when it was just an
autogame), the terminal is left in noecho state, so one has to type 'stty sane'
everytime. The attached patch restores terminal correctly. There is a question,
how to quit the server. It would be maybe most correct to do it via
quit_game(), like in the rest of server code, otherwise we will end up with
things like broken terminal. Or add close_connections_and_socket() call
minimally, to shutdown readline correctly.

-- 

                                Petr "Pasky" Baudis

UN*X programmer, UN*X administrator, hobbies = IPv6, IRC
Real Users hate Real Programmers.
Public PGP key, geekcode and stuff: http://pasky.ji.cz/~pasky/

Attachment: gameover-quit.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Terminal left in wrong state when quitting due to gameover (PR#1077), Petr Baudis <=