Created
November 6, 2014 19:10
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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