Skip to content

Instantly share code, notes, and snippets.

@junegunn
Last active December 27, 2015 21:39
Show Gist options
  • Save junegunn/7392952 to your computer and use it in GitHub Desktop.
Save junegunn/7392952 to your computer and use it in GitHub Desktop.
#!/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