diff options
Diffstat (limited to 'ruby_1_8_5/ext/Win32API/getch.rb')
-rw-r--r-- | ruby_1_8_5/ext/Win32API/getch.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ruby_1_8_5/ext/Win32API/getch.rb b/ruby_1_8_5/ext/Win32API/getch.rb new file mode 100644 index 0000000000..c015bbe9bc --- /dev/null +++ b/ruby_1_8_5/ext/Win32API/getch.rb @@ -0,0 +1,5 @@ +require 'Win32API' + +getch = Win32API.new("crtdll", "_getch", [], 'L') + +puts getch.Call.chr |