⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getsyx.c

📁 操作系统SunOS 4.1.3版本的源码
💻 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[] = "@(#)getsyx.c 1.1 92/07/30 SMI"; /* from S5R3.1 1.6 */#endif#include	"curses_inc.h"/* * Get the current screen coordinates (y, x). * * The current screen coordinates are defined as the last place that * the cursor was placed by a wnoutrefresh(), pnoutrefresh() or setsyx() * call. If leaveok() was true for the last window refreshed, then * return (-1, -1) so that setsyx() can reset the leaveok flag. * * This function is actually called by the macro getsyx(y, x), which is * defined in curses.h as: * * #define getsyx(y, x)	_getsyx(&y, &x) * * Note that this macro just adds in the '&'. In this way, getsyx() * is parallel with the other getyx() routines which don't require * ampersands. The reason that this can't all be a macro is that * that we need to access SP, which is normally not available in * user-level routines. */_getsyx(yp, xp)int	*yp, *xp;{    *yp = _virtscr->_cury - SP->Yabove;    *xp = _virtscr->_curx;    return (OK);}

⌨️ 快捷键说明

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