comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: is there any sample code for detecting key strokes while writing to a .txt file?
Date: Wed, 09 Jul 2014 15:33:24 +0200
Date: 2014-07-09T15:33:24+02:00	[thread overview]
Message-ID: <lpjgb0$e79$1@dont-email.me> (raw)
In-Reply-To: <2aadf55b-a433-4887-bea2-db492582632c@googlegroups.com>

Le 09/07/2014 15:13, torralbaduran@gmail.com a écrit :
> Hi,
> I'm having problems writing to a file while
> the user inputs data from the keyboard.
> 
> Is there any sample code so I ca check it out?
> 
We certainly need more info about what you are trying to achieve in
order to help you.

However, as a wild guess, note that the only way to achieve non-blocking
read is by using get_immediate; all other input procedures (like any
procedure call for that matter) are not exited until terminated;
therefore, if you use Get_Line, your program will not proceed until the
user has entered a line.

Simultaneous execution may be obtained by using multiple tasks, but the
behaviour of IOs from multiple tasks is system-dependent.

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr

      reply	other threads:[~2014-07-09 13:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-09 13:13 is there any sample code for detecting key strokes while writing to a .txt file? torralbaduran
2014-07-09 13:33 ` J-P. Rosen [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox