⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 screen1.c

📁 linux的程序设计第二版 是学习LINUX下程序设计的好教程哦
💻 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 + -