Newsgroup: comp.unix.programmer


Date: Wed, 12 Apr 2006 08:55:19 +0300
From: Diomidis Spinellis <dds@aueb.gr>
Organization: Athens University of Economics and Business
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0
MIME-Version: 1.0
Newsgroups: comp.unix.programmer
Subject: Re: _pause() and _continue()
References: <1144804741.930960.110640@v46g2000cwv.googlegroups.com>
In-Reply-To: <1144804741.930960.110640@v46g2000cwv.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
DaVinci wrote:
> I am writing a ncurses game,ping-pong,
> void _pause()
> //when the user press 'p',the game will pause
> {
>      //??how to implement?
> }

Simply enter a state where you read and discard characters, until you 
get an EOF or a 'p'.




Newsgroup comp.unix.programmer contents
Newsgroup list
Diomidis Spinellis home page

Creative Commons License Unless otherwise expressly stated, all original material on this page created by Diomidis Spinellis is licensed under a Creative Commons Attribution-Share Alike 3.0 Greece License.