?? strdefs.h
字號:
#ifndef __STRDEFS_H__#define __STRDEFS_H__#ifdef LOW_RES#define WIDTH 70#define HEIGHT 3#define WINHEIGHT 18#else#define WIDTH 78#define HEIGHT 3#define WINHEIGHT 18#endif // LOW_RES/* Macros for Grouping Basic functionalities */#define WATTR(WIN, ATTR, INSIDE) \ wattron(WIN, ATTR);\ INSIDE\ wattroff(WIN, ATTR);#define CENTER(WIN, Y, STR) \ mvwhline(WIN, Y, 1, ' ', WIDTH-2); \ mvwprintw(WIN, Y, (WIDTH-strlen(STR))/2, STR);#define HEADER(WIN, STR) \ WATTR( WIN, A_BOLD | COLOR_PAIR(2), \ CENTER( WIN, 1, STR) ) \ mvwhline(WIN, 2, 1, ACS_HLINE, WIDTH-2); /* Default String Definitions */#ifdef ATMELstatic const char CompanyName[] = "ATMEL";#elif defined(SMARTBRIDGES)static const char CompanyName[] = "SmartBridges";#endif#ifdef CALLER_COFVNETstatic const char *conf_choices[] = { "Select SSID name (max 32 characters)", "Select Channel", "Select Radio State", "Select International Roaming State", "Select Transmit Rate", "Select Operating Mode", "Select Preamble Type", "Select Power Mgmt Mode", "Select Fragmentation Threshold", "Select Rts Threshold", "Exit Menu",};static const char *choices[] = {// "View Configuration", "View Config", "Advanced", "Security", "Configure Card", "Site Survey", "Exit",};static const char *offon[] = { "Off", "On" };static const char *dis_enable[] = { "Disable", "Enable" };static const char *powermode[] = { "Active", "Power Save", "Smart P. Save" };static const char *txrate[] = { "1Mbps", "2Mbps", "5.5Mbps", "11Mbps", "Auto" };#endif // caller == cofvnet#ifdef CALLER_SETSstatic const char *wep_choices[] = { "Set Wep Level", "Set Transmission Key", "Set Wep Key Value",// "Set Wep Mode", "Set Authentication type", "Exit Menu", };static const long frequency_list[] = { 2412, 2417, 2422, 2427, 2432, 2437, 2442, 2447, 2452, 2457, 2462, 2467, 2472, 2484 };#else // caller != sets.cstatic const char *opermode[] = { "Ad-hoc", "Infrastructure" };#endif // caller == sets.c#ifdef CALLER_SURVEYstatic const char *nychoice[] = { "No", "Yes" };#else // caller != survey.c#endif // caller == survey.c#endif //__STRDEFS_H__
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -