?? wclrtobot.c
字號:
#include <curses.h>#include "curspriv.h"/****************************************************************//* Wclrtobot() fills the right half of the cursor line of *//* Window 'win', and all lines below it with blanks. *//****************************************************************/int wclrtobot(win)WINDOW *win;{ int y, minx, startx, *ptr, *end, *maxx, blank; blank = ' ' | (win->_attrs & ATR_MSK); startx = win->_curx; for (y = win->_cury; y <= win->_regbottom; y++) { minx = _NO_CHANGE; end = &win->_line[y][win->_maxx]; for (ptr = &win->_line[y][startx]; ptr <= end; ptr++) { if (*ptr != blank) { maxx = ptr; if (minx == _NO_CHANGE) minx = ptr - win->_line[y]; *ptr = blank; } /* if */ } /* for */ if (minx != _NO_CHANGE) { if ((win->_minchng[y] > minx) || (win->_minchng[y] == _NO_CHANGE)) win->_minchng[y] = minx; if (win->_maxchng[y] < maxx - win->_line[y]) win->_maxchng[y] = maxx - win->_line[y]; } /* if */ startx = 0; } return(OK);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -