module TTY::Prompt::Reader::WinAPI
Constants
- CRT_HANDLE
- Handle
Public Class Methods
getch()
click to toggle source
# File lib/tty/prompt/reader/win_api.rb, line 15 def getch @@getch ||= Fiddle::Function.new(CRT_HANDLE["_getch"], [], TYPE_INT) @@getch.call end
getche()
click to toggle source
# File lib/tty/prompt/reader/win_api.rb, line 21 def getche @@getche ||= Fiddle::Function.new(CRT_HANDLE["_getche"], [], TYPE_INT) @@getche.call end
Private Instance Methods
getch()
click to toggle source
# File lib/tty/prompt/reader/win_api.rb, line 15 def getch @@getch ||= Fiddle::Function.new(CRT_HANDLE["_getch"], [], TYPE_INT) @@getch.call end
getche()
click to toggle source
# File lib/tty/prompt/reader/win_api.rb, line 21 def getche @@getche ||= Fiddle::Function.new(CRT_HANDLE["_getche"], [], TYPE_INT) @@getche.call end