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

📄 console.h

📁 用于嵌入式系统的TCP/IP协议栈及若干服务
💻 H
字号:
/**            Copyright (c) 1998-2001 by NETsilicon Inc.**  This software is copyrighted by and is the sole property of*  NETsilicon.  All rights, title, ownership, or other interests*  in the software remain the property of NETsilicon.  This*  software may only be used in accordance with the corresponding*  license agreement.  Any unauthorized use, duplication, transmission,*  distribution, or disclosure of this software is expressly forbidden.**  This Copyright notice may not be removed or modified without prior*  written consent of NETsilicon.**  NETsilicon, reserves the right to modify this software*  without notice.**  NETsilicon*  411 Waverley Oaks Road                  USA 781.647.1234*  Suite 227                               http://www.netsilicon.com*  Waltham, MA 02452                       AmericaSales@netsilicon.com***************************************************************************  $Source: M:/psisrc/stack/incl/rcs/console.h $***************************************************************************  File Description:  Structures and macro's used with FUSION CONSOLE***************************************************************************//* default settings */#define MAX_M_NAME      50#define MAX_SELECTION   15#define MAX_D_LINE      80#define MAX_MENU_NUM    15#define TOP_EMPTY_LINES 5#define VERT_MAX_LINES  25#define TILE_TO_1LINE   10#define MAX_CON_STR_LEN 256#define MAX_USERNAME    25#define MAX_PASSWORD    15/* 2/97 OL: added characters value *//* second character value of DEL 2 chars sequence: {0x0, 0x53} */#define DEL_SECOND	  (u8)0x53#define BACKSPACE	    (u8)8 	/* Backspace character value *//* 2/97 OL: added read_string() to allow sharing between console.c and fnsdemo.c */int     read_string(char *string);#define line_clr_es(ln, col)  os_printf("\x01B[%d;%dH \x01B[J",ln, col)#define line_clr_el(ln, col)  os_printf("\x01B[%d;%dH",ln, col)/* 2/97 OL: added ifndef PROX_X86_REAL */#ifndef PROC_X86_REAL/* VT_100 escape sequences */#define line(line, column)  os_printf("\x01B[%d;%dH",line,column)/* Clears VT_100 screen */#define CLRS                os_printf ("\x01B[2J")/* Clear from cursor to end of line */#define CLR_TO_ENDL         os_printf ("\x01B[K")/* Clear from cursor to end of screen */#define CLR_TO_END_SCREEN   os_printf ("\x01B[J")/* Next line */#define NEXT_LINE           os_printf ("\x01B\x045")#define DO_BACK_SPACE/* Do nothing. It is '\b', and already echoed in read_e_char()*/#else/* 2/97 OL: moved compiler dependent macros to separate include file */#include "pcconsol.h"#endif /* PROC_X86_REAL */typedef struct _selection {    char    Disp_Line[MAX_D_LINE];    int     (*func)(int);    int     fn_arg;} SELECTION;        typedef struct _menu {    int             id;    int             num_select;    char            M_Name[MAX_M_NAME];    SELECTION       selection[MAX_SELECTION];} MENU;extern int  FS_CreateTask(char *p_name, void (*task)(void *dptr), void  *data, void  *pstk, u8  p);enum _tel_menu_id{    MAIN_MENU,    ECONFIG,    PCONFIG,    PERFORM,    TELNET,    WEB_LT,    SNMP_MENU,    MODEM,    MULTI,    STATUS,             /*RLS 4/97*/    UDPTEST,    TCPTEST,    GOUP,    ETHER,    PPP,    DIAL,    HANGUP,    NULLM,    SPORT,    BRATE,    LOGINI,    UPROMPT,    UNAME,    PASSW,    CMND,    SE,    LOGIN,    MULTI_LIST,    MULTI_JOIN,    MULTI_LEAVE,    UDP_C_ECHO,    TCP_C_ECHO,    ICMP_C_ECHO,    PPP_STOP_NT,    PPP_STOP_TER,    SNMP_V1,    SNMP_V2,    TASK_STATS,          /*RLS 4/97*/    MAIL_MENU,            /* jp 9.97*/    SMTP_TASK,    PPP_USERS,          /* 04.2000 - added new items to support server menus */    PPP_IP_POOL,    PPP_IP_CONFIG};

⌨️ 快捷键说明

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