X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Thu, 12 Aug 2010 15:32:47 +1000 From: Jason Hood User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: resetting stdin after redirection References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: $$5emnjdfxpc7l-7.news.x-privat.org Message-ID: <4c6387a2$1@news.x-privat.org> Organization: X-Privat.Org NNTP Server - http://www.x-privat.org Lines: 10 X-Authenticated-User: $$np02fmijtvj-bfao$k3 X-Complaints-To: abuse AT x-privat DOT org Bytes: 1157 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On 12/08/2010 15:02, Rod Pemberton wrote: > After redirection, is there a DJGPP way to reassociate stdin with the > keyboard or console? as if, stdin had not been redirected? Can stdin be freopen( "con", "r", stdin ); should do the trick. -- Jason.