Create a gist now

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
require 'curses'
Curses.init_screen
Curses.start_color
Curses.use_default_colors if Curses.respond_to? :use_default_colors
Curses.raw
Curses.noecho
Curses.addstr 'Hello world'
Curses.refresh
Curses.getch
Curses.close_screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment