drawbox.c

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· C语言 代码 · 共 23 行

C
23
字号
/*	drawbox.c	4.1	83/03/09	*//* * Draw a box around a window.  The lower left corner of the box is at (r, c). * Color is 1 for drawing a box, 0 for erasing. * The box is nrow by ncol. */#include "2648.h"drawbox(r, c, color, nrow, ncol)int r, c, color, nrow, ncol;{	if (color)		setset();	else		setclear();	move(c, r);	draw(c+ncol-1, r);	draw(c+ncol-1, r+nrow-1);	draw(c, r+nrow-1);	draw(c, r);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?