Skip to content

Instantly share code, notes, and snippets.

@pmsanford
Created November 6, 2014 19:10
Show Gist options
  • Save pmsanford/c17d64939e481c2d2192 to your computer and use it in GitHub Desktop.
Save pmsanford/c17d64939e481c2d2192 to your computer and use it in GitHub Desktop.
A small file to test if you can change colors in your terminal.
extern crate ncurses;
use ncurses as nc;
fn main() {
nc::initscr();
nc::start_color();
if nc::can_change_color() {
nc::printw("Can change! :)");
}
else {
nc::printw("Can't change :(");
}
nc::getch();
nc::endwin();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment