From: Hee-Sob Park Date: 2001-01-12T13:10:02+09:00 Subject: [ruby-talk:9174] Re: Grabbing a char from the keyboard... "Hal E. Fulton" wrote in message news:00ac01c07c50$5af4e280$01f9fea9@austin.rr.com... > Thank you, Goto, Matz, and Hideto... > > Now is it possible to do it in Windows, without > Cygwin and without a C extension? > > Never mind platform independence; can it be > done at all? > > Hal Fulton > How about this in ruby distribution /ext/Win32API/getch.rb ? require 'Win32API' getch = Win32API.new("crtdll", "_getch", [], 'L') puts getch.Call.chr Hee-Sob Park