From: AW Date: 2002-08-28T14:23:22+09:00 Subject: Re: question: passive console input very nice! Where can I get more documentation of the win32api for ruby? I have 'Programming Ruby' but it barely touches on it. >What about this? > >--------------------------------------------- >require 'Win32API' > >kbhit = Win32API.new("crtdll", "_kbhit", [], 'L') >getch = Win32API.new("crtdll", "_getch", [], 'L') > >for i in 0 .. 100000 > puts "#{i} #{getch.Call.chr} pressed" if kbhit.Call != 0 >end >---------------------------------------------- > >Park Heesob > > >