Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

Commit

Permalink
Added input.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenrix committed Jun 30, 2015
1 parent 4a3d6a9 commit 7d10661
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions input.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'ncurses'

begin
Ncurses.initscr

while(true)
ch = Ncurses.getch
if ch == "w"
Ncurses.mvaddstr(0, 0, "I'm w!")
end
end

ensure
Ncurses.endwin
end

0 comments on commit 7d10661

Please sign in to comment.