Sha256: f62f8bbaab8fefd2259ee466e2e424ddb5e75bead28bb7032e874eb0c4a80999
Contents?: true
Size: 506 Bytes
Versions: 1
Compression:
Stored size: 506 Bytes
Contents
#!/usr/bin/env ruby # # Sean O'Halpin, 2009-02-15 # require 'ffi-ncurses' include FFI::NCurses def try_cursor(n) addstr "\ncurs_set #{n} " curs_set n getch end begin initscr noecho addstr "Press any key to cycle through the cursor types:\n" addstr "Default " getch try_cursor 0 # Note that there probably won't be any difference between cursors 1 # and 2 on an X terminal. Try in the Linux console to see a difference. try_cursor 1 try_cursor 2 ensure FFI::NCurses.endwin end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffi-ncurses-0.4.0 | examples/cursor.rb |