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

📄 disp_string.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef lintstatic	char	sccsid[] = "@(#)disp_string.c 1.1 92/07/30";#endif/* *	Name:		disp_string.c * *	Description:	Display a menu string. * *	Call syntax:	display_menu_string(string_p); * *	Parameters:	menu_string *	string_p; */#include <curses.h>#include "menu.h"voiddisplay_menu_string(string_p)	menu_string *	string_p;{	int		x_coord, y_coord;	/* saved coordinates */	if (string_p->ms_active) {						/* save where we were */		getyx(stdscr, y_coord, x_coord);		if (string_p->ms_attribute == ATTR_STAND)			standout();		mvaddstr((int) string_p->ms_y, (int) string_p->ms_x,			 string_p->ms_data);		if (string_p->ms_attribute == ATTR_STAND)			standend();		move(y_coord, x_coord);		/* put cursor back */	}} /* end display_menu_string() */

⌨️ 快捷键说明

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