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

📄 ckudia.c

📁 linux终端仿真程序
💻 C
📖 第 1 页 / 共 5 页
字号:
    35,					/* dial_time */    ",",				/* pause_chars */    2,					/* pause_time */#ifdef OS2    "ATQ0X4W1Y0&S0&C1&D2%E2\\K5+FCLASS=0N1S37=0\015", /* wake_str */#else    "ATQ0X4W1Y0%E2\\K5+FCLASS=0N1S37=0\015", /* wake_str */#endif /* OS2 */    0,					/* wake_rate */    "OK\015",				/* wake_prompt */    "",					/* dmode_str */    "",					/* dmode_prompt */    "ATD%s\015",			/* dial_str */    0,					/* dial_rate */    1100,				/* esc_time */    43,					/* esc_char */    "ATQ0H0\015",			/* hup_str */    "AT&K3\015",			/* hwfc_str */    "AT&K4S32=17S33=19\015",		/* swfc_str */    "AT&K0\015",			/* nofc_str */    "AT&Q5\\N0\015",			/* ec_on_str */    "AT&Q0\\N1\015",			/* ec_off_str */    "AT%C1\015",			/* dc_on_str */    "AT%C0\015",			/* dc_off_str */    "ATS0=1\015",			/* aa_on_str */    "ATS0=0\015",			/* aa_off_str */    "",					/* sb_on_str */    "",					/* sb_off_str */    57600L,				/* max_speed */    CKD_AT|CKD_SB|CKD_EC|CKD_DC|CKD_HW|CKD_SW, /* capas */    getok				/* ok_fn */};staticMDMINF RWV32B =				/* Generic Rockwell V.32bis */    {    "Generic Rockwell V.32bis modem",	/* ATI3, ATI4, and ATI6 for details */    "ATP\015",				/* pulse command */    "ATT\015",				/* tone command */    35,					/* dial_time */    ",",				/* pause_chars */    2,					/* pause_time */#ifdef OS2    "ATQ0X4W1Y0&S0&C1&D2%E2\\K5+FCLASS=0N1S37=0\015", /* wake_str */#else    "ATQ0X4W1Y0%E2\\K5+FCLASS=0N1S37=0\015", /* wake_str */#endif /* OS2 */    0,					/* wake_rate */    "OK\015",				/* wake_prompt */    "",					/* dmode_str */    "",					/* dmode_prompt */    "ATD%s\015",			/* dial_str */    0,					/* dial_rate */    1100,				/* esc_time */    43,					/* esc_char */    "ATQ0H0\015",			/* hup_str */    "AT&K3\015",			/* hwfc_str */    "AT&K4S32=17S33=19\015",		/* swfc_str */    "AT&K0\015",			/* nofc_str */    "AT&Q5S36=7S48=7\\N3\015",		/* ec_on_str */    "AT&Q0S48=128\\N1\015",		/* ec_off_str */    "ATS46=138%C1\015",			/* dc_on_str */    "ATS46=136%C0\015",			/* dc_off_str */    "ATS0=1\015",			/* aa_on_str */    "ATS0=0\015",			/* aa_off_str */    "",					/* sb_on_str */    "",					/* sb_off_str */    57600L,				/* max_speed */    CKD_AT|CKD_SB|CKD_EC|CKD_DC|CKD_HW|CKD_SW, /* capas */    getok				/* ok_fn */};staticMDMINF RWV34 =				/* Generic Rockwell V.34 Data/Fax */    {    "Generic Rockwell V.34 modem",	/* ATI3, ATI4, and ATI6 for details */    "ATP\015",				/* pulse command */    "ATT\015",				/* tone command */    35,					/* dial_time */    ",",				/* pause_chars */    2,					/* pause_time */#ifdef OS2    "ATQ0X4W1Y0%E2&S0&C1&D2\\K5+FCLASS=0+MS=11,1\015", /* wake_str */#else    "ATQ0X4W1Y0%E2\\K5+FCLASS=0+MS=11,1\015", /* wake_str */#endif /* OS2 */    0,					/* wake_rate */    "OK\015",				/* wake_prompt */    "",					/* dmode_str */    "",					/* dmode_prompt */    "ATD%s\015",			/* dial_str */    0,					/* dial_rate */    1100,				/* esc_time */    43,					/* esc_char */    "ATQ0H0\015",			/* hup_str */    "AT&K3\015",			/* hwfc_str */    "AT&K4S32=17S33=19\015",		/* swfc_str */    "AT&K0\015",			/* nofc_str */    "AT&Q5S36=7S48=7\\N3\015",		/* ec_on_str */    "AT&Q0S48=128\\N1\015",		/* ec_off_str */    "ATS46=138%C1\015",			/* dc_on_str */    "ATS46=136%C0\015",			/* dc_off_str */    "ATS0=1\015",			/* aa_on_str */    "ATS0=0\015",			/* aa_off_str */    "",					/* sb_on_str */    "",					/* sb_off_str */    115200L,				/* max_speed */    CKD_AT|CKD_SB|CKD_EC|CKD_DC|CKD_HW|CKD_SW, /* capas */    getok				/* ok_fn */};staticMDMINF MWAVE =				/* IBM Mwave */    {    "IBM Mwave Adapter",    "ATP\015",				/* pulse command */    "ATT\015",				/* tone command */    35,					/* dial_time */    ",",				/* pause_chars */    2,					/* pause_time */#ifdef OS2    "ATQ0X4Y0&S0&C1&D2&M0&Q0&N1\\K3\\T0%E2S28=0\015", /* wake_str */#else    "ATQ0X4Y0&M0&Q0&N1&S0\\K3\\T0%E2S28=0\015", /* wake_str */#endif /* OS2 */    0,					/* wake_rate */    "OK\015",				/* wake_prompt */    "",					/* dmode_str */    "",					/* dmode_prompt */    "ATD%s\015",			/* dial_str */    0,					/* dial_rate */    1100,				/* esc_time */    43,					/* esc_char */    "ATQ0H0\015",			/* hup_str */    "AT\\Q3\015",			/* hwfc_str */    "",					/* swfc_str (it doesn't!) */    "AT\\Q0\015",			/* nofc_str */    "AT\\N7\015",			/* ec_on_str */    "AT\\N0\015",			/* ec_off_str */    "AT%C1\"H3\015",			/* dc_on_str */    "AT%C0\"H0\015",			/* dc_off_str */    "ATS0=1\015",			/* aa_on_str */    "ATS0=0\015",			/* aa_off_str */    "",					/* sb_on_str */    "",					/* sb_off_str */    57600L,				/* max_speed */    CKD_AT|CKD_SB|CKD_EC|CKD_DC|CKD_HW, /* capas */    getok				/* ok_fn */};staticMDMINF TELEPATH =			/* Gateway 2000 Telepath */    {    "Gateway 2000 Telepath II 28.8",    "ATP\015",				/* pulse command */    "ATT\015",				/* tone command */    35,					/* dial_time */    ",",				/* pause_chars */    2,					/* pause_time */#ifdef OS2    "ATQ0X4&S0&C1&D2&N0&Y2#CLS=0S13=0S15=0S19=0\015", /* wake_str */#else    "ATQ0X4&N0&Y1#CLS=0S13=0S15=0S19=0\015", /* wake_str */#endif /* OS2 */    0,					/* wake_rate */    "OK\015",				/* wake_prompt */    "",					/* dmode_str */    "",					/* dmode_prompt */    "ATD%s\015",			/* dial_str */    0,					/* dial_rate */    1100,				/* esc_time */    43,					/* esc_char */    "ATQ0H0\015",			/* hup_str */    "AT&H1&R2\015",			/* hwfc_str */    "AT&H2&I2S22=17S23=19\015",		/* swfc_str */    "AT&H0&I0&R1\015",			/* nofc_str */    "AT&M4&B1\015",			/* ec_on_str -- also fixes speed */    "AT&M0\015",			/* ec_off_str */    "AT&K1\015",			/* dc_on_str */    "AT&K0\015",			/* dc_off_str */    "ATS0=1\015",			/* aa_on_str */    "ATS0=0\015",			/* aa_off_str */    "",					/* sb_on_str */    "",					/* sb_off_str */    57600L,				/* max_speed */    CKD_AT|CKD_SB|CKD_EC|CKD_DC|CKD_HW, /* capas */    getok				/* ok_fn */};staticMDMINF CARDINAL =			/* Cardinal - based on Rockwell V.34 */    {    "Cardinal MVP288X Series",		/* ATI3, ATI4, and ATI6 for details */    "ATP\015",				/* pulse command */    "ATT\015",				/* tone command */    35,					/* dial_time */    ",",				/* pause_chars */    2,					/* pause_time */#ifdef OS2    "ATQ0X4W1Y0%E2&S0&C1&D2\\K5+FCLASS=0+MS=11,1\015", /* wake_str */#else    "ATQ0X4W1Y0%E2\\K5+FCLASS=0+MS=11,1\015", /* wake_str */#endif /* OS2 */    0,					/* wake_rate */    "OK\015",				/* wake_prompt */    "",					/* dmode_str */    "",					/* dmode_prompt */    "ATD%s\015",			/* dial_str */    0,					/* dial_rate */    1100,				/* esc_time */    43,					/* esc_char */    "ATQ0H0\015",			/* hup_str */    "AT&K3\015",			/* hwfc_str */    "AT&K4S32=17S33=19\015",		/* swfc_str */    "AT&K0\015",			/* nofc_str */    "AT&Q5S36=7S48=7\\N3\015",		/* ec_on_str */    "AT&Q0S48=128\\N1\015",		/* ec_off_str */    "ATS46=138%C1\015",			/* dc_on_str */    "ATS46=136%C0\015",			/* dc_off_str */    "ATS0=1\015",			/* aa_on_str */    "ATS0=0\015",			/* aa_off_str */    "",					/* sb_on_str */    "",					/* sb_off_str */    115200L,				/* max_speed */    CKD_AT|CKD_SB|CKD_EC|CKD_DC|CKD_HW|CKD_SW, /* capas */    getok				/* ok_fn */};/*  Now the "old" modems, all grouped together, and also within   "if not defined MINIDIAL"...*/#ifdef OLDMODEMSstaticMDMINF CERMETEK =	/* Information for "Cermetek Info-Mate 212 A" modem */    {    "Cermetek Info-Mate 212 A",    "",					/* pulse command */    "",					/* tone command */    20,					/* dial_time */    "BbPpTt",				/* pause_chars */    0,					/* pause_time */    "  XY\016R\015",			/* wake_str */    200,				/* wake_rate */    "",					/* wake_prompt */    "",					/* dmode_str */    NULL,				/* dmode_prompt */    "\016D '%s'\015",			/* dial_str */    200,				/* dial_rate */    0,					/* esc_time */    0,					/* esc_char */    "",					/* hup_str */    "",					/* hwfc_str */    "",					/* swfc_str */    "",					/* nofc_str */    "",					/* ec_on_str */    "",					/* ec_off_str */    "",					/* dc_on_str */    "",					/* dc_off_str */    "",					/* aa_on_str */    "",					/* aa_off_str */    "",					/* sb_on_str */    "",					/* sb_off_str */    1200L,				/* max_speed */    0,					/* capas */    NULL				/* ok_fn */};staticMDMINF DF03 =		/* information for "DEC DF03-AC" modem */    {    "Digital DF03-AC",    "",					/* pulse command */    "",					/* tone command */    27,					/* dial_time */    "=",				/* pause_chars */    15,					/* pause_time */    "\001\002",				/* wake_str */    0,					/* wake_rate */    "",					/* wake_prompt */    "",					/* dmode_str */    NULL,				/* dmode_prompt */    "%s",				/* dial_str */    0,					/* dial_rate */    0,					/* esc_time */    0,					/* esc_char */    "",					/* hup_str */    "",					/* hwfc_str */    "",					/* swfc_str */    "",					/* nofc_str */    "",					/* ec_on_str */    "",					/* ec_off_str */    "",					/* dc_on_str */    "",					/* dc_off_str */    "",					/* aa_on_str */    "",					/* aa_off_str */    "",					/* sb_on_str */    "",					/* sb_off_str */    0L,					/* max_speed */    0,					/* capas */    NULL				/* ok_fn */};staticMDMINF DF100 =		/* information for "DEC DF100-series" modem */			/*			 * The telephone "number" can include "P"s and/or "T"s			 * within it to indicate that subsequent digits are			 * to be dialed using pulse or tone dialing.  The			 * modem defaults to pulse dialing.  You may modify			 * the dial string below to explicitly default all			 * dialing to pulse or tone, but doing so prevents			 * the use of phone numbers that you may have stored			 * in the modem's memory.			 */    {    "Digital DF-100",    "",					/* pulse command */    "",					/* tone command */    30,					/* dial_time */    "=",				/* pause_chars */    15,					/* pause_time */    "\001",				/* wake_str */    0,					/* wake_rate */    "",					/* wake_prompt */    "",					/* dmode_str */    NULL,				/* dmode_prompt */    "%s#",				/* dial_str */    0,					/* dial_rate */    0,					/* esc_time */    0,					/* esc_char */    "",					/* hup_str */    "",					/* hwfc_str */    "",					/* swfc_str */    "",					/* nofc_str */    "",					/* ec_on_str */    "",					/* ec_off_str */    "",					/* dc_on_str */    "",					/* dc_off_str */    "",					/* aa_on_str */    "",					/* aa_off_str */    "",					/* sb_on_str */    "",					/* sb_off_str */    0L,					/* max_speed */    0,					/* capas */    NULL				/* ok_fn */};staticMDMINF DF200 =		/* information for "DEC DF200-series" modem */			/*			 * The telephone "number" can include "P"s and/or "T"s			 * within it to indicate that subsequent digits are			 * to be dialed using pulse or tone dialing.  The			 * modem defaults to pulse dialing.  You may modify			 * the dial string below to explicitly default all			 * dialing to pulse or tone, but doing so prevents			 * the use of phone numbers that you may have stored			 * in the modem's memory.			 */    {    "Digital DF-200",    "",			/* pulse command */    "",			/* tone command */    30,			/* dial_time */    "=W",		/* pause_chars */	/* =: second tone; W: 5 secs */    15,			/* pause_time */	/* worst case */    "\002",		/* wake_str */		/* allow stored number usage */    0,			/* wake_rate */    "",			/* wake_prompt */    "",			/* dmode_str */    NULL,		/* dmode_prompt */#ifdef COMMENT    "%s!",		/* dial_str */#else    "   d %s\015",#endif /* COMMENT */    0,					/* dial_rate */    0,					/* esc_time */    0,					/* esc_char */    "",					/* hup_str */    "",					/* hwfc_str */    "",					/* swfc_str */    "",					/* nofc_str */    "",					/* ec_on_str */    "",					/* ec_off_str */    "",					/* dc_on_str */    "",					/* dc_off_str */    "",					/* aa_on_str */    "",					/* aa_off_str */    "",					/* sb_on_str */    "",					/* sb_off_str */    0L,					/* max_speed */    0,					/* capas */    NULL				/* ok_fn */};staticMDMINF GDC =		/* information for "GeneralDataComm 212A/ED" modem */    {    "GeneralDataComm 212A/ED",    "",					/* pulse command */    "",					/* tone command */    32,					/* dial_time */    "%",				/* pause_chars */    3,					/* pause_time */    "\015\015",				/* wake_str */    500,				/* wake_rate */    "$",				/* wake_prompt */    "D\015",				/* dmode_str */    ":",				/* dmode_prompt */

⌨️ 快捷键说明

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