摘要:
Ncurses(三)- 使用颜色 检查颜色可用 在使用颜色之前,你需要知道你的终端是否支持颜色显示,你可以通过以下if检测: if (has_colors() == FALSE) { endwin(); printf("Your terminal does not support color\n") 阅读全文
摘要:
Ncurses入门-(二)游标控制与窗口 游标控制 在curses中我们使用move(y,x);来移动游标位置 例如以下程序: #include <bits/stdc++.h> #include <ncurses.h> int main(){ initscr(); int x,y; x = y = 阅读全文