📄 wdelch.c
字号:
/* Copyright (c) 1984 AT&T *//* All Rights Reserved *//* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T *//* The copyright notice above does not evidence any *//* actual or intended publication of such source code. */#ifndef lintstatic char sccsid[] = "@(#)wdelch.c 1.1 92/07/30 SMI"; /* from S5R3.1 1.2 */#endif#include "curses_inc.h"/* * This routine performs a delete-char on the line, * leaving (_cury, _curx) unchanged. */wdelch(win)register WINDOW *win;{ register chtype *temp1, *temp2; register chtype *end; register int cury = win->_cury; register int curx = win->_curx; end = &win->_y[cury][win->_maxx - 1]; temp2 = &win->_y[cury][curx + 1]; temp1 = temp2 - 1; while (temp1 < end) *temp1++ = *temp2++; *temp1 = win->_bkgd;#ifdef _VR3_COMPAT_CODE if (_y16update) (*_y16update)(win, 1, win->_maxx - curx, cury, curx);#endif /* _VR3_COMPAT_CODE */ win->_lastch[cury] = win->_maxx - 1; if (win->_firstch[cury] > curx) win->_firstch[cury] = curx; win->_flags |= _WINCHANGED; if (win->_sync) wsyncup(win); return (win->_immed ? wrefresh(win) : OK);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -