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

📄 off_field.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef lintstatic	char	sccsid[] = "@(#)off_field.c 1.1 92/07/30";#endif/* *	Name:		off_field.c * *	Description:	Turn off (deactivate) field. * *	Call syntax:	off_form_field(field_p); * *	Parameters:	form_field *	field_p; */#include <curses.h>#include "menu.h"voidoff_form_field(field_p)	form_field *	field_p;{	menu_string *	string_p;		/* pointer to string */	int		x_coord, y_coord;	/* saved coordinates */	getyx(stdscr, y_coord, x_coord);	/* save where we were */	clear_form_field(field_p);	field_p->ff_active = NOT_ACTIVE;	for (string_p = field_p->ff_mstrings; string_p;	     string_p = string_p->ms_next) {		off_menu_string(string_p);	}	move(y_coord, x_coord);			/* put cursor back */} /* end off_form_field() */

⌨️ 快捷键说明

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