?? screen1.c
字號:
/* We add in the curses.h header file and in the main function we make calls to initialize and reset the curses library. */#include <unistd.h>#include <stdlib.h>#include <curses.h>int main() { initscr();/* We move the cursor to the point (5,15) on the logical screen, print "Hello World" and refresh the actual screen. Lastly, we use the call sleep(2) to suspend the program for two seconds, so we can see the output before the program ends. */ move(5, 15); printw("%s", "Hello World"); refresh(); sleep(2); endwin(); exit(EXIT_SUCCESS);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -