1 require 'dl' 2 3 crtdll = DL::dlopen("crtdll") 4 getch = crtdll['_getch', 'L'] 5 print(getch.call, "\n")