[英]Color at specific point - ncurses
我正在嘗試使用ncurses lib在屏幕的特定位置進行着色。
我寫了這段代碼:
#include<curses.h>
int main(void)
{
initscr();
start_color();
init_pair(1, COLOR_BLACK, COLOR_RED);
attron(COLOR_PAIR(1));
move(10, 10);
printw(" \n");
refresh();
getch();
endwin();
return 0;
}
有更好的方法嗎? 還是這是唯一的方法?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.