delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2010/08/12/01:45:13

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 <jadoxa AT yahoo DOT com DOT au>
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: <i3vv7d$nsg$1 AT speranza DOT aioe DOT org>
In-Reply-To: <i3vv7d$nsg$1@speranza.aioe.org>
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019