home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
STerm_src.lzh
/
io.h
< prev
next >
Wrap
Text File
|
1984-12-19
|
3KB
|
144 lines
/*
* io.h -- interface to improved I/O routines for Sterm.
*
* Includes defines for all files.
*
* Revised baud_table, baud_codes and baud_string to properly display
* baud rate at higher baud rates. 3/3/93 [EG]
*/
#include <termcap.h>
#ifdef _386
#include <scf.h>
struct scf_path_opts oldmod, newmod, oldterm, newterm;
struct scf_lu_opts oldvmod, newvmod;
#else /* _OSK */
#include <sgstat.h>
struct scf_opt oldmod, newmod, oldterm, newterm;
#endif
#define KBD_SIG 20
#define MB_SIZ 511
char modbuf[MB_SIZ + 1];
char *modscan, *modlim;
int mp;
int qty;
int sigsave, kbd_rdy, mod_rdy;
extern int cur_baud;
#ifdef _386
#define BDTB_SIZ 18
int baud_table[] = {
50,
75,
110,
135,
150,
300,
600,
1200,
1800,
2000,
2400,
3600,
4800,
7200,
9600,
19200,
31250,
38400
};
int baud_codes[] = {
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18};
char *baud_string[] = {
"50 baud",
"75 baud",
"110 baud",
"134.5 baud",
"150 baud",
"300 baud",
"600 baud",
"1200 baud",
"1800 baud",
"2000 baud",
"2400 baud",
"3600 baud",
"4800 baud",
"7200 baud",
"9600 baud",
"19.2 KBaud",
"31.25 KBaud (MIDI)",
"38.4 KBaud"
};
#else /* _OSK */
#define BDTB_SIZ 7 /* MAGIC - the size of the following tables */
int baud_table[] = {
300,
1200,
2400,
4800,
9600,
19200,
38400
};
int baud_codes[] =
{5, 7, 10, 12, 14, 15, 16};
char *baud_string[] = {
"300 baud",
"1200 baud",
"2400 baud",
"4800 baud",
"9600 baud",
"19.2 Kbaud",
"38.4 Kbaud"
};
#endif
char *parity_string[] = {
"None",
"Odd",
"Even"
};
/* Variables for termcap usage */
char *tgetstr(),
*tgoto();
char PC_, /* Padd Character */
*CL, /* clear the screen */
*CM, /* cursor motion */
*CE, /* clear to end-of-line */
*CD, /* clear to end-of-display */
*SO, /* highlight begin */
*SE, /* highlight end */
*HO, /* home cursor */
*BC, /* Backspace character ++SrT */
*UP, /* Up Cursor ++ SrT*/
*DN, /* Down Cursor */
/* *CR, /* Carriage return */
*AC; /* Line graphics string [EG] */
short ospeed, /* serial port speed */
lines, /* number of lines on screen */
columns; /* number of columns on screen */
int bsflag; /* ^H flag */
unsigned char glyph[8]; /* Line graphics characters [EG] */
char *getenv(),
*tcbuf,
*temp_buf;