📄 box.c
字号:
#ifdef lintstatic char *sccsid = "@(#)box.c 4.1 (ULTRIX) 7/2/90";#endif lint# include "curses.ext"/* * This routine draws a box around the given window with "vert" * as the vertical delimiting char, and "hor", as the horizontal one. * * 1/26/81 (Berkeley) @(#)box.c 1.1 *//* Defaults - might someday be terminal dependent using graphics chars */#define DEFVERT '|'#define DEFHOR '-'box(win, vert, hor)register WINDOW *win;chtype vert, hor;{ register int i; register int endy, endx; register chtype *fp, *lp; if (vert == 0) vert = DEFVERT; if (hor == 0) hor = DEFHOR; endx = win->_maxx; endy = win->_maxy - 1; fp = win->_y[0]; lp = win->_y[endy]; for (i = 0; i < endx; i++) fp[i] = lp[i] = hor; endx--; for (i = 0; i <= endy; i++) win->_y[i][0] = (win->_y[i][endx] = vert); touchwin(win);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -