menu-simple.h

来自「linux下从网卡远程启动」· C头文件 代码 · 共 47 行

H
47
字号
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2, or (at * your option) any later version. *//* *	Definitions of data structures generated by the menu compiler *	and expected by the menu program. All offsets are from the *	beginning of the data area. *//* *	Structure describing the data area, starts at 0. */struct menu_header{	char		major, minor;	/* Versions */	unsigned short	flags;		/* Capabilities */	unsigned int	timeout;	/* Global timeout */	unsigned int	selectprompt;	/* Offset of string saying Select... */	unsigned int	confirmprompt;	/* Offset of string saying Confirm... */	unsigned int	nmenus;		/* Number of menus stored */	/* Here follow unsigned int offsets of menus */};/* *	Structure describing one menu. The number of items is one *	greater than the last valid index. The 0th item holds the *	data to be displayed before any user input. */struct menu{	unsigned int	timeout;	/* Timeout for this menu */	unsigned int	nitems;		/* Items in this menu */	/* Here follow unsigned int offsets of items */};/* *	Structure describing one item in a menu. */struct item{	unsigned int	title;};

⌨️ 快捷键说明

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