1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 #include <ctype.h>
25 #include <ws.h>
26 #include <ws_dcls.h>
27 #include <wsmincap.h>
28 #include <keydefs.h>
29 #include <emulator.h>
30
31 #if EM_DEBUG
32
33 extern char *print_mode_type[];
34 extern char *on_off_status[];
35 extern int em_print_mode;
36 extern int em_tab_size;
37 extern int local_edit;
38 extern int fg_data_only;
39 extern int bg_sender_in;
40 extern int bg_sender_out;
41 extern int bg_sender_buff[];
42 extern int dbgpkts;
43 extern int dbgrejs;
44 extern int dbgxchr;
45 extern char *buff;
46
47 db_process_options(option,terminate_flag)
48
49
50 int option;
51
52
53 int *terminate_flag;
54 {
55
56
57
58 switch(option) {
59
60
61
62 case F1:
63 freeze();
64 break;
65
66
67
68
69 case F2:
70 em_print_mode = (em_print_mode + 1) % 3;
71 printf ("$$ print mode = %s $$\n",
72 print_mode_type[em_print_mode]);
73 break;
74
75
76
77 case F3:
78 menu();
79 break;
80
81
82
83 case F4:
84 local_edit = !local_edit;
85 printf ("$$ local edit = %s $$\n", on_off_status[local_edit]);
86 break;
87
88
89
90
91 case F5:
92 fg_data_only = !fg_data_only;
93 printf ("$$ terminal data only = %s $$\n", on_off_status[fg_data_only]);
94 break;
95
96
97
98 case F6:
99 sender_query_status();
100 break;
101
102
103
104
105 case F7:
106 set_tab_size();
107 break;
108
109
110
111 case F8:
112 execute_dos_cmd();
113 break;
114
115
116
117 case F9:
118 puttdata(FG_BREAK,0,0);
119 break;
120
121
122
123 case F10:
124 *terminate_flag = FALSE;
125 break;
126
127
128
129 case ALT_F1:
130 dbgpkts = !dbgpkts;
131 printf ("$$ DBG Show Packets = %s $$\n", on_off_status[dbgpkts]);
132 break;
133
134
135
136 case ALT_F2:
137 dbgrejs = !dbgrejs;
138 printf ("$$ DBG Diagnose Rejects = %s $$\n", on_off_status[dbgrejs]);
139 break;
140
141
142
143 case ALT_F3:
144 dbgxchr = !dbgxchr;
145 printf ("$$ DBG Show Extraneous Receive Characters = %s $$\n", on_off_status[dbgxchr]);
146 break;
147 }
148 }
149
150 #else
151 db_process_options()
152 {}
153 #endif
154 ^Z