|
|
1.1 root 1: /*
2: * The routines referenced in this file
3: * are defined in the assembly language source "ibmbios.m".
4: * Because they use IBM PC ROM BIOS interrupt 0x10 to control the screen,
5: * they will not work on some IBM-compatible (non-IBM) systems.
6: * They make no assumptions about screen type.
7: */
8: #include <stdio.h>
9: #include "ed.h"
10:
11: #if IBM
12:
13: #define NROW 24 /* Screen size. */
14: #define NCOL 80 /* Edit if you want to; also in ibmbios.m. */
15: #define BEL 0x07 /* BEL character. */
16:
17: extern int ttopen(); /* Forward references. */
18: extern int ttgetc();
19: extern int ttputc();
20: extern int ttflush();
21: extern int ttclose();
22: extern int ibmmove();
23: extern int ibmeeol();
24: extern int ibmeeop();
25: extern int ibmbeep();
26: extern int ibmstand(); /* toggle standout mode */
27:
28: /*
29: * Standard terminal interface dispatch table.
30: * Most of the fields point into "termio" code.
31: */
32: TERM term = {
33: NROW-1,
34: NCOL,
35: ttopen,
36: ttclose,
37: ttgetc,
38: ttputc,
39: ttflush,
40: ibmmove,
41: ibmeeol,
42: ibmeeop,
43: ibmbeep,
44: ibmstand
45: };
46:
47: /* Beep the terminal. */
48: ibmbeep()
49: {
50: ttputc(BEL);
51: ttflush();
52: }
53: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.