📄 tc1.c
字号:
#ifndef lintstatic char sccsid[] = "@(#)tc1.c 4.1 (Berkeley) 6/27/83";#endif/* * tc1 [term] * dummy program to test termlib. * gets entry, counts it, and prints it. */#include <stdio.h>char buf[1024];char *getenv();main(argc, argv) char **argv; { char *p; int rc; if (argc < 2) p = getenv("TERM"); else p = argv[1]; rc = tgetent(buf,p); printf("tgetent returns %d, len=%d, text=\n'%s'\n",rc,strlen(buf),buf);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -