Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] catch keypressed
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Vincent Barichard <barichar@i...>
Subject: [Caml-list] catch keypressed


I would like to catch the hit of a key without being in graphic
mode. Something like :

while not keypressed() do
  print_string "Hit a key";

Is a fonction of this kind exists in CAML ??
And if it doesn't exist, is there a way to simulate its effect ??
The read_int fonction blocks until user enter a value so it is not
suitable for my problem.

thanks for your help


Vincent Barichard
Métaheuristiques et Optimisation Combinatoire
Faculté des Sciences d'Angers
Tel : 02 41 73 52 06
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: