[ROOT] kbhit()

From: Frankland John (frankland@ganil.fr)
Date: Tue Oct 21 2003 - 10:20:11 MEST


Dear rooters

I just found the following old message in the digest :


  Re: Keyboard interaction

*From:* Valeri Fine (Faine) (/fine@bnl.gov/ 
<mailto:fine@bnl.gov?Subject=Re:%20Keyboard%20interaction&In-Reply-To=%3C022f01bebe63$c86e8ac0$5858c782@star.bnl.gov%3E>)
*Date:* Thu Jun 24 1999 - 19:05:38 MEST

    * *Next message:* George Irwin: "cloning TIter with state"
      <http://root.cern.ch/root/roottalk/roottalk99/1370.html>
    * *Previous message:* polishchuk@mx.ihep.su: "saving into PS file"
      <http://root.cern.ch/root/roottalk/roottalk99/1368.html>
    * *In reply to:* Thomas Eberl: "Keyboard interaction"
      <http://root.cern.ch/root/roottalk/roottalk99/1366.html>
    * *Messages sorted by:* [ date ]
      <http://root.cern.ch/root/roottalk/roottalk99/date.html#1369> [
      thread ]
      <http://root.cern.ch/root/roottalk/roottalk99/index.html#1369> [
      subject ]
      <http://root.cern.ch/root/roottalk/roottalk99/subject.html#1369> [
      author ]
      <http://root.cern.ch/root/roottalk/roottalk99/author.html#1369>

------------------------------------------------------------------------

> Dear rooters,
>
> is there a class in ROOT that allows to interact with the keyboard ?
  Very likle y the C function      int *kbhit*() may help you.

  Microsoft VC++ docs says:

" . . . Checks the console for keyboard input.

       int *kbhit*( void );




This would be exactly what I want/need, but unfortunately kbhit() (and 
its header file conio.h)
are apparently not included in the ANSI standard, so g++ (v.3.2.2) 
doesn't know it exists.
Surely there must be an ANSI-compliant equivalent ?

Cheers
John


-- 

John D. Frankland <mailto:frankland@ganil.fr>
Beam Coordinator
GANIL
B.P. 55027
14076 CAEN Cedex 05

*tel:* +33 (0)231454628
*fax:* +33 (0)231454665



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET