Getting 256 colors out of ruby-ncurses
问题 I've got 256 colors working great in my terminal (test scripts here), but it stops working when I use ncurses (via Ruby-ncurses). Printing the escape sequences given on that page works fine, but when I initialize ncurses 'puts' stops working and I can't output the colors with any of the various ncurses color changing/string output functions I've found. What gives? 回答1: I am not sure if this would be all the story, but make sure your terminal capabilities do indeed provide for the 256 colors