File: ckuus2.c

package info (click to toggle)
ckermit 193-3
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 6,180 kB
  • ctags: 8,803
  • sloc: ansic: 118,504; makefile: 2,474; sh: 52
file content (7301 lines) | stat: -rw-r--r-- 279,286 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
/*  C K U U S 2  --  User interface strings & help text module for C-Kermit  */
 
/*
  Authors:
    Frank da Cruz <fdc@columbia.edu>,
    Jeffrey Altman <jaltman@columbia.edu>,
    The Kermit Project
    Columbia University Academic Information Systems, New York City.

  Copyright (C) 1985, 1998, Trustees of Columbia University in the City of New
  York.  The C-Kermit software may not be, in whole or in part, licensed or
  sold for profit as a software product itself, nor may it be included in or
  distributed with commercial products or otherwise distributed by commercial
  concerns to their clients or customers without written permission of the
  Office of Kermit Development and Distribution, Columbia University.  This
  copyright notice must not be removed, altered, or obscured.
*/
 
/*
 This module separates long strings from the body of the other ckuus* modules.
*/

#include "ckcsym.h"
#include "ckcdeb.h"
#include "ckcnet.h"
#include "ckcasc.h"
#include "ckcker.h"
#include "ckuusr.h"
#include "ckcxla.h"
#ifdef OS2
#ifdef NT
#include <windows.h>
#else /* not NT */
#define INCL_KBD
#ifdef OS2MOUSE
#define INCL_MOU
#endif /* OS2MOUSE */
#define INCL_DOSMISC
#define INCL_DOSDEVICES
#include <os2.h>	/* This pulls in a whole load of stuff */
#undef COMMENT
#endif /* NT */
#include "ckocon.h"
#include "ckokvb.h"
#include "ckokey.h"
#endif /* OS2 */
 
extern xx_strp xxstring;
extern char *ccntab[];

#ifndef NOICP
#ifdef DCMDBUF
extern char *cmdbuf;
#else
extern char cmdbuf[];
#endif /* DCMDBUF */
#endif /* NOICP */

extern char *xarg0;
extern int nrmt, nprm, dfloc, local, parity, escape;
extern int turn, flow;
extern int binary, quiet, keep;
extern int success;
#ifdef OS2
extern int tt_rows[], tt_cols[];
#else /* OS2 */
extern int tt_rows, tt_cols;
#endif /* OS2 */
extern int cmd_rows, cmd_cols;

extern long speed;
extern char *dftty, *versio, *ckxsys;
extern struct keytab prmtab[];
extern struct keytab remcmd[];

#ifndef NOICP

/*  Interactive help strings  */
 
static char *tophlp[] = { 
"Trustees of Columbia University in the City of New York.\n",

#ifndef NOHELP
#ifdef OS2
"  Type INTRO   for a brief introduction to the Kermit Command screen.",
#else
"  Type INTRO   for a brief introduction to C-Kermit.",
#endif /* OS2 */
"  Type VERSION for version and copyright information.",
"  Type HELP    followed by a command name for help about a specific command.",
"  Type NEWS    for news about new features.",
"  Type BUG     to learn how to get technical support.",
"  Press ?      (question mark) at the prompt, or anywhere within a command,",
"               for a menu (context-sensitive help, menu on demand).",
#else
"Press ? for a list of commands; see documentation for detailed descriptions.",
#endif /* NOHELP */

#ifndef NOCMDL
" ",
"  Type HELP OPTIONS for help with command-line options.",
#endif /* NOCMDL */
" ",
#ifdef OS2
"Documentation: \"Kermit 95\" by Christine M. Gianone and Frank da Cruz,",
"Manning Publications, 1996.  Technical Reference: \"Using C-Kermit\" by",
"Frank da Cruz and Christine M. Gianone, 2nd Ed., Digital Press, 1997.",
"To order call +1 (212) 854-3703.",
#else
#ifdef MAC
"Documentation for Command Window: \"Using C-Kermit\" by Frank da Cruz and",
"Christine M. Gianone, Digital Press, 1997, ISBN: 1-55558-164-1.  To order,",
"call +1 212 854-3703 or +1 800 366-2665.",
#else
"DOCUMENTATION: \"Using C-Kermit\" by Frank da Cruz and Christine M. Gianone,",
"2nd Edition, Digital Press / Butterworth-Heinemann 1997, ISBN 1-55558-164-1.",
"To order: +1 212 854-3703 or +1 800 366-2665.  PLEASE PURCHASE THE MANUAL.",
"It shows you how to use C-Kermit and answers your questions; sales of this",
"book are the primary source of funding for C-Kermit development and support.",
"More info at the Kermit Project website, http://www.columbia.edu/kermit/.",
#endif /* MAC */
#endif /* NT */
#ifdef MAC
" ",
"Also see the Mac Kermit Doc and Bwr files on the Mac Kermit diskette.\n",
#else
#ifdef HPUX10
" ",
"See /usr/share/lib/kermit/*.* for additional information.", 
#endif /* HPUX10 */
#endif /* MAC */
""
};

#ifndef NOHELP 
char *newstxt[] = {
#ifdef OS2
" Welcome to Kermit 95.  For news about this release, please consult the",
" UPDATES.TXT file in the DOCS subdirectory of your Kermit 95 directory.",
#else
#ifdef COMMENT
" Welcome to C-Kermit 6.0.  This version of C-Kermit was released",
" concurrently with the second edition of the manual, \"Using C-Kermit\",",
" and it is completely described there, with supplementary material found",
" in system-specific publications, such as the Kermit 95 manual.  The",
" update files that accompanied edits 189, 190, and 191 are no longer needed.",
#else
" C-Kermit 6.1.193 Development.  This is a TEST version, not for production",
" use.  \
Major new features (which might not all be available on all platforms)",
" include file-transfer pipes and filters, file-transfer option switches,",
" new streaming file-transfer Kermit protocol option, modem and dialing",
" improvements, file-permission preservation in UNIX, improvements in CD and",
" other directory-related commands, Greek character sets, new script",
" programming features, functions, and variables.  These new features are",
" documented in the ckermit2.upd file, which is to be used as a supplement to",
" the manual, \"Using C-Kermit\", second edition (1997).",
#endif /* COMMENT */
#endif /* OS2 */
" ",
" If the release date shown by the VERSION command is long past, be sure to",
" check with the Kermit Project to see if there have been updates.",
""
};
#endif /* NOHELP */

#ifndef NOHELP
char *introtxt[] = {
#ifdef NT
"Welcome to K-95, Kermit communications software for:",
#else
#ifdef OS2
"Welcome to Kermit/2, Kermit communications software for:",
#else
#ifdef UNIX
#ifdef HPUX
"Welcome to HP-UX C-Kermit communications software for:",
#else
"Welcome to UNIX C-Kermit communications software for:",
#endif /* HPUX */
#else
#ifdef VMS
"Welcome to VMS C-Kermit communications software for:",
#else
#ifdef VOS
"Welcome to VOS C-Kermit communications software for:",
#else
#ifdef MAC
"Welcome to Mac Kermit communications software for:",
#else
"Welcome to C-Kermit communications software for:",
#endif /* MAC */
#endif /* VOS */
#endif /* VMS */
#endif /* UNIX */
#endif /* OS2 */
#endif /* NT */
" . Error-free and efficient file transfer",
#ifdef OS2
" . VT320/220/102/100/52, ANSI, Wyse, DG, Televideo, and other emulations",
#else
#ifdef MAC
" . VT220 terminal emulation",
#else
" . Terminal connection",
#endif /* MAC */
#endif /* OS2 */
#ifndef NOSPL
" . Script programming",
#endif /* NOSPL */
#ifndef NOICS
" . International character set conversion",
#endif /* NOICS */
#ifndef NOLOCAL
"\nSupporting:",
" . Serial connections, direct or dialed.",
#ifndef NODIAL
" . Automatic modem dialing",
#endif /* NODIAL */
#ifdef TCPSOCKET
" . TCP/IP network connections",
#endif /* TCPSOCKET */
#ifdef ANYX25
" . X.25 network connections",
#endif /* ANYX25 */
#ifdef OS2
#ifdef DECNET
" . DECnet/PATHWORKS LAT Ethernet connections",
#endif /* DECNET */
#ifdef SUPERLAT
" . Meridian Technologies' SuperLAT connections",
#endif /* SUPERLAT */
#ifdef NPIPE
" . Named-pipe connections",
#endif /* NPIPE */
#ifdef CK_NETBIOS
" . NETBIOS connections",
#endif /* CK_NETBIOS */
#endif /* OS2 */
#endif /* NOLOCAL */

"\nWhile typing commands, you may use the following special characters:",
" . DEL, RUBOUT, BACKSPACE, CTRL-H: Delete the most recent character typed.",
" . CTRL-W:  Delete the most recent word typed.",
" . CTRL-U:  Delete the current line.",
" . CTRL-R:  Redisplay the current line.",
#ifdef CK_RECALL
#ifdef OS2
" . \030 or CTRL-B: Command recall - go backwards in command recall buffer.",
" . \031 or CTRL-N: Command recall - go forward in command recall buffer.",
#else
" . CTRL-P:  Command recall - go backwards in command recall buffer.",
" . CTRL-B:  Command recall - same as Ctrl-P.",
" . CTRL-N:  Command recall - go forward in command recall buffer.",
#endif /* OS2 */
#endif /* CK_RECALL */
" . ?        (question mark) Display a menu for the current command field.",
" . ESC      (or TAB) Attempt to complete the current field.",
" . \\        (backslash) include the following character literally",
#ifndef NOSPL
"            or introduce a backslash code, variable, or function.",
#else
"            or introduce a numeric backslash code.",
#endif /* NOSPL */
"  Command words other than filenames can be abbreviated in most contexts.",

#ifdef OS2
#ifdef NT
"\nBasic K-95 commands:",
"  EXIT          exit from K-95",
#else /* NT */
"\nBasic Kermit/2 commands:",
"  EXIT          exit from Kermit/2",
#endif /* NT */
#else /* OS2 */
"\nBasic C-Kermit commands:",
"  EXIT          exit from C-Kermit",
#endif /* NT */
"  HELP          request general help",
"  HELP command  request help about the given command",
"  TAKE          execute commands from a file",

"\nCommands for file transfer:",
"  SEND          send files",
"  RECEIVE       receive files",
"  GET           get files from a Kermit server",
#ifdef CK_RESEND
"  RESEND        recover an interrupted send",
"  REGET         recover an interrupted get from a server",
#endif /* CK_RESEND */
#ifndef NOSERVER
"  SERVER        be a Kermit server",
#endif /* NOSERVER */

"\nImportant settings:",
"  SET PARITY    communications parity",
#ifdef CK_RTSCTS
"  SET FLOW      communications flow control, such as RTS/CTS",
#else
"  SET FLOW      communications flow control, such as XON/XOFF",
#endif /* CK_RTSCTS */
"  SET FILE      file settings, for example TYPE TEXT or TYPE BINARY",

#ifndef NOLOCAL
"\nTo make a direct serial connection:",
#ifdef OS2
#ifdef NT
#ifdef CK_TAPI
"  SET TAPI LINE select TAPI communication device",
#endif /* CK_TAPI */
"  SET PORT      select serial communication device",
#else
"  SET PORT      select serial communication port or server",
#endif /* NT */
#else
"  SET LINE      select serial communication device",
#endif /* OS2 */
"  SET SPEED     select communication speed",
"  CONNECT       begin terminal connection",

#ifndef NODIAL
"\nTo dial out with a modem:",
"  SET DIAL DIRECTORY     specify dialing directory file (optional)",
"  SET DIAL COUNTRY-CODE  country you are dialing from (*)",
"  SET DIAL AREA-CODE     area-code you are dialing from (*)",
"  LOOKUP                 lookup entries in your dialing directory (*)",
"  SET MODEM TYPE         select modem type",
#ifdef OS2
#ifdef NT
#ifdef CK_TAPI
"  SET TAPI LINE select TAPI communication device",
#endif /* CK_TAPI */
"  SET PORT      select serial communication device",
#else
"  SET PORT      select serial communication port or server",
#endif /* NT */
#else
"  SET LINE      select serial communication device",
#endif /* OS2 */
"  SET SPEED     select communication speed",
"  DIAL          dial the phone number",
"  CONNECT       begin terminal connection",
#ifdef OS2
"Further info:   HELP DIAL, HELP SET MODEM, HELP SET PORT, HELP SET DIAL",
#else
"Further info:   HELP DIAL, HELP SET MODEM, HELP SET LINE, HELP SET DIAL",
#endif /* OS2 */
"(*) (For use with optional dialing directory)",
#endif /* NODIAL */

#ifdef NETCONN
"\nTo make a network connection:",
"  SET NETWORK DIRECTORY  specify a network services direction (optional)",
"  LOOKUP                 lookup entries in your network directory",
"  SET NETWORK TYPE       select network type",
"  SET HOST               select network host",
"  CONNECT                begin terminal connection",
#ifdef TNCODE
"  TELNET        select a TCP/IP host and CONNECT to it",
#endif /* TNCODE */
#endif /* NETCONN */

#ifdef NT
"\nTo return from the terminal window to the K-95> prompt:",
#else
#ifdef OS2
"\nTo return from the terminal window to the K/2> prompt:",
#else
"\nTo return from a terminal connection to the C-Kermit prompt:",
#endif /* OS2 */
#endif /* NT */
#ifdef OS2
"  \
Press the key or key-combination shown after \"Prompt:\" in the status line",
"  (such as Alt-x) or type your escape character followed by the letter C.",
#else
"  Type your escape character followed by the letter C.",
#endif /* OS2 */
"\nTo display your escape character:",
"  SHOW ESCAPE",
"\nTo display other settings:",
"  SHOW COMMUNICATIONS, SHOW TERMINAL, SHOW FILE, SHOW PROTOCOL, etc.",
#else  /* !NOLOCAL */
"\nTo display settings:",
"  SHOW COMMUNICATIONS, SHOW TERMINAL, SHOW FILE, SHOW PROTOCOL, etc.",
#endif /* NOLOCAL */
"\nTo speed up file transfers:",
"  SET RECEIVE PACKET-LENGTH  (use bigger packets)",
"  SET WINDOW                 (use sliding windows)",
"  SET PREFIXING              (reduce prefixing overhead)",
"  FAST                       (combination of the three above)",

"\nFor further information about a particular command, type HELP xxx,",
"where xxx is the name of the command.  For documentation, news of new",
"releases, and information about other Kermit software, contact:\n",
"  The Kermit Project         E-mail: kermit-orders@columbia.edu",
"  Columbia University        Web:    http://www.columbia.edu/kermit/",
"  612 West 115th Street      Voice:  +1 (212) 854-3703",
"  New York NY  10025-7799    Fax:    +1 (212) 663-8202",
"  USA",
""
};

#ifndef NOSPL
static char *hxxinp[] = {
"Syntax:  INPUT { number-of-seconds, time-of-day } [ text ]",
"Example: INPUT 5 Login:  or  INPUT 23:59:59 RING",
" ",
"Waits up to the given number of seconds, or until the given time of day",
"for the given text to arrive on the connection.  If no text is given, INPUT",
"waits for any character.  For use in script programs with IF FAILURE and",
"IF SUCCESS.  Also see MINPUT, REINPUT, SET INPUT.  See PAUSE for details on",
"time-of-day format.",
""};

static char *hxxout[] = {
"Syntax: OUTPUT text\n",
"Send the text out the communications connection, as if you had typed it",
"during CONNECT mode.  The text may contain backslash codes, variables,",
"etc, plus the following special codes:",
" \\N - Send a NUL (ASCII 0) character (you can't use \\0 for this).",
" \\B - Send a BREAK signal.",
" \\L - Send a Long BREAK signal.",
"Also see SET OUTPUT.",
"" };

#ifndef NOLOCAL
static char *hxyesc[] = {
#ifdef OS2
"Syntax: SET ESCAPE number",
" Decimal ASCII value for escape character during CONNECT, normally 29",
" (Control-]).  Type the escape character followed by C to get back to the",
" C-Kermit prompt or followed by ? to see other options, or use the \\Kexit",
" keyboard verb, normally assigned to Alt-x.",
#else
#ifdef NEXT
"Syntax: SET ESCAPE number",
" Decimal ASCII value for escape character during CONNECT, normally 29",
" (Control-]).  Type the escape character followed by C to get back to the",
" C-Kermit prompt or followed by ? to see other options.",
#else
"Syntax: SET ESCAPE number",
" Decimal ASCII value for escape character during CONNECT, normally 28",
" (Control-\\).  Type the escape character followed by C to get back to the",
" C-Kermit prompt or followed by ? to see other options.",
#endif /* NEXT */
#endif /* OS2 */
" ",
"You may also enter the escape character as ^X (circumflex followed by a",
"letter or one of: @, ^, _, [, \\, or ], to indicate a control character;",
"for example, SET ESC ^_ sets your escape character to Ctrl-Underscore.",
"" };
#endif /* NOLOCAL */

static char *hxyout[] = {
"Syntax: SET OUTPUT PACING <number>\n",
"How many milliseconds to pause after sending each OUTPUT character,",
"normally 0.\n",
"Syntax: SET OUTPUT SPECIAL-ESCAPES { ON, OFF }\n",
"Whether to process the special OUTPUT-only escapes \\B, \\L, and \\N.",
"Normally ON (they are processed).",
"" };

static char *hxyinp[] = {
"Syntax: SET INPUT parameter value\n",
"The SET INPUT command controls the behavior of the INPUT command:\n",
#ifdef CK_AUTODL
"SET INPUT AUTODOWNLOAD { ON, OFF }",
"Controls whether autodownloads are allowed during INPUT command execution.\n",
#endif /* CK_AUTODL */
"SET INPUT BUFFER-LENGTH number-of-bytes",
"Removes the old INPUT buffer and creates a new one with the given length.\n",
"SET INPUT CANCELLATION { ON, OFF }",
"Whether an INPUT in progress can be can interrupted from the keyboard.\n",
"SET INPUT CASE { IGNORE, OBSERVE }",
"Tells whether alphabetic case is to be significant in string comparisons.",
"This setting is local to the current macro or command file, and is inherited",
"by subordinate macros and take files.\n",
"SET INPUT ECHO { ON, OFF }",
"Tells whether to display arriving characters read by INPUT on the screen.\n",
"SET INPUT SILENCE <number>",
"The maximum number to seconds of silence (no input at all) before the INPUT",
"command times out, 0 for no maximum.\n",
"SET INPUT TIMEOUT-ACTION { PROCEED, QUIT }",
"Tells whether to proceed or quit from a script program if an INPUT command",
"fails.  PROCEED (default) allows use of IF SUCCESS and IF FAILURE commands.",
"This setting is local to the current macro or command file, and is inherited",
"by subordinate macros and take files.",
"" };

static char *hxyfunc[] = {
"SET FUNCTION DIAGNOSTICS { ON, OFF }",
"  Whether to issue diagnostic messages for illegal function calls and",
"  references to nonexistent built-in variables.  ON by default.",
" ",
"SET FUNCTION ERROR { ON, OFF }",
"  Whether an illegal function call or reference to a nonexistent built-in",
"  variable should cause a command to fail.  OFF by default.",
"" };
#endif /* NOSPL */

#ifdef CK_XYZ
static char *hxyxyz[] = {
#ifdef XYZ_INTERNAL

/* This is for built-in protocols */

"Syntax: SET PROTOCOL { KERMIT, XMODEM, YMODEM, ZMODEM } [ s1 s2 [ s3 ] ]",
" ",
"Selects protocol to use for transferring files.  String s1 is a command to",
"send to the remote host prior to SENDing files with this protocol in binary",
"mode; string s2 is the same thing but for text mode.  Use \"%\" in any of",
"these strings to represent the filename(s).  If the protocol is KERMIT, you",
"may also specify a string s3, the command to start a Kermit server on the",
"remote host when you give a GET, REGET, REMOTE, or other client command.",
"Use { braces } if any command contains spaces.  Examples:",
" ",
"  set proto xmodem {rx %s} {rx -a %s}",
"  set proto kermit {kermit -YQir} {kermit -YQTr} {kermit -YQx}",

#else /* This is for when non-Kermit protocols are external */

"Syntax: \
SET PROTOCOL { KERMIT, XMODEM, YMODEM, ZMODEM } [ s1 s2 s3 s4 s5 s6 ]",
" ",
"Selects protocol to use for transferring files.  s1 and s2 are commands to",
"output prior to SENDing with this protocol, to automatically start the",
"RECEIVE process on the other end in binary or text mode, respectively.",
"If the protocol is KERMIT, s3 is the command to start a Kermit server on the",
"remote computer, and there are no s4-s6 commands.  Otherwise, s3 and s4 are",
"commands used on this computer for sending files with this protocol in",
"binary or text mode, respectively; s5 and s6 are the commands for receiving",
"files with this protocol.  Use \"%s\" in any of these strings to represent",
"the filename(s).  Use { braces } if any command contains spaces.  Examples:",
" ",
"  set proto kermit {kermit -YQir} {kermit -YQTr} {kermit -YQx}",
"  set proto ymodem rb {rb -a} {sb %s} {sb -a %s} rb rb",
" ",
"External protocols require REDIRECT and external file transfer programs that",
"use redirectable standard input/output.",
#endif /* XYZ_INTERNAL */
""};
#endif /* CK_XYZ */

static char *hmxxbye = "Syntax: BYE\n\
Shut down and log out a remote Kermit server";
 
static char *hmxxdel[] = {
"Syntax: DELETE [ { /QUIET, /VERBOSE } ] filespec",
"Deletes a file or files on the computer where C-Kermit is running.",
"The filespec may denote a single file or it can include wildcard characters",
"to match multiple files.  If the /VERBOSE switch is included, each filename",
"is listed as it is processed, with a status indication.  If the /QUIET \
switch",
"is included, deletion proceeds silently.  RM is a synonym for DELETE.",
""};

#ifdef CK_KERBEROS
static char *hmxxauth[] = {
"Syntax:",
"AUTHENTICATE { KERBEROS4, KERBEROS5 [ switches ] } <action> [ switches ]",
" ",
"Obtains or destroys Kerberos tickets and lists information about them.",
"Actions are INITIALIZE, DESTROY, and LIST-CREDENTIALS.  KERBEROS4 can be",
"abbreviated K4 or KRB4; KERBEROS5 can be abbreviated K5 or KRB5.  Use ? to",
"see which keywords, switches, or other quantities are valid at each point",
"in the command.  Consult the kerberos.txt file for complete information.",
""
};
#endif /* CK_KERBEROS */

static char *hmxxclo[] = {
"Syntax:  CLOSE name",
"Example: CLOSE PACKET\n",
"Close one of the following logs or files:",
#ifndef NOLOCAL
"  SESSION",
#endif /* NOLOCAL */
#ifdef TLOG
"  TRANSACTION",
#endif /* TLOG */
"  PACKET",
#ifdef DEBUG
"  DEBUGGING",
#endif /* DEBUG */
#ifndef NOSPL
"  READ",
"  WRITE",
#endif /* NOSPL */
"Type HELP LOG and HELP OPEN for further info.", "" };
 
#ifdef CK_MINPUT
static char *hmxxminp[] = {
"Syntax:  MINPUT n [ string1 [ string2 [ ... ] ] ]",
"Example: MINPUT 5 Login: {Username: } {NO CARRIER} BUSY RING\n",
"For use in script programs.  Waits up to n seconds for any one of the",
"strings to arrive on the communication device.  If no strings are given, the",
"command waits for any character at all to arrive.  Strings are separated by",
"spaces; use { braces } for grouping.  If any of the strings is encountered",
"within the timeout interval, the command succeeds and the \\v(minput)",
"variable is set to the number of the string that was matched: 1, 2, 3, etc.",
"If none of the strings arrives, the command times out, fails, and",
"\\v(minput) is set to 0.\n",
"Also see: INPUT, REINPUT, SET INPUT.",
"" };
#endif /* CK_MINPUT */

#ifndef NOLOCAL
static char *hmxxcon[] = {
"Syntax: CONNECT (or C, or CQ) [ switches ]\n",
"Connect to a remote computer via the serial communications device given in",
#ifdef OS2
"the most recent SET PORT command, or to the network host named in the most",
#else
"the most recent SET LINE command, or to the network host named in the most",
#endif /* OS2 */
"recent SET HOST command.  Type the escape character followed by C to get",
"back to the C-Kermit prompt, or followed by ? for a list of CONNECT-mode",
#ifdef OS2
"escape commands.  You can also assign the \\Kexit verb to the key or",
"key-combination of your choice; by default it is assigned to Alt-x.",
#else
"escape commands.",
" ",
"Include the /QUIETLY switch to suppress the informational message that",
"tells you how to escape back, etc.  CQ is a synonym for CONNECT /QUIETLY.",
#endif /* OS2 */
" ",
"Other switches include:",
#ifdef CK_TRIGGER
" ",
"/TRIGGER:string",
"  One or more strings to look for that will cause automatic return to",
"  command mode.  To specify one string, just put it right after the",
"  colon, e.g. \"/TRIGGER:Goodbye\".  If the string contains any spaces, you",
"  must enclose it in braces, e.g. \"/TRIGGER:{READY TO SEND...}\".  To",
"  specify more than one trigger, use the following format:",
" ",
"    /TRIGGER:{{string1}{string2}...{stringn}}",
" ",
"  Upon return from CONNECT mode, the variable \\v(trigger) is set to the",
"  trigger string, if any, that was actually encountered.  This value, like",
"  all other CONNECT switches applies only to the CONNECT command with which",
"  it is given, and overrides (temporarily) any global SET TERMINAL TRIGGER",
"  string that might be in effect.",
#endif /* CK_TRIGGER */
#ifdef OS2
" ",
"/IDLE-LIMIT:number",
"  The number of seconds of idle time, after which Kermit returns",
"  automatically to command mode; default 0 (no limit).",
" ",
"/IDLE-INTERVAL:number",
"  The number of seconds of idle time, after which Kermit automatically",
"  transmits the idle string.",
" ",
"/IDLE-STRING:string",
"  The string to transmit whenever the idle interval has passed.",
" ",
"/TIME-LIMIT:number",
"  The maximum number of seconds for which the CONNECT session may last.",
"  The default is 0 (no limit).  If a nonzero number is given, Kermit returns",
"  automatically to command mode after this many seconds.",
#endif /* OS2 */
"" };
#endif /* NOLOCAL */
 
static char *hmxxmget[] = {
"Syntax: MGET [ switches... ] remote-filespec [ remote-filespec ... ]",
" ",
"Just like GET (q.v.) except allows a list of remote file specifications,",
"and does not allow as-names.",
""
};

static char *hmxxget[] = {
"Syntax: GET [ switches... ] remote-filespec [ as-name ]",
" ",
"Tells the other Kermit, which must be in (or support autoswitching into)",
"server mode, to send the named file or files.  If the remote-filespec or",
"the as-name contain spaces, they must be enclosed in braces.  Optional",
"switches include:",
" ",
"/AS-NAME:text",
"  Specifies \"text\" as the name to store the incoming file under.",
"  You can also specify the as-name as the second filename on the",
"  GET command line.",
" ",
"/FILENAMES:{CONVERTED,LITERAL}",
"  Overrides the global SET FILE NAMES setting for this transfer only.",
" ",
"/PATHNAMES:{OFF,ABSOLUTE,RELATIVE}",
"  Overrides the global SET RECEIVE PATHNAMES setting for this transfer.",
" ",
"/BINARY",
"  Performs this transfer in binary mode without affecting the global",
"  transfer mode.",
" ",
"/COMMAND",
"  Receives the file into the standard input of a command, rather than saving",
"  it on  disk.  The /AS-NAME or the second \"filename\" on the GET command",
"  line is interpreted as the name of a command.",
" ",
"/FILTER:command",
"  Causes the incoming file to passed through the given command (standard",
"  input/output filter) before being written to disk.",
" ",
"/DELETE",
"  Asks the other Kermit to delete the file (or each file in the group)",
"  after it has been transferred successfully.",
" ",
#ifdef VMS
"/IMAGE",
"  Transfer in image mode.",
" ",
#endif /* VMS */
#ifdef CK_LABELED
"/LABELED",
"  VMS and OS/2 only: Specifies labeled transfer mode.",
" ",
#endif /* CK_LABELED */


"/QUIET",
"  When sending in local mode, this suppresses the file-transfer display.",
" ",
"/RECOVER",
"  Used to recover from a previously interrupted transfer; GET /RECOVER",
"  is equivalent REGET.  Works only in binary mode.",
" ",
"/RECURSIVE",
"  Tells the server to descend through the directory tree when locating",
"  the files to be sent.",
" ",
"/TEXT",
"  Performs this transfer in text mode without affecting the global",
"  transfer mode.",
" ",
"Also see HELP MGET, HELP SEND, HELP RECIEVE, HELP SERVER, HELP REMOTE.",
""};

static char *hmxxlg[] = { "Syntax: LOG (or L) name [ { NEW, APPEND } ]",
"Record information in a log file:\n",
#ifdef DEBUG
"DEBUGGING     Debugging information, to help track down bugs in the C-Kermit",
"              program (default log name is debug.log).\n",
#endif /* DEBUG */
"PACKETS       Kermit packets, to help with protocol problems (packet.log)",
#ifndef NOLOCAL
"SESSION       Terminal session, during CONNECT command (session.log)",
#endif /* NOLOCAL */
#ifdef TLOG
"TRANSACTIONS  Names and statistics about files transferred (transact.log)\n",
#endif /* TLOG */
"If you include the APPEND keyword after the filename, the existing log file,",
"if any, is appended to; otherwise a new file is created.",
"Use CLOSE to stop logging.",
"" };
 
#ifndef NOSCRIPT
static char *hmxxlogi[] = { "\
Syntax: SCRIPT text\n",
"A limited and cryptic \"login assistant\", carried over from old C-Kermit",
"releases for comptability, but not recommended for use.  Instead, please",
"use the full script programming language described in chapters 11-13 of",
"\"Using C-Kermit\".\n",
"Login to a remote system using the text provided.  The login script",
"is intended to operate similarly to UNIX uucp \"L.sys\" entries.",
"A login script is a sequence of the form:\n",
"  expect send [expect send] . . .\n",
"where 'expect' is a prompt or message to be issued by the remote site, and",
"'send' is the names, numbers, etc, to return.  The send may also be the",
"keyword EOT, to send control-d, or BREAK (or \\\\b), to send a break signal.",
"Letters in send may be prefixed by ~ to send special characters.  These are:",
"~b backspace, ~s space, ~q '?', ~n linefeed, ~r return, ~c don\'t",
"append a return, and ~o[o[o]] for octal of a character.  As with some",
"uucp systems, sent strings are followed by ~r unless they end with ~c.\n",
"Only the last 7 characters in each expect are matched.  A null expect,",
"e.g. ~0 or two adjacent dashes, causes a short delay.  If you expect",
"that a sequence might not arrive, as with uucp, conditional sequences",
"may be expressed in the form:\n",
"  -send-expect[-send-expect[...]]\n",
"where dashed sequences are followed as long as previous expects fail.",
"" };
#endif /* NOSCRIPT */
 
static char * hmxxsen[] = {
"Syntax: SEND (or S) [ switches...] [ filespec [ as-name ] ]",
" ",
"Sends the file or files specified by filespec.  If the filespec is omitted,",
"the SEND-LIST is used (HELP ADD for more info).  The filespec may contain",
"wildcard characters '*' or '?'.  An 'as-name' may be given to specify the",
"name(s) the files(s) are sent under; if the as-name is omitted, each file is",
"sent under its own name.  Also see ADD.  Optional switches include:",
" ",
"/AS-NAME:<text>",
"  Specifies <text> as the name to send the file under instead of its real",
"  name.  This is equivalent to giving an as-name after the filespec.",
" ",
"/BINARY",
"  Performs this transfer in binary mode without affecting the global",
"  transfer mode.",
" ",
"/TEXT",
"  Performs this transfer in text mode without affecting the global",
"  transfer mode.",
" ",
#ifdef VMS
"/IMAGE",
"  Performs this transfer in image mode without affecting the global",
"  transfer mode.",
" ",
#endif /* VMS */
#ifdef CK_LABELED
"/LABELED",
"  Performs this transfer in labeled mode without affecting the global",
"  transfer mode.",
" ",
#endif /* CK_LABELED */
"/COMMAND",
"  Sends the output from a command, rather than the contents of a file.",
"  The first \"filename\" on the SEND command line is interpreted as the name",
"  of a command; the second (if any) is the as-name.",
" ",
"/FILENAMES:{CONVERTED,LITERAL}",
"  Overrides the global SET FILE NAMES setting for this transfer only.",
" ",
"/PATHNAMES:{OFF,ABSOLUTE,RELATIVE}",
"  Overrides the global SET SEND PATHNAMES setting for this transfer.",
" ",
"/FILTER:command",
"  Specifies a command \
(standard input/output filter) to pass the file through",
"  before sending it.",
" ",
"/DELETE",
"  Deletes the file (or each file in the group) after it has been sent",
"  successfully (applies only to real files).",
" ",
"/QUIET",
"  When sending in local mode, this suppresses the file-transfer display.",
" ",
"/RECOVER",
"  Used to recover from a previously interrupted transfer; SEND /RECOVER",
"  is equivalent RESEND (use in binary mode only).",
" ",
"/RECURSIVE",
"  Tells C-Kermit to look not only in the given or current directory for",
"  files that match the filespec, but also in all its subdirectories, and",
"  all their subdirectories, etc.",
" ",
"/RENAME-TO:name",
"  Tells C-Kermit to rename each source file that is sent successfully to",
"  the given name (usually you should include \\v(filename) in the new name,",
"  which is replaced by the original filename.",
" ",
"/MOVE-TO:directory",
"  Tells C-Kermit to move each source file that is sent successfully to",
"  the given directory.",
" ",
"/STARTING:number",
"  Starts sending the file from the given byte position.",
"  SEND /STARTING:n filename is equivalent to PSEND filename n.",
" ",
"/SUBJECT:text",
"  Specifies the subject of an email message, to be used with /MAIL.  If the",
"  text contains spaces, it must be enclosed in braces.",
" ",
"/MAIL:address",
"  Sends the file as e-mail to the given address; use with /SUBJECT:.",
" ",
"/PRINT:options",
"  Sends the file to be printed, with optional options for the printer.",
" ",
#ifdef CK_XYZ
"/PROTOCOL:name",
"  Uses the given protocol to send the file (Kermit, Zmodem, etc) for this",
"  transfer without changing global protocol.",
" ",
#endif /* CK_XYZ */
"/AFTER:date-time",
"  Specifies that only those files modified after the given date-time are",
"  to be sent.",
" ",
"/BEFORE:date-time",
"  Specifies that only those files modified before the given date-time",
"  are to be sent.",
" ",
"/NOT-AFTER:date-time",
"  Specifies that only those files modified at or before the given date-time",
"  are to be sent.",
" ",
"/NOT-BEFORE:date-time",
"  Specifies that only those files modified at or after the given date-time",
"  are to be sent.",
" ",
"/LARGER-THAN:number",
"  Specifies that only those files longer than the given number of bytes are",
"  to be sent.",
" ",
"/SMALLER-THAN:number",
"  Specifies that only those files smaller than the given number of bytes are",
"  to be sent.",
" ",
"/EXCEPT:pattern",
"  Specifies that any files whose names match the pattern, which can be a",
"  regular filename, or may contain \"*\" and/or \"?\" metacharacters,",
"  are not to be sent.  To specify multiple patterns (up to 8), use outer",
"  braces around the group, and inner braces around each pattern:",
" ",
"    /EXCEPT:{{pattern1}{pattern2}...}",
" ",
"/LIST:filename",
"  Specifies the name of a file that contains the list of names of files",
"  that are to be sent.  The filenames should be listed one name per line",
"  in this file (but a name can contain wildcards).",
" ",
"Also see HELP RECEIVE, HELP GET, HELP SERVER, HELP REMOTE.",
""}; 

static char *hmxxrc[] = {
"Syntax: RECEIVE (or R) [ switches... ] [ as-name ]\n",
"Wait for a file to arrive from the other Kermit, which must be given a",
"SEND command.  If the optional as-name is given, the incoming file or files",
"are stored under that name, otherwise it will be stored under",
#ifndef CK_TMPDIR
"the name it arrives with.",
#else
#ifdef OS2
"the name it arrives with.  If the filespec denotes a disk and/or directory,",
"the incoming file or files will be stored there.",
#else
"the name it arrives with.  If the filespec denotes a directory, the",
"incoming file or files will be placed in that directory.",
#endif /* OS2 */
#endif /* CK_TMPDIR */
"Optional switches include:",
" ",
"/AS-NAME:text",
"  Specifies \"text\" as the name to store the incoming file under.",
"  You can also specify the as-name as a filename on the command line.",
" ",
"/BINARY",
"  Skips text-mode conversions unless the incoming file arrives with binary",
"  attribute",
" ",
"/FILENAMES:{CONVERTED,LITERAL}",
"  Overrides the global SET FILE NAMES setting for this transfer only.",
" ",
"/PATHNAMES:{OFF,ABSOLUTE,RELATIVE}",
"  Overrides the global SET RECEIVE PATHNAMES setting for this transfer.",
" ",
"/COMMAND",
"  Receives the file into the standard input of a command, rather than saving",
"  it on disk.  The /AS-NAME or the \"filename\" on the RECEIVE command line",
"  is interpreted as the name of a command.",
" ",
"/FILTER:command",
"  Causes the incoming file to passed through the given command (standard",
"  input/output filter) before being written to disk.",
" ",
#ifdef VMS
"/IMAGE",
"  Receives the file in image mode.",
" ",
#endif /* VMS */
#ifdef CK_LABELED
"/LABELED",
"  Specifies labeled transfer mode.",
" ",
#endif /* CK_LABELED */
"/QUIET",
"  When sending in local mode, this suppresses the file-transfer display.",
" ",
"/TEXT",
"  Forces text-mode conversions unless the incoming file has the binary",
"  attribute",
" ",
"Also see HELP SEND, HELP GET, HELP SERVER, HELP REMOTE.",
"" };
 
#ifndef NORESEND
static char *hmxxrsen = "\
Syntax: RESEND filespec [name]\n\n\
Resend the file or files, whose previous transfer was interrupted.\n\
Picks up from where previous transfer left off, IF the receiver was told\n\
to SET FILE INCOMPLETE KEEP.  Only works for binary-mode transfers.\n\
Requires the other Kermit to have RESEND capability.";

static char *hmxxrget = "\
Syntax: REGET filespec\n\n\
Ask a server to RESEND a file to C-Kermit.";

static char *hmxxpsen = "\
Syntax: PSEND filespec position [name]\n\n\
Just like SEND, except sends the file starting at the given byte position.";
#endif /* NORESEND */

#ifndef NOMSEND
static char *hmxxmse[] = {
"Syntax: MSEND [ switches... ] filespec [ filespec [ ... ] ]",
" ",
"Sends the files specified by the filespecs.  One or more filespecs may be",
"listed, separated by spaces.  Any or all filespecs may contain wildcards",
"and they may be in different directories.  Alternate names cannot be given.",
"Switches include /BINARY /DELETE /MAIL /PROTOCOL /QUIET /RECOVER /TEXT;",
"see HELP SEND for descriptions.",
"",
};
#endif /* NOMSEND */

static char *hmxxadd[] = {
#ifndef NOMSEND
"ADD SEND-LIST filespec [ <mode> [ <as-name> ] ]",
"  Adds the specified file or files to the current SEND list.  Use SHOW",
"  SEND-LIST and CLEAR SEND-LIST to display and clear the list; use SEND",
"  by itself to send the files from it.",
" ",
#endif /* NOMSEND */
#ifdef PATTERNS
"ADD BINARY-PATTERNS [ <pattern> [ <pattern> ... ] ]",
"  Adds the pattern(s), if any, to the SET FILE BINARY-PATTERNS list.",
"  Use SHOW PATTERNS to see the list.  See HELP SET FILE for further info.",
" ",
"ADD TEXT-PATTERNS [ <pattern> [ <pattern> ... ] ]",
"  Adds the pattern(s), if any, to the SET FILE TEXT-PATTERNS list.",
#endif /* PATTERNS */
""};

static char *hmxxremv[] = {
#ifdef PATTERNS
"REMOVE BINARY-PATTERNS [ <pattern> [ <pattern> ... ] ]",
"  Removes the pattern(s), if any, from the SET FILE BINARY-PATTERNS list",
"  Use SHOW PATTERNS to see the list.  See HELP SET FILE for further info.",
" ",
"ADD TEXT-PATTERNS [ <pattern> [ <pattern> ... ] ]",
"  Removes the given patterns from the SET FILE BINARY-PATTERNS list.",
#endif /* PATTERNS */
""};

#ifndef NOSERVER
static char *hmxxser = "Syntax: SERVER\n\n\
Enter server mode on the currently selected line.  All further commands\n\
will be taken in packet form from the other Kermit program.  Use FINISH\n\
or BYE to get C-Kermit out of server mode.";
#endif /* NOSERVER */
 
static char *hmhset[] = { "\
The SET command is used to establish various communication or file",
"parameters.  The SHOW command can be used to display the values of",
"SET parameters.  Help is available for each individual parameter;",
"type HELP SET ? to see what's available.",
"" };
 
#ifndef NOSETKEY
static char *hmhskey[] = {
"Syntax: SET KEY k text",
"Or:     SET KEY CLEAR\n",
"Configure the key whose \"scan code\" is k to send the given text when",
"pressed during CONNECT mode.  SET KEY CLEAR restores all the default",
"key mappings.  If there is no text, the default key binding is restored for",
#ifndef NOCSETS
"the key k.  SET KEY mappings take place before terminal character-set",
"translation.",
#else
"the key k.",
#endif /* NOCSETS */
#ifdef OS2
"\nThe text may contain \"\\Kverbs\" to denote actions, to stand for DEC",
"keypad, function, or editing keys, etc.  For a list of available keyboard",
"verbs, type SHOW KVERBS.",
#endif /* OS2 */
"\nTo find out the scan code and mapping for a particular key, use the",
"SHOW KEY command.",
""};
#endif /* NOSETKEY */

static char *hmxychkt[] = { "Syntax: SET BLOCK-CHECK type\n",
"Type of packet block check to be used for error detection, 1, 2, 3, or",
"BLANK-FREE-2.  Type 1 is standard, and catches most errors.  Types 2 and 3",
"specify more rigorous checking at the cost of higher overhead.  The",
"BLANK-FREE-2 type is the same as Type 2, but is guaranteed to contain no",
"blanks.",
"" };
 
#ifdef CK_SPEED
static char *hmxyqctl[] = {
"Syntax: SET CONTROL-CHARACTER { PREFIXED, UNPREFIXED } { <code>..., ALL }\n",
"<code> is the numeric ASCII code for a control character 1-31, 127-159, 255.",
"The word \"ALL\" means the command applies to all characters in this range.",
"\nPREFIXED <code> means the given control character must be converted to a",
" printable character and prefixed, the default for all control characters.",
"\nUNPREFIXED <code> means you think it is safe to send the given control",
" character as-is, without a prefix.  USE THIS OPTION AT YOUR OWN RISK!",
"\nSHOW CONTROL to see current settings.  SET CONTROL PREFIXED ALL is",
"recommended for safety.  You can include multiple <code> values in one",
"command, separated by spaces.",
"" };
#endif /* CK_SPEED */

#ifndef NODIAL
static char *hxymodm[] = {
"Syntax: SET MODEM <parameter> <value> ...\n",
"Note: Many of the SET MODEM parameters are configured automatically when",
"you SET MODEM TYPE, according to the modem's capabilities.  SHOW MODEM to",
"see them.  Also see HELP DIAL and HELP SET DIAL.\n",
"SET MODEM TYPE <name>",
"  Tells Kermit which kind of modem you have, so it can issue the appropriate",
"  modem-specific commands for configuration, dialing, and hanging up.  For a",
"  list of the modem types known to Kermit, type \"set modem type ?\".",
"  Use SET MODEM TYPE NONE (the default) for direct serial connections.  Use",
"  SET MODEM TYPE USER-DEFINED to use a type of modem that is not built in",
"  to Kermit, and then user SET MODEM CAPABILITIES, SET MODEM DIAL-COMMAND,",
"  and SET MODEM COMMAND to tell Kermit how to configure and control it.\n",
#ifdef UNIX
"  Give the SET MODEM TYPE command BEFORE the SET LINE command so Kermit can",
"  open the communications device in the correct mode for dialing.\n",
#endif /* UNIX */

"SET MODEM CAPABILITIES <list>",
"  Use this command for changing Kermit's idea of your modem's capabilities,",
"  for example, if your modem is supposed to have built-in error correction",
"  but in fact does not.  Also use this command to define the capabilities", 
"  of a USER-DEFINED modem.  Capabilities are:\n",
"   AT      AT-commands",
"   DC      data-compression",
"   EC      error-correction",
"   HWFC    hardware-flow",
"   ITU     v25bis-commands",
"   SWFC    software-flow",
"   KS      kermit-spoof",
"   SB      speed-buffering",
"   TB      Telebit\n",
"SET MODEM CARRIER-WATCH { AUTO, ON, OFF }",
"  Synonym for SET CARRIER-WATCH (q.v.)\n",
"SET MODEM COMPRESSION { ON, OFF }",
"  Enables/disables the modem's data compression feature, if any.\n",
"SET MODEM DIAL-COMMAND <text>",
"  The text replaces Kermit's built-in modem dialing command.  It must",
"  include '%s' (percent s) as a place-holder for the telephone numbers",
"  given in your DIAL commands.\n",
"SET MODEM ERROR-CORRECTION { ON, OFF }",
"  Enables/disables the modem's error-correction feature, if any.\n",
"SET MODEM ESCAPE-CHARACTER number",
"  Numeric ASCII value of modem's escape character, e.g. 43 for '+'.",
"  For Hayes-compatible modems, Kermit uses three copies, e.g. \"+++\".\n",
"SET MODEM FLOW-CONTROL {AUTO, NONE, RTS/CTS, XON/XOFF}",
"  Selects the type of local flow control to be used by the modem.\n",
"SET MODEM HANGUP-METHOD { MODEM-COMMAND, RS232-SIGNAL }",
"  How hangup operations should be done.  MODEM-COMMAND means try to",
"  escape back to the modem's command processor and give a modem-specific",
"  hangup command.  RS232-SIGNAL means turn off the DTR signal.\n",
"SET MODEM KERMIT-SPOOF {ON, OFF}",
"  If the selected modem type supports the Kermit protocol directly,",
"  use this command to turn its Kermit protocol function on or off.\n",
"SET MODEM MAXIMUM-SPEED <number>",
"  Specify the maximum interface speed for the modem.\n",
"SET MODEM NAME <text>",
"  Descriptive name for a USER-DEFINED modem.\n",
"SET MODEM SPEAKER {ON, OFF}",
"  Turns the modem's speaker on or off during dialing.\n",
"SET MODEM SPEED-MATCHING {ON, OFF}",
"  ON means that C-Kermit changes its serial interface speed to agree with",
"  the speed reported by the modem's CONNECT message, if any.  OFF means",
"  Kermit should not change its interface speed.\n",
"SET MODEM VOLUME {LOW, MEDIUM, HIGH}",
"  Selects the desired modem speaker volume for when the speaker is ON.\n",
"SET MODEM COMMAND commands are used to override built-in modem commands for",
"each modem type, or to fill in commands for the USER-DEFINED modem type.",
"Omitting the optional [ text ] restores the built-in modem-specific command,",
"if any:\n",
"SET MODEM COMMAND AUTOANSWER {ON, OFF} [ text ]",
"  Modem commands to turn autoanswer on and off.\n",
"SET MODEM COMMAND COMPRESSION {ON, OFF} [ text ]",
"  Modem commands to turn data compression on and off.\n",
"SET MODEM COMMAND ERROR-CORRECTION {ON, OFF} [ text ]",
"  Modem commands to turn error correction on and off.\n",
"SET MODEM COMMAND HANGUP [ text ]",
"  Command that tells the modem to hang up the connection.\n",
"SET MODEM COMMAND IGNORE-DIALTONE [ text ]",
"  Command that tells the modem not to wait for dialtone before dialing.\n",
"SET MODEM COMMAND INIT-STRING [ text ]",
"  The 'text' is a replacement for C-Kermit's built-in initialization command",
"  for the modem.\n",
"SET MODEM COMMAND PREDIAL-INIT [ text ]",
"  A second INIT-STRING that is to be sent to the modem just prior to \
dialing.",
"SET MODEM COMMAND HARDWARE-FLOW [ text ]",
"  Modem command to enable hardware flow control (RTS/CTS) in the modem.\n",
"SET MODEM COMMAND SOFTWARE-FLOW [ text ]",
"  Modem command to enable local software flow control (Xon/Xoff) in modem.\n",
"SET MODEM COMMAND SPEAKER { ON, OFF } [ text ]",
"  Modem command to turn the modem's speaker on or off.\n",
"SET MODEM COMMAND NO-FLOW-CONTROL [ text ]",
"  Modem command to disable local flow control in the modem.\n",
"SET MODEM COMMAND PULSE [ text ]",
"  Modem command to select pulse dialing.\n",
"SET MODEM COMMAND TONE [ text ]",
"  Modem command to select tone dialing.\n",
"SET MODEM COMMAND VOLUME { LOW, MEDIUM, HIGH } [ text ]",
"  Modem command to set the modem's speaker volume.",
"",
};

static char *hmxydial[] = {
"The SET DIAL command establishes or changes all parameters related to",
"dialing the telephone.  Also see HELP DIAL and HELP SET MODEM.  Use SHOW",
"DIAL to display all of the SET DIAL values.\n",
"SET DIAL COUNTRY-CODE <number>",
"  Tells Kermit the telephonic country-code of the country you are dialing",
"  from, so it can tell whether a portable-format phone number from your",
"  dialing directory will result in a national or an international call.",
"  Examples: 1 for USA, Canada, Puerto Rico, etc; 7 for Russia, 39 for Italy,",
"  351 for Portugal, 47 for Norway, 44 for the UK, 972 for Israel, 81 for",
"  Japan, ...",
" ",
"  If you have not already set your DIAL INTL-PREFIX and LD-PREFIX, then this",
"  command sets default values for them: 011 and 1, respectively, for country",
"  code 1; 00 and 0, respectively, for all other country codes.  If these are",
"  not your true international and long-distance dialing prefixes, then you",
"  should follow this command by DIAL INTL-PREFIX and LD-PREFIX to let Kermit",
"  know what they really are.",
" ",
"SET DIAL AREA-CODE [ <number> ]",
"  Tells Kermit the area or city code that you are dialing from, so it can",
"  tell whether a portable-format phone number from the dialing directory is",
"  local or long distance.  Be careful not to include your long-distance",
"  dialing prefix as part of your area code; for example, the area code for",
"  central London is 171, not 0171.",
" ",
"SET DIAL CONFIRMATION {ON, OFF}",
"  Kermit does various transformations on a telephone number retrieved from",
"  the dialing directory prior to dialing (use LOOKUP <name> to see them).",
"  In case the result might be wrong, you can use SET DIAL CONFIRM ON to have",
"  Kermit ask you if it is OK to dial the number, and if not, to let you type",
"  in a replacement.",
" ",
"SET DIAL CONNECT { AUTO, ON, OFF }",
"  Whether to CONNECT (enter terminal mode) automatically after successfully",
"  dialing.  ON means to do this; OFF means not to.  AUTO (the default) means",
"  do it if the DIAL command was given interactively, but don't do it if the",
"  DIAL command was issued from a macro or command file.  If you specify ON",
"  or AUTO, you may follow this by one of the keywords VERBOSE or QUIET, to",
"  indicate whether the verbose 4-line 'Connecting...' message is to be",
"  displayed if DIAL succeeds and Kermit goes into CONNECT mode.",
" ",
"SET DIAL CONVERT-DIRECTORY {ASK, ON, OFF}",
"  The format of Kermit's dialing directory changed in version 5A(192).  This",
"  command tells Kermit what to do when it encounters an old-style directory:",
"  ASK you whether to convert it, or convert it automatically (ON), or leave",
"  it alone (OFF).  Old-style directories can still be used without",
"  conversion, but the parity and speed fields are ignored.",
" ",
"SET DIAL DIRECTORY [ filename [ filename [ filename [ ... ] ] ] ]",
"  The name(s) of your dialing directory file(s).  If you do not supply any",
"  filenames, the  dialing directory feature is disabled and all numbers are",
"  dialed literally as given in the DIAL command.  If you supply more than",
"  one directory, all of them are searched.",
" ",
"SET DIAL SORT {ON, OFF}",
"  When multiple entries are obtained from your dialing directory, they are",
"  sorted in \"cheapest-first\" order.  If this does not produce the desired",
"  effect, SET DIAL SORT OFF to disable sorting, and the numbers will be",
"  dialed in the order in which they were found.",
" ",
"SET DIAL DISPLAY {ON, OFF}",
"  Whether to display dialing progress on the screen; default is OFF.",
" ",
"SET DIAL HANGUP {ON, OFF}",
"  Whether to hang up the phone prior to dialing; default is ON.",
" ",
"SET DIAL IGNORE-DIALTONE {ON, OFF}",
"  Whether to ignore dialtone when dialing; default is OFF.",
" ",
"SET DIAL METHOD {DEFAULT, TONE, PULSE}",
"  Whether to use the modem's DEFAULT dialing method, or to force TONE or",
"  PULSE dialing.",
" ",
"SET DIAL PACING number",
"  How many milliseconds to pause between sending each character to the modem",
"  dialer.  The default is -1, meaning to use the number from the built-in",
"  modem database.",
" ",
"SET DIAL TIMEOUT number",
"  How many seconds to wait for a dialed call to complete.  Use this command",
"  to override the DIAL command's automatic timeout calculation.  A value",
"  of 0 turns off this feature and returns to Kermit's automatic dial",
"  timeout calculation.",
" ",
"SET DIAL RESTRICT { INTERNATIONAL, LOCAL, LONG-DISTANCE, NONE }",
"  Prevents placing calls of the type indicated, or greater.  For example",
"  SET DIAL RESTRICT LONG prevents placing of long-distance and international",
"  calls.  If this command is not given, there are no restrictions.",
" ",
"SET DIAL RETRIES <number>",
"  How many times to redial each number if the dialing result is busy or no",
"  no answer, until the call is succesfully answered.  The default is 0",
"  because automatic redialing is illegal in some countries.",
" ",
"SET DIAL INTERVAL <number>",
"  How many seconds to pause between automatic redial attempts; default 10.",
" ",
"The following commands apply to all phone numbers, whether given literally",
"or found in the dialing directory:",
" ",
"SET DIAL PREFIX [ text ]",
"  Establish a prefix to be applied to all phone numbers that are dialed,",
"  for example to disable call waiting.",
" ",
"SET DIAL SUFFIX [ text ]",
"  Establish a suffix to be added after all phone numbers that are dialed.",
" ",
"The following commands apply only to portable-format numbers obtained from",
"the dialing directory; i.e. numbers that start with a \"+\" sign and",
"country code, followed by area code in parentheses, followed by the phone",
"number.",
" ",
"SET DIAL LC-AREA-CODES [ <list> ]",
"  Species a list of area codes to which dialing is local, i.e. does not",
"  require the LD-PREFIX.  Up to 32 area codes may be listed, separated by",
"  spaces.  Any area codes in this list will be included in the final dial",
"  string so do not include your own area code if it should not be dialed.",
" ",
"SET DIAL LC-PREFIX [ <text> ]",
"  Specifies a prefix to be applied to local calls made from portable dialing",
"  directory entries.  Normally no prefix is used for local calls.",
" ",
"SET DIAL LC-SUFFIX [ <text> ]",
"  Specifies a suffix to be applied to local calls made from portable dialing",
"  directory entries.  Normally no suffix is used for local calls.",
" ",
"SET DIAL LD-PREFIX [ <text> ]",
"  Your long-distance dialing prefix, to be used with portable dialing",
"  directory entries that result in long-distance calls.",
" ",
"SET DIAL LD-SUFFIX [ <text> ]",
"  Long-distance dialing suffix, if any, to be used with portable dialing",
"  directory entries that result in long-distance calls.  This would normally",
"  be used for appending a calling-card number to the phone number.",
" ",
"SET DIAL FORCE-LONG-DISTANCE { ON, OFF }",
"  Whether to force long-distance dialing for calls that normally would be",
"  local.  For use (e.g.) in France.",
" ",
"SET DIAL TOLL-FREE-AREA-CODE [ <number> [ <number> [ ... ] ] ]",
"  Tells Kermit the toll-free area code(s) in your country.",
" ",
"SET DIAL TOLL-FREE-PREFIX [ <text> ]",
"  You toll-free dialing prefix, in case it is different from your long-",
"  distance dialing prefix.",
" ",
"SET DIAL INTL-PREFIX <text>",
"  Your international dialing prefix, to be used with portable dialing",
"  directory entries that result in international calls.",
" ",
"SET DIAL INTL-SUFFIX <text>",
"  International dialing suffix, if any, to be used with portable dialing",
"  directory entries that result in international calls.",
" ",
"SET DIAL PBX-OUTSIDE-PREFIX <text>",
"  Use this to tell Kermit how to get an outside line when dialing from a",
"  Private Branch Exchange (PBX).",
" ",
"SET DIAL PBX-EXCHANGE <text>",
"  If PBX-OUTSIDE-PREFIX is set, then you can use this command to tell Kermit",
"  the leading digits of a local phone number that identify it as being on",
"  your PBX, so it can make an internal call by deleting those digits from",
"  the phone number.",
" ",
"SET DIAL PBX-INTERNAL-PREFIX <text>",
"  If PBX-EXCHANGE is set, and Kermit determines from it that a call is",
"  internal, then this prefix, if any, is added to the number prior to",
"  dialing.  Use this if internal calls require a special prefix.",
"" };
#endif /* NODIAL */

static char *hmxyflo[] = { "Syntax: SET FLOW value\n",
#ifndef NOLOCAL
"Type of flow control to use during file transfer and CONNECT mode.",
#else
"Type of flow control to use during file transfer.",
#endif /* NOLOCAL */
"Choices: AUTOMATIC (the default, let Kermit choose for you); KEEP (don't",
"change the device's current setting), XON/XOFF (software flow control),",
"NONE (no flow control at all), and possibly others including RTS/CTS",
"(hardware) depending on the capabilities of your computer and operating",
"system.  Type SET FLOW ? for a list.",
""};

static char *hmxyf[] = { "Syntax: SET FILE parameter value",
" ",
"Sets various file-related parameters.  Use SHOW FILE to view them.",
" ",
"Parameters:",
" ",
"TYPE { TEXT, BINARY, ... }",
"How file contents are to be treated during file transfer.",
"TYPE is normally TEXT, with conversion of record format and character set.",
"BINARY means to do no conversion.  Use BINARY for executable programs or",
"binary data.  Example: SET FILE TYPE BINARY.",
" ",
#ifdef VMS
"For VMS, you may include an optional record-format after the word",
"BINARY.  This may be FIXED (the default) or UNDEFINED.",
"Two additional VMS file types are also supported: IMAGE and LABELED.  IMAGE",
"means raw block i/o, no interference from RMS, and applies to file transmis-",
"sion only.  LABELED means to send or interpret RMS attributes with the file.",
" ",
#endif /* VMS */

#ifdef PATTERNS
"PATTERNS { ON, OFF }",
"ON (the default) means to use filename pattern lists to determine whether",
"to send a file in text or binary mode.  OFF means to send all files in the",
"prevailing mode.",
" ",
"BINARY-PATTERNS [ <pattern> [ <pattern> ... ] ]",
"Zero or more filename patterns which, if matched, cause a file to be sent in",
"binary mode.  Use \"*\" in a pattern to match any sequence of zero or more",
"characters, \"?\" to match any single character.",
" ",
"TEXT-PATTERNS [ <pattern> [ <pattern> ... ] ]",
"Zero or more filename patterns which, if matched, cause a file to be sent in",
"text mode.",
" ",
#endif /* PATTERNS */

"BYTESIZE { 7, 8 }: normally 8.  If 7, truncate the 8th bit of all file \
bytes.",
" ",
#ifndef NOCSETS
"CHARACTER-SET: tells the encoding of the local file, ASCII by default.",
"The names ITALIAN, PORTUGUESE, NORWEGIAN, etc, refer to 7-bit ISO-646",
"national character sets.  LATIN1 is the 8-bit ISO 8859-1 Latin Alphabet 1",
"for Western European languages.",
"NEXT is the 8-bit character set of the NeXT workstation.",
"The CPnnn sets are for IBM PCs.  MACINTOSH-LATIN is for the Macintosh.",
#ifndef NOLATIN2
"LATIN2 is ISO 8859-2 for Eastern European languages that are written with",
"Roman letters.",
#endif /* NOLATIN2 */
#ifdef CYRILLIC
"KOI-CYRILLIC, CYRILLIC-ISO, and CP866 are 8-bit Cyrillic character sets.",
"SHORT-KOI is a 7-bit ASCII coding for Cyrillic.",
#endif /* CYRILLIC */
#ifdef HEBREW
"HEBREW-ISO is ISO 8859-8 Latin/Cyrillic.  CP862 is the Hebrew PC code page.",
"HEBREW-7 is like ASCII with the lowercase letters replaced by Hebrew.",
#endif /* HEBREW */
#ifdef GREEK
"GREEK-ISO is ISO 8859-7 Latin/Greek.  CP869 is the Greek PC code page.",
"ELOT-927 is like ASCII with the lowercase letters replaced by Greek.",
#endif /* GREEK */
#ifdef KANJI
"JAPANESE-EUC, JIS7-KANJI, DEC-KANJI, and SHIFT-JIS-KANJI are Japanese",
"Kanji character sets.",
#endif /* KANJI */
"Type SET FILE CHAR ? for a complete list of file character sets.\n",
#endif /* NOCSETS */

"COLLISION tells what to do when a file arrives that has the same name as",
"an existing file.  The options are:",
"  BACKUP (default) - Rename the old file to a new, unique name and store",
"    the incoming file under the name it was sent with.",
"  OVERWRITE - Overwrite (replace) the existing file.",
"  APPEND - Append the incoming file to the end of the existing file.",
"  DISCARD - Refuse and/or discard the incoming file.",
"  RENAME - Give the incoming file a unique name.",
"  UPDATE - Accept the incoming file only if it is newer than the existing",
"    file.",
"Example: SET FILE COLLISION UPDATE\n",

"SET FILE DESTINATION { DISK, PRINTER, SCREEN, NOWHERE }",
"  DISK (default): Store incoming files on disk.",
"  PRINTER: Send incoming files to SET PRINTER device.",
"  SCREEN: Display incoming files on screen (local mode only).",
"  NOWHERE: Do not put incoming files anywhere (use for calibration runs).",
" ",
"SET FILE DISPLAY selects the format of the file transfer display for",
"local-mode file transfer.  The choices are:",
"  SERIAL (the default).  One dot is printed for every K bytes transferred.",
"    This format works on any kind of terminal, even a hardcopy.",
"  CRT.  Numbers are continuously updated on a single screen line.  This",
"    format can be used on any video display terminal.",
#ifdef CK_CURSES
"  FULLSCREEN.  A fully formatted 24x80 screen showing lots of information.",
"    This requires a video display terminal whose control sequences are",
"    understood by Kermit.",
#endif /* CK_CURSES */
"  NONE.  No file transfer display at all.\n",

"DOWNLOAD-DIRECTORY [ <directory-name> ]",
"Directory into which all received files should be placed.  By default,",
"received files go into your current directory.\n",

#ifdef CK_CTRLZ
"EOF { CTRL-Z, LENGTH }",
"End-Of-File detection method, normally LENGTH.  Applies only to text-mode",
"transfers.  When set to CTRL-Z, this makes the file sender treat the first",
"Ctrl-Z in the input file as the end of file (EOF), and it makes the file",
"receiver tack a Ctrl-Z onto the end of the output file if it does not",
"already end with Ctrl-Z.\n",
#endif /* CK_CTRLZ */

"END-OF-LINE { CR, CRLF, LF }",
"Use this command to specify non-standard line terminators for text files.\n",

"INCOMPLETE - what to do with an incompletely received file: KEEP",
"(default), or DISCARD.\n",

#ifdef VMS
"LABEL { ACL, BACKUP-DATE, NAME, OWNER, PATH } { ON, OFF } - Tells which",
"items to include (ON) or exclude (OFF) in labeled file transfer.",
#else
#ifdef OS2
"LABEL { ARCHIVE, READ-ONLY, HIDDEN, SYSTEM, EXTENDED } { ON, OFF }",
"Tells which items to include (ON) or exclude (OFF) in labeled file transfer.",
#endif /* OS2 */
#endif /* VMS */

"NAMES are normally CONVERTED to 'common form' during transmission; LITERAL",
"means use filenames literally (useful between like systems).  Also see",
"SET SEND PATHNAMES and SET RECEIVE PATHNAMES.\n",

#ifdef UNIX
"OUTPUT { { BUFFERED, UNBUFFERED } [ size ], BLOCKING, NONBLOCKING }",
"Lets you control the disk output buffer for incoming files.  Buffered",
"blocking writes are normal.  Nonblocking writes might be faster on some",
"systems but might also be risky, depending on the underlying file service.",
"Unbuffered writes might be useful in critical applications to ensure that",
"cached disk writes are not lost in a crash, but will probably also be slower."
,
"The optional size parameter after BUFFERED or UNBUFFERED lets you change the",
"disk output buffer size; this might make a difference in performance.\n",
#endif /* UNIX */

#ifdef VMS
"RECORD-LENGTH sets the record length for received files of type BINARY.  Use",
"this to receive VMS BACKUP savesets or other fixed-format files. The default",
"of 512 is suitable for executable (.EXE) files, etc.\n",
"Example: SET FILE REC 8192\n",
#endif /* VMS */

"WARNING.  SET FILE WARNING is superseded by the newer command, SET FILE",
"COLLISION.  SET FILE WARNING ON is equivalent to SET FILE COLLISION RENAME",
"and SET FILE WARNING OFF is equivalent to SET FILE COLLISION OVERWRITE.\n",

"" };
 
static char *hmxyhsh[] = { "Syntax: SET HANDSHAKE value\n",
"Character to use for half duplex line turnaround handshake during file",
"transfer.  C-Kermit waits for this character from the other computer before",
"sending its next packet.  Default is NONE, others are XON, LF, BELL, ESC,",
"etc.  SET HANDSHAKE CODE <n> lets you specify the numeric ASCII value of the",
"handshake character.  Type SET HANDSH ? for a list.",
"" };

#ifndef NOSERVER
static char *hsetsrv[] = {"\
SET SERVER DISPLAY {ON,OFF}",
"Tell whether local-mode C-Kermit during server operation should put a",
"file transfer display on the screen.  Default is OFF.\n",
"SET SERVER GET-PATH [ directory [ directory [ ... ] ] ]",
"Tells the C-Kermit server where to search for files whose names it receives",
"from client GET commands when the names are not fully specified pathnames.",
"Default is no GET-PATH, so C-Kermit looks only in its current directory.\n",
#ifdef OS2
"SET SERVER IDLE-TIMEOUT seconds",
"Idle time limit while in server mode, 0 for no limit.\n",
#endif /* OS2 */
"SET SERVER LOGIN [ username [ password [ account ] ] ]",
"Sets up a username and optional password which must be supplied before",
"the server will respond to any commands other than REMOTE LOGIN.  The",
"account is ignored.  If you enter SET SERVER LOGIN by itself, then login",
"is no longer required.\n",
"SET SERVER TIMEOUT n",
"Server command wait timeout interval, how often the C-Kermit server issues",
"a NAK while waiting for a command packet.  Specify 0 for no NAKs at all.",
"Default is 0.",
"" };
#endif /* NOSERVER */

static char *hmhrmt[] = { "\
The REMOTE command is used to send file management instructions to a",
"remote Kermit server.  There should already be a Kermit running in server",
"mode on the other end of the currently selected line.  Type REMOTE ? to",
"see a list of available remote commands.  Type HELP REMOTE x to get",
"further information about a particular remote command 'x'.",
"" };

#ifndef NOSPL
static char *ifhlp[] = { "Syntax: IF [NOT] condition command",
" ",
"If the condition is (is not) true, do the command.  Only one command may",
"be given, and it must appear on the same line as the IF.  Conditions are:",
" ",
"  SUCCESS     - the previous command succeeded",
"  FAILURE     - the previous command failed",
"  BACKGROUND  - C-Kermit is running in the background",
#ifdef CK_IFRO
"  FOREGROUND  - C-Kermit is running in the foreground",
"  REMOTE-ONLY - C-Kermit was started with the -R command-line option",
#else
"  FOREGROUND  - C-Kermit is running in the foreground",
#endif /* CK_IFRO */
"  ALARM       - SET ALARM time has passed",
#ifdef OS2
"  TAPI        - Current connection is via a Microsoft TAPI device.",
#endif /* OS2 */
" ",
#ifdef CK_KERBEROS
"  AVAILABLE KERBEROS4               - Kerberos IV is available",
"  AVAILABLE KERBEROS5               - Kerberos V is available",
#endif /* CK_KERBEROS */
"  DEFINED variablename or macroname - The named variable or macro is defined",
#ifdef CK_TMPDIR
"  DIRECTORY string                  - The string is the name of a directory",
#endif /* CK_TMPDIR */
#ifdef ZFCDAT
"  NEWER file1 file2                 - The 1st file is newer than the 2nd one",
#endif /* ZFCDAT */
"  NUMERIC variable or constant      - The variable or constant is numeric",
"  EXIST filename                    - The named file exists",
"  OPEN { READ-FILE,SESSION-LOG,...} - The given file or log is open",
" ",
"  COUNT   - subtract one from COUNT, execute the command if the result is",
"            greater than zero (see SET COUNT)",
" ",
"  EQUAL s1 s2 - s1 and s2 (character strings or variables) are equal",
"  LLT s1 s2   - s1 is lexically (alphabetically) less than s2",
"  LGT s1 s1   - s1 is lexically (alphabetically) greater than s2",
" ",
"  =  n1 n2 - n1 and n2 (numbers or variables containing numbers) are equal",
"  <  n1 n2 - n1 is arithmetically less than n2",
"  <= n1 n2 - n1 is arithmetically less than or equal to n2",
"  >  n1 n2 - n1 is arithmetically greater than n2",
"  >= n1 n2 - n1 is arithmetically greater than or equal to n2",
" ",
"  (number by itself) - fails if the number is 0, succeeds otherwise",
" ",
"  TRUE     - always succeeds",
"  FALSE    - always fails",
" ",
"The IF command may be followed on the next line by an ELSE command. Example:",
" ",
"  IF < \\%x 10 ECHO It's less",
"  ELSE echo It's not less",
" ",
"Also see XIF.",
"" };

static char *hmxxeval[] = {"Syntax: EVALUATE expression\n",
"Evaluate an integer arithmetic expression and print its value.  The",
"expression can contain numbers and/or numeric-valued variables or functions.",
"Operators include +-/*(), etc.  Example: EVAL (1+1) * (\\%a / 3).",
"" };
#endif /* NOSPL */

#ifndef NOSPL
static char *ifxhlp[] = { "\
Syntax: XIF condition { commandlist } [ ELSE { commandlist } ]\n",
"Extended IF command.  The conditions are the same as for IF (type HELP IF)",
"but multiple comma-separated commands may be grouped within braces in both", 
"the IF and ELSE parts.  The ELSE part is optional.",
"" };

static char *forhlp[] = { "\
Syntax: FOR variablename initial-value final-value increment { commandlist }",
"\nFOR loop.  Execute the comma-separated commands in the commandlist the",
"number of times given by the initial value, final value and increment.",
"Example:  FOR \\%i 10 1 -1 { pause 1, echo \\%i }", "" };

static char *whihlp[] = { "\
Syntax: WHILE condition { commandlist }",
"\nWHILE loop.  Execute the comma-separated commands in the bracketed",
"commandlist while the condition is true.  Conditions are the same as for",
"IF commands.",
"" };

static char *swihlp[] = {
"Syntax: SWITCH <variable> { case-list }",
"The case-list is a series of lines like these:\n",
"  :x, command, command, ..., break\n",
"where \"x\" is a possible value for the variable.  At the end of the",
"case-list, you can put a \"default\" label to catch when the variable does",
"not match any of the labels:\n",
"  :default, command, command, ...",
""
};

static char *openhlp[] = {
"Syntax:  OPEN mode filename\n",
"For use with READ and WRITE commands.  Open the local file in the specified",
"mode: READ, WRITE, or APPEND.  !READ and !WRITE mean to read from or write",
"to a system command rather than a file.  Examples:\n",
"  OPEN READ oofa.txt",
"  OPEN !READ sort foo.bar",
"" };

static char *hxxaskq[] = {
"Syntax:  ASKQ variablename [ prompt ]",
"Example: ASKQ \\%p { Password:}\n",
"Issues the prompt and defines the variable to be whatever you type in.",
"The characters that you type do not echo on the screen.",
"Use braces to preserve leading and/or trailing spaces in the prompt.",
"To include a question mark, precede it by backslash (\\).",""
};

static char *hxxask[] = {
"Syntax:  ASK variablename [ prompt ]",
"Example: ASK \\%n { What is your name\\? }\n",
"Issues the prompt and defines the variable to be whatever you type in.",
"Use braces to preserve leading and/or trailing spaces in the prompt.",
"To include a question mark, precede it by backslash (\\).",""
};

static char *hxxgetc[] = {
"Syntax:  GETC variablename [ prompt ]",
"Example: GETC \\%c { Type any character to continue...}\n",
"Issues the prompt and sets the variable to the first character you type.",
"Use braces to preserve leading and/or trailing spaces in the prompt.", ""
};

static char *hxxdef[] = {
"Syntax: DEFINE name [ definition ]\n",
"Defines a macro or variable.  Its value is the definition, taken literally.",
"No expansion or evaluation of the definition is done.  Thus if the", 
"definition includes any variable or function references, their names are",
"included, rather than their values (compare with ASSIGN).  If the definition",
"is omitted, then the named variable or macro is undefined.\n",
"A typical macro definition looks like this:\n",
"  DEFINE name command, command, command, ...\n",
"for example:\n",
"  DEFINE vax set parity even, set duplex full, set flow xon/xoff\n",
"which defines a Kermit command macro called 'vax'.  The definition is a",
"comma-separated list of Kermit commands.  Use the DO command to execute",
"the macro, or just type its name, followed optionally by arguments.\n",
"The definition of a variable can be anything at all, for example:\n",
"  DEFINE \\%a Monday",
"  DEFINE \\%b 3\n",
"These variables can be used almost anywhere, for example:\n",
"  ECHO Today is \\%a",
"  SET BLOCK-CHECK \\%b",
"" };

static char *hxxass[] = {
"Syntax:  ASSIGN variablename string.",
"Example: ASSIGN \\%a My name is \\%b.\n",
"Assigns the current value of the string to the variable (or macro).",
"The definition string is fully evaluated before it is assigned, so that",
"the values of any variables are contained are used, rather than their",
"names.  Compare with DEFINE.  To illustrate the difference, try this:\n",
"  DEFINE \\%a hello",
"  DEFINE \\%x \\%a",
"  ASSIGN \\%y \\%a",
"  DEFINE \\%a goodbye",
"  ECHO \\%x \\%y\n",
"This will print 'goodbye hello'.", "" };

static char *hxxdec[] = {
"Syntax: DECREMENT variablename [ number ]\n",
"Decrement (subtract one from) the value of a variable if the current value",
"is numeric.  If the number argument is given, subtract that number instead.",
"\nExamples: DECR \\%a, DECR \\%a 7, DECR \\%a \\%n", "" };

static char *hxxinc[] = {
"Syntax: INCREMENT variablename [ number ]\n",
"Increment (add one to) the value of a variable if the current value is",
"numeric.  If the number argument is given, add that number instead.\n",
"Examples: INCR \\%a, INCR \\%a 7, INCR \\%a \\%n", "" };
#endif /* NOSPL */

#ifdef ANYX25
#ifndef IBMX25
static char *hxxpad[] = {
"Syntax: PAD command",
"X.25 PAD commands:\n",
"    PAD CLEAR     - Clear the virtual call",
"    PAD STATUS    - Return the status of virtual call",
"    PAD RESET     - Send a reset packet",
"    PAD INTERRUPT - Send an interrupt packet",
""};
#endif /* IBMX25 */

static char *hxyx25[] = {
"Syntax: SET X.25 option { ON [ data ], OFF }\n",
"X.25 call options:",
"  CLOSED-USER-GROUP { ON index, OFF }",
"    Enable or disable closed user group call, where index is the group",
"    index, 0 to 99.",
"  REVERSE-CHARGE { ON, OFF }",
"    Tell whether you want to reverse the charges for the call.",
"  CALL-USER-DATA { ON string, OFF }",
"    Specify call user-data for the X.25 call.",
""};
#endif /* ANYX25 */

static char *hxyprtr[] = {
#ifdef PRINTSWI
"Syntax: SET PRINTER [ switches ] [ name ]",
" ",
"Specifies the printer to be used for transparent-print, autoprint, and",
"screen-dump material during terminal emulation, as well as for the PRINT",
"command, plus various options governing print behavior.",
" ",
"Switches for specifying the printer by type:",
" ",
"/NONE",
"   Include this switch to specify that all printer actions should simply be",
"   skipped.  Use this, for example, if you have no printer.",
" ",
"/DOS-DEVICE[:name]",
"   Include this to declare a DOS printer and to specify its name, such as",
"   PRN, LPT1, etc.",
" ",
#ifdef NT
"/WINDOWS-QUEUE[:queue-name]",
"   Include this to declare a Windows printer and specify its queue name.",
"   Type question mark (?) after the colon (:) to see a list of known queue",
"   names.",
" ",
#endif /* NT */
"/FILE[:name]",
"   Specifies that all printer material is to be appended to the named file,",
"   rather than being sent to a printer.  If the file does not exist, it is",
"   created the first time any material is to be printed.",
" ",
"/PIPE[:name]",
"   Specifies that all printer material is to be sent as standard input to",
"   the program or command whose name is given.  Example:",
"     SET PRINTER /PIPE:{textps > lpt1}",
" ",
"If you give a printer name without specifying any of these switches, then it",
"is assumed to be a DOS printer device or filename unless the name given",
"(after removing enclosing braces, if any) starts with \"|\", \
in which case it",
"is a pipe.  Examples:",
" ",
"  SET PRINTER LPT1               <-- DOS device",
"  SET PRINTER {| textps > lpt1}  <-- Pipe",
" ",
"The next group of switches tells whether the printer is one-way or",
"bidirectional (two-way):",
" ",
"/OUTPUT-ONLY",
"   Include this to declare the printer capable only of receiving material to",
"   be printed, but not sending anything back.  This is the normal kind of",
"   printer, Kermit's default kind, and the opposite of /BIDIRECTIONAL.",
" ",
"/BIDIRECTIONAL",
"   Include this to declare the printer bidirectional.  This is the opposite ",
"   of /OUTPUT-ONLY.  You can also use this option with serial printers, even",
"   if they aren't bidirectional, in case you need to specify speed, flow",
"   control, or parity.",
" ",
"The next group applies only to bidirectional and/or serial printers:",
" ",
"/FLOW-CONTROL:{NONE,XON/XOFF,RTS/CTS,KEEP}",
"   Flow control to use with a serial bidirectional printer, default KEEP;",
#ifdef NT
"   i.e. use whatever the Windows driver for the port normally uses.",
#else
"   i.e. use whatever the OS/2 driver for the port normally uses.",
#endif /* NT */
" ",
"/PARITY:{NONE,EVEN,ODD,SPACE,MARK}",
"   Parity to use with a serial printer, default NONE; i.e. use 8 data bits",
"   and no parity.  If you omit the colon and the keyword, NONE is selected.",
" ",
"/SPEED:number",
"  Interface speed, in bits per second, to use with a serial printer, such as",
"  2400, 9600, 19200, etc.  Type SET PRINTER /SPEED:? for a list of possible",
"  speeds.",
" ",
"The final group deals with print jobs -- how to identify them, how to start",
"them, how to terminate them:",
" ",
"/TIMEOUT[:number]",
"  Used with host-directed transparent or auto printing, this is the number",
"  of seconds to wait after the host closes the printer before terminating",
"  the print job if the printer is not opened again during the specified",
"  amount of time.",
" ",
"/JOB-HEADER-FILE[:filename]",
"  The name of a file to be sent to the printer at the beginning of each",
"  print job, as a burst page, or to configure the printer.  Normally no file",
"  is is sent.",
" ",
"/END-OF-JOB-STRING[:string]",
"  String of characters to be sent to the printer at the end of the print",
"  job, usually used to force the last or only page out of the printer.  When",
"  such a string is needed, it usually consists of a single formfeed: \"set",
"  printer /end-of-job:{\\12}\".  No end-of-job string is sent unless you",
"  specify one with this option.  If the string contains any spaces or",
"  control characters (even in backslash notation, as above), enclose it in",
"  braces.",
" ",
"SHOW PRINTER displays your current printer settings.",
#else
#ifdef UNIX
"Syntax: SET PRINTER [ { |command, filename } ]",
" ",
"Specifies the command (such as \"|lpr\") or filename to be used by the",
"PRINT command.  If a filename is given, each PRINT command appends to the",
"given file.  If the SET PRINTER argument contains spaces, it must be",
"enclosed in braces, e.g. \"set printer {| lpr -Plaserjet}\". If the argument",
"is omitted the default value is restored.  SHOW PRINTER displays the current",
"printer.  See HELP PRINT for further info.",
#else
"Sorry, SET PRINTER not available yet.",
#endif /* UNIX */
#endif /* PRINTSWI */
""};

#ifdef OS2
#ifdef BPRINT
static char *hxybprtr[] = {
"Syntax: SET BPRINTER [ portname speed [ parity [ flow-control ] ] ]\n",
"Like SET PRINTER (q.v.) except it specifies a bidirectional printer port.",
"Presently this must be a COM port, such as COM1, COM2, etc; it can't be",
"a DOS printer such as PRN or LPTn, and you must specify its interface speed,",
"and optionally also any required parity (default = none) and flow control",
#ifdef NT
"(default = RTS/CTS).  It also can't be a Windows printer name.",
#else
"(default = RTS/CTS).  It also can't be a OS/2 printer name.",
#endif /* NT */
"This printer is used exactly like the normal SET PRINTER device, except that",
"(a) it stays open all the time, and (b) any data that comes in from the",
"printer is sent directly to the host.  To cancel an active BPRINTER, use SET",
"BPRINTER by itself with no portname or SET PRINTER with or without a printer",
"name.  Note: You can have only one printer at a time; SET BPRINTER undoes",
"any previous SET PRINTER and vice versa.  Also see HELP PRINTER.",
""};
#endif /* BPRINT */
#endif /* OS2 */

static char *hxyexit[] = {
"Syntax: SET EXIT ON-DISCONNECT { ON, OFF }",
"  When ON, C-Kermit EXITs automatically when a network connection",
"  is terminated either by the host or by issuing a HANGUP command.\n",
"Syntax: SET EXIT STATUS number",
#ifdef NOSPL
"  Set C-Kermit's program return code to the given number.",
#else
"  Set C-Kermit's program return code to the given number, which can be a",
"  constant, variable, function result, or arithmetic expression.",
#endif /* NOSPL */
"\nSyntax: SET EXIT WARNING { ON, OFF, ALWAYS }", 
"  When EXIT WARNING is ON, issue a warning message and ask for confirmation",
"  before EXITing if a connection to another computer might still be open.",
"  When EXIT WARNING is ALWAYS, confirmation is always requested.  When OFF",
"  it is never requested.  The default is ON.",
"" };

#ifndef NOSPL
static char *hxxpau[] = {
"Syntax:  PAUSE [ { number-of-seconds, hh:mm:ss } ]",
"Example: PAUSE 3  or  PAUSE 14:52:30\n",
"Do nothing for the specified number of seconds or until the given time of",
"day in 24-hour hh:mm:ss notation.  If the time of day is earlier than the",
"current time, it is assumed to be tomorrow.  If no argument given, one",
"second is used.  The pause can be interrupted by typing any character on the",
"keyboard unless SLEEP CANCELLATION is OFF.  If interrupted, PAUSE fails,",
"otherwise it succeeds.  Synonym: SLEEP.",
"" };

static char *hxxmsl[] = {
"Syntax:  MSLEEP [ number ]",
"Example: MSLEEP 500\n",
"Do nothing for the specified number of milliseconds; if no number given,",
"100 milliseconds.","" };
#endif /* NOSPL */

#ifndef NOPUSH
extern int nopush;
static char *hxxshe[] = {
"Syntax: !, @, RUN, PUSH, or SPAWN, optionally followed by a command.",
"Gives the command to the local operating system's command processor, and",
"displays the results on the screen.  If the command is omitted, enters the",
"system's command line interpreter or shell; exit from it (the command for",
"this is usually EXIT or QUIT or LOGOUT) to return to Kermit.",
""
};
#endif /* NOPUSH */

#ifndef NOXMIT
static char *hxxxmit[] = {
"Syntax: TRANSMIT file\n",
"The TRANSMIT command is used for sending single files to other computers",
"that don't have Kermit.  Text files are sent a line at a time; binary files",
"are sent a character at a time.  There is no guarantee that the other",
"computer will receive the file correctly and completely.  Before you start",
"the TRANSMIT command, you must put the other computer in data collection",
"mode, for example by starting a text editor.  TRANSMIT may be interrupted by",
"Ctrl-C.  Synonym: XMIT.",
"" };
#endif /* NOXMIT */

#ifndef NOCSETS
static char *hxxxla[] = {
"Syntax: TRANSLATE file1 cs1 cs2 [ file2 ]\n",
"Translates file1 from the character set cs1 into the character set cs2",
"and stores the result in file2.  The character sets can be any of",
"C-Kermit's file character sets.  If file2 is omitted, the translation",
"is displayed on the screen.  An appropriate intermediate character-set",
"is chosen automatically, if necessary.",
"Synonym: XLATE.  Example:\n",
"TRANSLATE lasagna.lat latin1 italian lasagna.nrc",
"" };
#endif /* NOCSETS */

#ifndef NOSPL
static char *hxxwai[] = {
"Syntax: WAIT { number-of-seconds, hh:mm:ss } [modem-signal(s)]",
" ",
"Examples:",
" wait 5 cd cts",
" wait 23:59:59 cd",
" ",
"Waits up to the given number of seconds or the given time of day for all of",
"the specified modem signals to appear on the serial communication device.",
"Sets FAILURE if signals do not appear in the given time or interrupted from",
"the keyboard during the waiting period.  Also see HELP PAUSE.",
" ",
"Signals:",
" cd  = Carrier Detect;",
" dsr = Dataset Ready;",
" cts = Clear To Send;",
" ri  = Ring Indicate.",
"" };
#endif /* NOSPL */

static char *hxxwri[] = {
"Syntax: WRITE name text\n",
"Writes the given text to the named log or file.  The text text may include",
"backslash codes, and is not terminated by a newline unless you include the",
"appropriate code.  The name parameter can be any of the following:\n",
"  DEBUG-LOG",
"  ERROR (standard error)",
#ifndef NOSPL
"  FILE (the OPEN WRITE, OPEN !WRITE, or OPEN APPEND file, see HELP OPEN)",
#endif /* NOSPL */
"  PACKET-LOG",
"  SCREEN (compare with ECHO)",
#ifndef NOLOCAL
"  SESSION-LOG",
#endif /* NOLOCAL */
"  TRANSACTION-LOG", "" };

#ifndef NODIAL
static char *hxxlook[] = { "Syntax: LOOKUP name\n",
"Looks up the given name in the dialing directory or directories, if any,",
"specified in the most recent SET DIAL DIRECTORY command.  Each matching",
"entry is shown, along with any transformations that would be applied to",
"portable-format entries based on your locale.  HELP DIAL, HELP SET DIAL",
"for further info.",
""
};

static char *hxxansw[] = { "Syntax:  ANSWER [ <seconds> ]\n",
#ifdef OS2
"Waits for a modem call to come in.  Prior SET MODEM TYPE and SET PORT", 
#else
"Waits for a modem call to come in.  Prior SET MODEM TYPE and SET LINE", 
#endif /* OS2 */
"required.  If <seconds> is 0 or not specified, Kermit waits forever or until",
"interrupted, otherwise Kermit waits the given number of seconds.  The ANSWER",
"command puts the modem in autoanswer mode.  Subsequent DIAL commands will",
"automatically put it (back) in originate mode.  SHOW MODEM, HELP SET MODEM",
"for more info.",
""
};

static char *hxxdial[] = { "Syntax:  DIAL phonenumber",
"Example: DIAL 7654321\n",
"Dials a number using an autodial modem.  First you must SET MODEM, then",
#ifdef OS2
"SET PORT, then SET SPEED.  Then give the DIAL command, including the phone",
#else
"SET LINE, then SET SPEED.  Then give the DIAL command, including the phone",
#endif /* OS2 */
"number, for example:\n",
"  DIAL 7654321\n",
#ifdef NETCONN
"If the modem is on a network modem server, SET HOST first, then SET MODEM,",
"then DIAL.  See also SET DIAL, SET MODEM, SET LINE, SET HOST, SET SPEED,",
"and REDIAL.\n",
#else
"See also SET DIAL, SET MODEM, SET LINE, SET SPEED, REDIAL.\n",
#endif /* NETCONN */
"If the phonenumber starts with a letter, and if you have used the SET DIAL",
"DIRECTORY command to specify one or more dialing-directory files, Kermit",
"looks it up in the given file(s); if it is found, the name is replaced by",
"the number or numbers associated with the name.  If it is not found, the",
"name is sent to the modem literally.\n",
"If the phonenumber starts with an equals sign (\"=\"), this forces the part",
"after the = to be send literally to the modem, even if it starts with a",
"letter, without any directory lookup.\n",
"A dialing directory is a plain text file, one entry per line:\n",
"  name  phonenumber  ;  comments\n",
"for example:\n",
"  work    9876543              ; This is a comment",
"  e-mail  +1  (212) 555 4321   ; My electronic mailbox",
"  heise   +49 (511) 535 2301   ; Verlag Heinz Heise BBS\n",
"If a phone number starts with +, then it must include country code and",
"area code, and C-Kermit will try to handle these appropriately based on",
"the current locale (HELP SET DIAL for further info); these are called",
"PORTABLE entries.  If it does not start with +, it is dialed literally.\n",
"If more than one entry is found with the same name, Kermit dials all of",
"them until the call is completed; if the entries are in portable format,",
"Kermit dials then in cheap-to-expensive order: internal, then local, then",
"long-distance, then international, based on its knowledge of your local",
"country code and area code (see HELP SET DIAL).\n",
"Specify your dialing directory file(s) with the SET DIAL DIRECTORY command.",
 "" };

#ifdef CK_TAPI
static char *hxxtapi[] = {
"TAPI CONFIGURE-LINE <tapi-line>",
"Displays the TAPI Configure Line Dialog box and allows you to",
"alter the default configuration for the specified <tapi-line>.\n",
"TAPI DIALING-PROPERTIES",
"Displays the TAPI Dialing Properties (locations) Dialog box.  The",
"Dialing rules may be changed and locations created and deleted.",
"When the dialog box is closed, K-95 imports the current Dialing",
"Properties' Location into the Kermit DIAL command settings.",
""};

static char *hxytapi[] = {
"SET TAPI LINE <tapi-line>",
"Opens a TAPI device for use by Kermit.\n",
"SET TAPI MODEM-DIALING {ON, [OFF]}",
"If TAPI MODEM-DIALING is OFF when SET TAPI LINE is issued, Kermit opens the",
"TAPI device directly as a \"raw port\".  The device is unavailable to other",
"applications and Kermit performs dialing functions using its built-in",
"dialing and modem databases.  If TAPI MODEM-DIALING is ON, TAPI handles all",
"dialing functions and the port may be shared with other applications when a",
"call in not active.  When TAPI MODEM-DIALING is OFF, SET MODEM TYPE TAPI",
"Kermit uses the TAPI modem commands imported from the Windows Registry",
"during the previous SET TAPI LINE call.\n",
"SET TAPI LOCATION <tapi-location>",
"Specifies the TAPI location to make current for the entire system.  The",
"<tapi-location>'s dialing properties are imported into Kermit's SET DIAL",
"command database.\n",
"SET TAPI PHONE-NUMBER-CONVERSIONS {ON, OFF, [AUTO]}",
"Controls whether the phone number conversions are performed by TAPI (ON)",
"or by Kermit (OFF), or according the type of port that was selected (AUTO);",
"AUTO is the default, and is equivalent to ON if the current LINE/PORT is a",
"TAPI device and TAPI MODEM-DIALING is ON, OFF otherwise.\n",
"SET TAPI MODEM-LIGHTS {[ON], OFF}",
"Displays a modem lights indicator on the Windows 95 Taskbar.  Does nothing",
"in Windows NT 4.0.\n",
"SET TAPI MANUAL-DIALING {ON, [OFF]}",
"Displays a dialog box during dialing requesting that you manually dial the",
"phone before continuing.  Applies only when TAPI MODEM-DIALING is ON.\n",
"SET TAPI WAIT-FOR-CREDIT-CARD-TONE <seconds>",
"Some modems don't support the '$' (BONG) symbol during dialing, which"
"means \"wait for credit card tone before continuing.\"  If TAPI recognizes",
"the modem as one that does not support BONG, it replaces the '$' with",
"<seconds> worth of pauses.  The default is 8 seconds.  This command",
"applies only when TAPI MODEM-DIALING is ON\n",
"SET TAPI PRE-DIAL-TERMINAL {ON, [OFF]}",
"SET TAPI POST-DIAL-TERMINAL {ON, [OFF]}",
"Displays a small terminal window that may be used to communicate with the",
"modem or the host prior to or immediately after dialing; applies only when",
"TAPI MODEM-DIALING is ON\n",
"SET TAPI INACTIVITY-TIMEOUT <minutes>",
"Specifies the number of minutes of inactivity that may go by before TAPI",
"disconnects the line.  The default is 0 which means disable this function.",
"Applies only when TAPI MODEM-DIALING is ON.\n",
"SET TAPI USE-WINDOWS-CONFIGURATION {ON, [OFF]}",
"Specifies whether the TAPI modem values for speed, parity, stop bits, flow",
"control, etc. are used in preference to the current values specified within",
"Kermit-95.\n",
""};
#endif /* CK_TAPI */

#endif /* NODIAL */

#endif /* NOHELP */

/*  D O H L P  --  Give a help message  */
 
_PROTOTYP( int dohset, (int) );
#ifndef NOCMDL
_PROTOTYP( int dohopts, (void) );
#endif /* NOCMDL */
#ifndef NOSPL
_PROTOTYP( int dohfunc, (int) );
extern struct keytab fnctab[];
extern int nfuncs;
#endif /* NOSPL */
#ifdef OS2
#ifndef NOKVERBS
_PROTOTYP( int dohkverb, (int) );
extern struct keytab kverbs[];
extern int nkverbs;
#endif /* NOKVERBS */
#endif /* OS2 */

static char *
cmdlhlp[] = {
"Command-line options are given after the program name in the system",
"command that you use to start C-Kermit.  Example:",
" ",
" kermit -i -s oofa.exe",
" ",
"tells C-Kermit to send (-s) the file oofa.exe in binary (-i) mode.",
" ",
"Command-line options are case-sensitive; \"-s\" is different from \"-S\".",
#ifdef VMS
"In VMS, uppercase options must be enclosed in doublequotes: ",
" ",
" $ kermit \"-Y\" \"-S\" -s oofa.txt ",
#endif /* VMS */
" ",
"If any \"action options\" are included on the command line, C-Kermit exits",
"after executing its command-line options.  If -S is included, or no action",
"options were given, C-Kermit enters its interactive command parser and",
"issues its prompt.",
" ",
"Command-line options are single characters preceded by dash (-).  Some",
"require an \"argument,\" others do not.  If an argument contains spaces, it",
"must be enclosed in doublequotes:",
" ",
" kermit -s \"filename with spaces\"",
" ",
"\
An option that does not require an argument can be bundled with other options:"
,
" ",
" kermit -Qis oofa.exe",
" ",
"Exceptions to the rules:",
" ",
" . If the first command-line option is a filename, Kermit executes commands",
"   from the file.",
" ",
" . The special option \"=\" (equal sign) means to treat the rest of the",
"   command line as data, rather than commands; this data is placed in the",
"   argument vector array, \\&@[], along with the other items on the command",
"   line.",
" ",
" . The -s option can accept multiple filenames, separated by spaces.",
" ",
" . the -j and -J options allow an optional second argument, the TCP port",
"   name or number.",
" ",
"Type \"help options all\" to list all the command-line options.",
"Type \"help option x\" to see the help message for option x.",
" ",
""
};

#ifndef NOHELP
#ifndef NOCMDL
int
dohopts() {
    int i, n, x, y, z, all = 0, msg = 0;
    char *s;
    extern char *opthlp[], *arghlp[];
    extern int optact[];
    if ((x = cmtxt("A command-line option character,\n\
or the word ALL, or carriage return for an overview",
                   "", &s, xxstring)) < 0)
      return(x);
    if (!*s)
      msg = 1;
    else if (!strcmp(s,"all") || (!strcmp(s,"ALL")))
      all = 1;
    else if (*s == '-')			/* Be tolerant of leading hyphen */
      s++;
    if (!all && (int)strlen(s) > 1) {
        printf("?A single character, please, or carriage to list them all.\n");
        return(-9);
    }
    if (all) {
        y = 33;
        z = 127;
    } else {
        y = *s;
        z = (y == 0) ? 127 : y;
        if (y == 0) y = 33;
    }
#ifdef CK_TTGWSIZ
#ifdef OS2
    ttgcwsz();
#else /* OS2 */
    /* Check whether window size changed */
    if (ttgwsiz() > 0) {
        if (tt_rows > 0 && tt_cols > 0) {
            cmd_rows = tt_rows;
            cmd_cols = tt_cols;
        }
    }
#endif /* OS2 */
#endif /* CK_TTGWSIZ */
    printf("\n");
    for (i = 0, n = 1; msg != 0 && *cmdlhlp[i]; i++) {
        printf("%s\n",cmdlhlp[i]);
       	if (++n > (cmd_rows - 3)) {
           if (!askmore())
             return(0);
           else
             n = 0;
        }
    }
    if (all) {
        printf("The following command-line options are available:\n\n");
        n += 2;
    }
    for (i = y; msg == 0 && i <= z; i++) {
        if (!opthlp[i])
          continue;
        if (arghlp[i]) {		/* Option with arg */
            printf(" -%c <arg>%s\n",(char)i,(optact[i]?" (action option)":""));

            printf("     %s\n",opthlp[i]);
            printf("     Argument: %s\n\n",arghlp[i]);
            x = 4;
        } else {			/* Option without arg */
            printf(" -%c  %s%s\n",
                   (char)i, opthlp[i],
                   (optact[i]?" (action option)":"")
                  );
            printf("     Argument: (none)\n\n");
            x = 3;
        }
        n += x;
    	if (n > (cmd_rows - x - 1)) {
            if (!askmore())
              return(0);
           else
              n = 0;
        }
    }
    return(0);
}
#endif /* NOCMDL */
#endif /* NOHELP */

int
dohlp(xx) int xx; {
    int x,y;
 
    debug(F101,"DOHELP xx","",xx);
    if (xx < 0) return(xx);

    switch (xx) {
 
#ifdef NOHELP

case XXHLP:
    if ((x = cmcfm()) < 0)
      return(x);
    printf("\n%s, Copyright (C) 1985, 1998,",versio);
    return(hmsga(tophlp));

#else /* help is available */

#ifndef NOSPL
case XXASS:				/* assign */
    return(hmsga(hxxass));

case XXASK:				/* ask */
    return(hmsga(hxxask));

case XXASKQ:
    return(hmsga(hxxaskq));

case XXAPC:
    return(hmsg("Syntax: APC text\n\
Echoes the text in the form of a VT220/320/420 Application Program Command.\n\
Use the APC command to send commands to MS-DOS Kermit 3.13 or later."));
#endif /* NOSPL */

#ifndef NOFRILLS
case XXBUG:
    return(hmsg("Describes how to get technical support."));
#endif /* NOFRILLS */

#ifndef NOSPL
case XXBEEP:
#ifdef OS2
    return(hmsg("Syntax: BEEP [ { ERROR, INFORMATION, WARNING } ]\n\
Generates a bell according to the current settings.  If SET BELL is set to\n\
\"system-sounds\" then the appropriate System Sound will be generated.\n\
Default is INFORMATION."));
#else /* OS2 */
    return(hmsg("Syntax: BEEP\n\
Sends a BEL character to your terminal."));
#endif /* OS2 */
#endif /* NOSPL */

case XXBYE:				/* BYE */
    return(hmsg(hmxxbye));
 
case XXCHK:				/* check */
    return(hmsg("\
Syntax: CHECK name\n\
Checks to see if the named feature is included in this version of C-Kermit.\n\
To list the features you can check, type \"check ?\"."));

#ifndef NOFRILLS
case XXCLE:				/* clear */
#ifdef OS2
    return(hmsg("\
Syntax: CLEAR [ { COMMAND-SCREEN, DEVICE, DEVICE-AND-INPUT, INPUT,\n\
                  SCROLLBACK, SEND-LIST, TERMINAL-SCREEN } ]\n\
COMMAND-SCREEN clears the current command screen\n\
DEVICE clears the current port or network input buffer\n\
DEVICE-AND-INPUT, the default, clears both the device and the INPUT buffer\n\
INPUT clears the INPUT command buffer\n\
SCROLLBACK empties the scrollback buffer including the current screen\n\
SEND-LIST clears the current SEND list (see ADD)\n\
TERMINAL-SCREEN clears the current screen a places it into the scrollback\n\
    buffer."));
#else /* not OS2 */    
    return(hmsg("\
Syntax: CLEAR [ { DEVICE, INPUT, DEVICE-AND-INPUT, DIAL-STATUS, SEND-LIST }\
 ]\n\
Clears the communications device input buffer, the INPUT command buffer,\n\
or both.  CLEAR SEND-LIST clears the SEND list (see ADD).  CLEAR DIAL-STATUS\n\
clears the \\v(dialstatus) variable.  The default is DEVICE-AND-INPUT."));
#endif /* OS2 */
#endif /* NOFRILLS */

case XXCLO:				/* close */
    return(hmsga(hmxxclo));
 
case XXCOM:				/* comment */
#ifndef STRATUS /* Can't use # for comments in Stratus VOS */
    return(hmsg("\
Syntax: COMMENT text\n\
Example: COMMENT - this is a comment.\n\n\
Introduces a comment.  Beginning of command line only.  Commands may also\n\
have trailing comments, introduced by ; or #."));
#else
    return(hmsg("\
Syntax: COMMENT text\n\
Example: COMMENT - this is a comment.\n\n\
Introduces a comment.  Beginning of command line only.  Commands may also\n\
have trailing comments, introduced by ; (semicolon)."));
#endif /* STRATUS */

#ifndef NOLOCAL
case XXCON:				/* CONNECT */
case XXCQ:				/* CQ == CONNECT /QUIETLY */
    hmsga(hmxxcon);
    printf("Your escape character is Ctrl-%c (ASCII %d, %s)\r\n",
	   ctl(escape), escape, (escape == 127 ? "DEL" : ccntab[escape]));
    return(0);
#endif /* NOLOCAL */
 
#ifdef ZCOPY
case XXCPY:
    return(hmsg("Syntax: COPY source destination\n\n\
Copy the file 'source' to 'destination'."));
#endif /* ZCOPY */

case XXCWD:				/* cd / cwd */
#ifdef vms
    return(hmsg("Syntax: CD [ directory or device:directory ]\n\
Change Working Directory, equivalent to VMS SET DEFAULT command"));
#else
#ifdef datageneral
    return(hmsg("Change Working Directory, equivalent to DG 'dir' command"));
#else
#ifdef OS2
  return(hmsg("Syntax: CD [ directoryname ]\n\
Change Directory.  If directoryname is not specified, changes to directory\n\
specified by HOME environment variable, if any."));
#else
    return(hmsg("Syntax: CD [ directoryname ]\n\
Change Directory.  \n\
If directory name omitted, changes to your home directory."));
#endif /* OS2 */
#endif /* datageneral */
#endif /* vms */
 
#ifndef NOSPL
case XXDCL:
    return(hmsg("Syntax:  DECLARE arrayname[size] [ initializers... ]\n\
Example: DECLARE \\&a[20]\n\n\
Declares an array of the given size.  Array elements can be used just like\n\
any other variables.  Initial values can be given."));

case XXDEF:				/* DEFINE */
    return(hmsga(hxxdef));

case XXUNDEF:				/* UNDEFINE */
    return(hmsg("Syntax:  UNDEFINE variable-name\n\
Undefines a macro or variable."));
#endif /* NOSPL */

#ifndef NOFRILLS
case XXDEL:				/* delete */
    return(hmsga(hmxxdel));
#endif /* NOFRILLS */
 
#ifndef NODIAL
case XXDIAL:				/* DIAL, etc... */
    return(hmsga(hxxdial));

case XXPDIA:				/* PDIAL */
    return(hmsg("Syntax: PDIAL phonenumber\n\n\
Partially dials a phone number.  Like DIAL but does not wait for carrier\n\
or CONNECT message."));

case XXRED:
    return(hmsg("Redial the number given in the most recent DIAL commnd."));

case XXANSW:				/* ANSWER */
    return(hmsga(hxxansw));

case XXLOOK:				/* LOOKUP number in directory */
    return(hmsga(hxxlook));
#endif /* NODIAL */
 
case XXDIR:				/* directory */
    return(hmsg("Syntax: DIRECTORY [ filespec ]\n\
Displays a directory listing of local files."));
 
#ifndef NOSERVER
#ifndef NOFRILLS
case XXDIS:
    return(hmsg("Syntax: DISABLE command\n\n\
Security for the C-Kermit server.  Prevents the client Kermit program from\n\
executing the named REMOTE command, such as CD, DELETE, RECEIVE, etc."));
#endif /* NOFRILLS */
#endif /* NOSERVER */

#ifndef NOSPL
case XXDO:				/* do */
    return(hmsg("Syntax: [ DO ] macroname [ arguments ]\n\n\
Executes a macro that was defined with the DEFINE command.  The word DO\n\
can be omitted.  Trailing argument words, if any, are automatically\n\
assigned to the macro argument variables \\%1 through \\%9."));
#endif /* NOSPL */

#ifndef NOSPL
case XXDEC:
    return(hmsga(hxxdec));
#endif /* NOSPL */

case XXECH:				/* echo */
    return(hmsg("Syntax: ECHO text\n\
Displays the text on the screen, followed by a line terminator.  The ECHO\n\
text may contain backslash codes.  Example: ECHO \\7Wake up!\\7")); 
 
case XXXECH:				/* xecho */
    return(hmsg("Syntax: XECHO text\n\
Just like ECHO but does not add a line terminator to the text.  See ECHO."));

#ifndef NOSERVER
#ifndef NOFRILLS
case XXENA:
    return(hmsg("Syntax: ENABLE capability\n\n\
For use with server mode.  Allows the client Kermit program access to the\n\
named capability, such as CD, DELETE, RECEIVE, etc.  Opposite of DISABLE."));
#endif /* NOFRILLS */
#endif /* NOSERVER */

#ifndef NOSPL
case XXEND:				/* end */
    return(hmsg("Syntax: END [ number [ message ] ]\n\
Exits from the current macro or TAKE file, back to wherever invoked from.\n\
Number is return code.  Message, if given, is printed."));

case XXEVAL:				/* evaluate */
    return(hmsga(hmxxeval));
#endif /* NOSPL */

#ifndef NOFRILLS
case XXERR:				/* e-packet */
    return(hmsg("Syntax: E-PACKET\n\
Sends an Error packet to the other Kermit."));
#endif /* NOFRILLS */

case XXEXI:				/* exit */
case XXQUI:
    return(hmsg("Syntax: QUIT (or EXIT) [ number ]\nExits \
from the Kermit program, closing all open files and devices, optionally\n\
setting the program's return code to the given number.  Also see SET EXIT."));
 
case XXFIN:
    return(hmsg("Syntax: FINISH\n\
Tells the remote Kermit server to shut down without logging out."));
 
#ifndef NOSPL
  case XXFOR:
    return(hmsga(forhlp));
#endif /* NOSPL */

  case XXGET:
    return(hmsga(hmxxget));
  case XXMGET:
    return(hmsga(hmxxmget));
 
#ifndef NOSPL
#ifndef NOFRILLS
  case XXGOK:
    return(hmsg("Syntax: GETOK prompt\n\
Print the prompt, make user type 'yes', 'no', or 'ok', and set SUCCESS or\n\
FAILURE accordingly."));
#endif /* NOFRILLS */
#endif /* NOSPL */

#ifndef NOSPL
  case XXGOTO:
    return(hmsg("Syntax: GOTO label\n\
In a TAKE file or macro, go to the given label.  A label is a word on the\n\
left margin that starts with a colon (:).  Example:\n\n\
:oofa\n\
echo Hello!\n\
goto oofa"));
#endif /* NOSPL */

  case XXHAN:
    return(hmsg("Syntax: HANGUP\n\
Hang up the phone or network connection."));    

  case XXHLP:
/*
  We get confirmation here, even though we do it again in hmsga(), to prevent
  the Copyright message from being printed prematurely.  This doesn't do any
  harm, because the first call to cmcfm() sets cmflgs to 1, making the second
  call return immediately.
*/
    if ((x = cmcfm()) < 0)
      return(x);
    printf("\n%s, Copyright (C) 1985, 1998,",versio);
    return(hmsga(tophlp));

case XXINT:
    return(hmsg("Give a brief introduction to C-Kermit."));	

#ifndef NOSPL
case XXIF:
    return(hmsga(ifhlp));

case XXINC:
    return(hmsga(hxxinc));

case XXINP:
   return(hmsga(hxxinp));
#endif /* NOSPL */

#ifdef CK_MINPUT
case XXMINP:
    return(hmsga(hmxxminp));
#endif /* CK_MINPUT */

#ifndef NOSPL
case XXREI:
    return(hmsg("Syntax: REINPUT n string\n\n\
Look for the string in the text that has recently been INPUT, set SUCCESS\n\
or FAILURE accordingly.  Timeout, n, must be specified but is ignored."));
#endif /* NOSPL */

#ifndef NOFRILLS
case XXREN:
    return(hmsg("Syntax: RENAME oldname newname\n\n\
Change the name of file 'oldname' to 'newname'."));
#endif /* NOFRILLS */

#ifndef NOSPL
case XXLBL:
    return(hmsg("\
Introduce a label, like :loop, for use with GOTO in TAKE files or macros.\n\
See GOTO."));
#endif /* NOSPL */

case XXLOG:
    return(hmsga(hmxxlg));
 
#ifndef NOSCRIPT
case XXLOGI:
    return(hmsga(hmxxlogi));
#endif
 
#ifndef NOFRILLS
case XXMAI:
    return(hmsg("Syntax: MAIL filename address\n\n\
Send the file to the remote Kermit, which must be in RECEIVE or SERVER mode,\n\
and request that the remote host deliver the file as electronic mail to the\n\
given address.  Example: MAIL BUG.TXT KERMIT-SUPPORT@KERMIT.COLUMBIA.EDU"));
#endif /* NOFRILLS */

#ifndef NOMSEND
case XXMSE:
    return(hmsga(hmxxmse));

case XXADD:
    return(hmsga(hmxxadd));

case XXMMOVE:
    return(hmsg("MMOVE is exactly like MSEND, except each file that is\n\
sent successfully is deleted after it is sent."));
#endif /* NOMSEND */

#ifndef NOSPL
case XXOPE:
    return(hmsga(openhlp));
#endif /* NOSPL */

case XXNEW:
    return(hmsg(
" Print news of new features since publication of \"Using C-Kermit\"."));

case XXUPD:
    return(hmsg(
" New features are described in the file DOCS\\UPDATES.TXT."));

#ifndef NOSPL
case XXOUT:
    return(hmsga(hxxout));
#endif /* NOSPL */

#ifdef ANYX25
#ifndef IBMX25
case XXPAD:
    return(hmsga(hxxpad));
#endif /* IBMX25 */
#endif /* ANYX25 */

#ifndef NOSPL
case XXPAU:
    return(hmsga(hxxpau));

case XXMSL:
    return(hmsga(hxxmsl));
#endif /* NOSPL */

#ifdef TCPSOCKET
case XXPNG:
    return(hmsg("Syntax: PING [ IP-hostname-or-number ]\n\n\
Check if given IP network host is reachable.  Default host is from most\n\
recent SET HOST or TELNET command.  Runs system PING program, if any."));

case XXFTP:
    return(hmsg("Syntax: FTP [ IP-hostname-or-number ]\n\n\
Make an FTP connection to the given IP host or, if no host specified, to the\n\
current host.  Uses the system's FTP program, if any.\n"));
#endif /* TCPSOCKET */

#ifndef NOFRILLS
case XXPRI:
#ifdef UNIX
    return(hmsg("Syntax: PRINT file [ options ]\n\n\
Print the local file on a local printer with the given options.  Also see\n\
HELP SET PRINTER."));
#else
#ifdef VMS
    return(hmsg("Syntax: PRINT file [ options ]\n\n\
Print the local file on a local printer with the given options.  Also see\n\
HELP SET PRINTER."));
#else
    return(hmsg("Syntax: PRINT file\n\n\
Print the local file on a local printer.  Also see HELP SET PRINTER."));
#endif /* UNIX */
#endif /* VMS */
#endif /* NOFRILLS */

case XXPWD:
    return(hmsg("Syntax: PWD\n\
Print the name of the current working directory."));

#ifndef NOSPL
case XXREA:
    return(hmsg("Syntax: READ variablename\n\
Read a line from the currently open READ or !READ file into the variable\n\
(see OPEN)."));
#endif /* NOSPL */

case XXREC:
    return(hmsga(hmxxrc));
 
case XXREM:
    y = cmkey(remcmd,nrmt,"Remote command","",xxstring);
    return(dohrmt(y));
 
#ifndef NOSPL
case XXRET:
    return(hmsg("Syntax: RETURN [ value ]\n\
Return from a macro.  An optional return value can be given for use with\n\
with \\fexecute(macro), which allows macros to be used like functions."));
#endif /* NOSPL */
case XXSEN:
    return(hmsga(hmxxsen));
case XXMOVE:
    return(hmsg("MOVE is exactly like SEND, except each file that is\n\
sent successfully is deleted after it is sent."));
#ifndef NORESEND
case XXRSEN:
    return(hmsg(hmxxrsen));
case XXREGET:
    return(hmsg(hmxxrget));
case XXPSEN:
    return(hmsg(hmxxpsen));
#endif /* NORESEND */
 
#ifndef NOSERVER
case XXSER:
    return(hmsg(hmxxser));
#endif /* NOSERVER */
 
#ifndef NOJC
case XXSUS:
    return(hmsg("Syntax: SUSPEND or Z\n\
Suspend Kermit.  Continue Kermit with the appropriate system command,\n\
such as fg."));
#endif /* NOJC */

case XXSET:
    y = cmkey(prmtab,nprm,"Parameter","",xxstring);
    debug(F101,"HELP SET y","",y);
    return(dohset(y));
 
#ifndef NOPUSH
case XXSHE:
    if (nopush) {
        if ((x = cmcfm()) < 0) return(x);
        printf("Sorry, help not available for \"%s\"\n",cmdbuf);
        break;
    } else
       return(hmsga(hxxshe));
#ifdef CK_REDIR
case XXFUN:
    return(hmsg("Syntax: REDIRECT command\n\
Run the given local command with its standard input and output redirected\n\
to the current SET LINE or SET HOST communications path.\n\
Synonym: < (Left angle bracket)."));
#endif /* CK_REDIR */

#ifdef CK_REXX
case XXREXX:
    return(hmsg("Syntax: REXX text\n\
The text is a Rexx command to be executed. The \\v(rexx) variable is set to\n\
the Rexx command's return value.\n\
To execute a rexx program file, use:  REXX call <filename>\n\
Rexx programs may call C-Kermit functions by placing the C-Kermit command in\n\
single quotes.  For instance:  'set parity none'."));
#endif /* CK_REXX */
#endif /* NOPUSH */
 
#ifndef NOSHOW
case XXSHO:
    return(hmsg("\
Display current values of various items (SET parameters, variables, etc).\n\
Type SHOW ? for a list of categories."));
#endif /* NOSHOW */
 
case XXSPA:
#ifdef datageneral
    return(hmsg("\
Display disk usage in current device, directory,\n\
or return space for a specified device, directory."));
#else
    return(hmsg("Syntax: SPACE\n\
Display disk usage in current device and/or directory"));
#endif
 
case XXSTA:
    return(hmsg("Syntax: STATISTICS [/BRIEF]\n\
Display statistics about most recent file transfer"));
 
#ifndef NOSPL
case XXSTO:
    return(hmsg("Syntax: STOP [ number [ message ] ]\n\
Stop executing the current macro or TAKE file and return immediately to\n\
the C-Kermit prompt.  Number is a return code.  Message printed if given."));
#endif /* NOSPL */

case XXTAK:
    return(hmsg("Syntax: TAKE filename\n\
Take Kermit commands from the named file.  Kermit command files may\n\
themselves contain TAKE commands, up to a reasonable depth of nesting."));
 
#ifdef TCPSOCKET
case XXTEL:
    return(hmsg("Syntax: TELNET [ host [ service ] ]\n\
Equivalent to SET NETWORK TYPE TCP/IP, SET HOST host [ service ], followed\n\
by CONNECT.  If host is omitted, previous connection (if any) is resumed.\n\
HELP SET TELNET for more info."));

#ifdef RLOGCODE
case XXRLOG:
    return(hmsg("Syntax: RLOGIN [ host [ username ] ]\n\
Makes an interactive connection to the host using RLOGIN protocol.\n\
If host is omitted, previous connection (if any) is resumed."));
#endif /* RLOGCODE */
#endif /* TCPSOCKET */

#ifndef NOXMIT
case XXTRA:
    return(hmsga(hxxxmit));
#endif /* NOXMIT */

#ifndef NOFRILLS
case XXTYP:
    return(hmsg("Syntax: TYPE file\n\
Display a file on the screen.  Pauses if you type Ctrl-S, resumes if you\n\
type Ctrl-Q, returns immediately to C-Kermit prompt if you type Ctrl-C."
));
#endif /* NOFRILLS */

#ifndef NOSPL
case XXWHI:
    return(hmsga(whihlp));

case XXSWIT:
    return(hmsga(swihlp));
#endif /* NOSPL */

#ifndef NOCSETS
case XXXLA:
    return(hmsga(hxxxla));
#endif /* NOCSETS */

case XXVER:
    return(hmsg("Syntax: VERSION\nDisplays the program version number."));

#ifndef NOSPL
case XXWAI:
    return(hmsga(hxxwai));
#endif /* NOSPL */

#ifndef NOFRILLS
case XXWHO:
    return(hmsg("Syntax: WHO [ user ]\nDisplays info about the user."));

case XXWRI:
    return(hmsga(hxxwri));

case XXWRL:
    return(hmsg(
"WRITE-LINE (WRITELN) is just like WRITE, but includes a line terminator\n\
at the end of text.  See WRITE."));
#endif /* NOFRILLS */

#ifndef NOSPL
case XXIFX:
    return(hmsga(ifxhlp));

case XXGETC:				/* GETC */
    return(hmsga(hxxgetc));

case XXFWD:				/* FORWARD */
    return(hmsg(
"Like GOTO, but searches only forward for the label.  See GOTO."));

case XXLOCAL:				/* LOCAL */
    return(hmsg(
"Declares a variable to be local to the current macro or command file."));
#endif /* NOSPL */

case XXVIEW:
    return(hmsg(
"View the terminal emulation screen even when there is no connection.\n"));

case XXASC:
    return(hmsg("Synonym for SET FILE TYPE TEXT.\n"));

case XXBIN:
    return(hmsg("Synonym for SET FILE TYPE BINARY.\n"));

case XXDATE:
    return(hmsg("Prints the current date and time.\n"));

case XXRETR:
    return(hmsg(
"Just like GET but asks the server to delete each file that has been\n\
sent successfully.\n"));

case XXEIGHT:
    return(hmsg(
"Equivalent to SET PARITY NONE, SET COMMAND BYTE 8, SET TERMINAL BYTE 8.\n"));

case XXSAVE:
    return(hmsg("Syntax: SAVE KEYMAP <file>\n\
Saves current keymap definitions to file, \"keymap.ini\" by default.")); 

#ifndef NOFRILLS
#ifndef NOPUSH
case XXEDIT:
    return(hmsg("Syntax: EDIT [ <file> ]\n\
Starts your preferred editor on the given file, or if none given, the most\n\
recently edited file, if any.  Also see SET EDITOR."));
#endif /* NOPUSH */
#endif /* NOFRILLS */

#ifdef BROWSER
case XXBROWS:
    return(hmsg("Syntax: BROWSE [ <url> ]\n\
Starts your preferred Web browser on the given URL, or if none given, the\n\
most recently visited URL, if any.  Also see SET BROWSER."));
#endif /* BROWSER */

#ifdef CK_TAPI
case XXTAPI:
    return(hmsga(hxxtapi));
#endif /* CK_TAPI */

#ifdef PIPESEND
case XXCSEN:
    return(hmsg("Syntax: CSEND [ switches ] <command> [ <as-name> ]\n\
Sends from the given <command> rather than from a file.  Equivalent to\n\
SEND /COMMAND; see HELP SEND for details."));

case XXCREC:
    return(hmsg("Syntax: CRECEIVE [ switches ] <command>\n\
Receives to the given <command> rather than to a file.  Equivalent to\n\
RECEIVE /COMMAND; see HELP RECEIVE for details."));

case XXCGET:
    return(hmsg("Syntax: CGET <remote-file-or-command> <local-command>\n\
Equivalent to GET /COMMAND; see HELP GET for details."));
#endif /* PIPESEND */

#ifndef NOSPL
case XXFUNC:
    y = cmkey(fnctab,nfuncs,"Name of function without \\f","",xxstring);
    return(dohfunc(y));
#endif /* NOSPL */

#ifndef NOCMDL
case XXOPTS:				/* Command-line options */
    return(dohopts());
#endif /* NOCMDL */

#ifdef OS2
#ifndef NOKVERBS
case XXKVRB:
    y = cmkey(kverbs,nkverbs,"Name of keyboard verb without \\k","",xxstring);
    return(dohkverb(y));
#endif /* NOKVERBS */
#endif /* OS2 */

case XXKERMI:
    return(hmsg("Syntax: KERMIT [command-line-options]\n\
  Lets you give command-line options at the prompt or in a script.\n\
  HELP OPTIONS for more info."));

case XXBACK:
    return(hmsg("Syntax: BACK\n  Returns to your previous directory."));

case XXWHERE:
    return(hmsg("Syntax: WHERE\n  Tells you where your file went."));

case XXREMV:
    return(hmsga(hmxxremv));

#ifdef CK_KERBEROS
case XXAUTH:
    return(hmsga(hmxxauth));
#endif /* CK_KERBEROS */

#ifdef NETCMD
case XXPIPE:
    return(hmsg("Syntax: PIPE [ command ]\n\
Makes a connection through the program whose command line is given. Example:\n\
\n pipe rlogin xyzcorp.com"));
#endif /* NETCMD */

#endif /* NOHELP */

default: {
        char *s; 
        if ((x = cmcfm()) < 0) return(x);
        s = cmdbuf + (int)strlen(cmdbuf) -1;
        while (s >= cmdbuf && *s == SP)
          *s-- = NUL;
        while (s >= cmdbuf && *s != SP)
          s--;
        while (*s == SP) s++;
        printf("Sorry, help not available for \"%s\"\n",s);
        break;
      }
    } /* switch */
    return(success = 0);
}

/*  H M S G  --  Get confirmation, then print the given message  */
 
int
hmsg(s) char *s; {
    int x;
    if ((x = cmcfm()) < 0) return(x);
    printf("\n%s\n\n",s);
    return(0);
}

#ifdef NOHELP 

int					/* Print an array of lines, */
hmsga(s) char *s[]; {			/* cheap version. */
    int i;
    if ((i = cmcfm()) < 0) return(i);
    printf("\n");			/* Start off with a blank line */
    for (i = 0; *s[i]; i++) {		/* Print each line. */
	printf("%s\n",s[i]);
    }
    printf("\n");
    return(0);
}

#else /* NOHELP not defined... */

int					/* Print an array of lines, */
hmsga(s) char *s[]; {			/* pausing at end of each screen. */
    int x, y, i, j, k, n;
    if ((x = cmcfm()) < 0) return(x);

#ifdef CK_TTGWSIZ
#ifdef OS2
    ttgcwsz();
#else /* OS2 */
    /* Check whether window size changed */
    if (ttgwsiz() > 0) {
        if (tt_rows > 0 && tt_cols > 0) {
            cmd_rows = tt_rows;
            cmd_cols = tt_cols;
        }
    }
#endif /* OS2 */
#endif /* CK_TTGWSIZ */

    printf("\n");			/* Start off with a blank line */
    n = 1;				/* Line counter */
    for (i = 0; *s[i]; i++) {
	printf("%s\n",s[i]);		/* Print a line. */
        y = (int)strlen(s[i]);
        k = 1;
        for (j = 0; j < y; j++)		/* See how many newlines were */
          if (s[i][j] == '\n') k++;	/* in the string... */
        n += k;
	if (n > (cmd_rows - 3) && *s[i+1]) /* After a screenful, give them */
          if (!askmore()) return(0);	/* a "more?" prompt. */
          else n = 0;
    }
    printf("\n");
    return(0);
}
 
#ifndef NOXMIT
static char *hsetxmit[] = {
"Syntax: SET TRANSMIT (or SET XMIT) parameter value\n",
"Controls the behavior of the TRANSMIT command, used for uploading files",
"to computers that don't have Kermit programs.  Parameters are:\n",
" ECHO ON/OFF:     Whether to echo text as it is being transmitted.",
" EOF text:        Text to send after end of file is reached.",
" FILL number:     ASCII value of character to insert into blank lines.",
" LINEFEED ON/OFF: Transmit LF as well as CR at the end of each line.",
"                  Normally, only CR is sent.",
" LOCKING-SHIFT ON/OFF: Whether to use SO/SI for transmitting 8-bit data",
"                  when PARITY is not NONE.",
" \
PAUSE number:    How many milliseconds to pause after transmitting each line",
"                  (text mode), or each character (binary mode).",
" PROMPT number:   ASCII value of character to look for from host before",
"                  sending next line when TRANSMITting in text mode; normally",
"                  10 (linefeed).  0 means none; don't wait for a prompt.",
" TIMEOUT number:  Number of seconds to wait for each character to echo when",
"                  TRANSMIT ECHO is ON or TRANSMIT PROMPT is not 0.  If 0 is",
"                  specified, this means wait indefinitely for each echo.",
"" };
#endif /* NOXMIT */

static char *hsetbkg[] = {
"Syntax: SET BACKGROUND { OFF, ON }\n",
"SET BACKGROUND OFF forces prompts and messages to appear on your screen",
"even though Kermit thinks it is running in the background.", "" };

#ifdef DYNAMIC
static char *hsetbuf[] = {
"Syntax: SET BUFFERS n1 [ n2 ]\n",
"Change the overall amount of memory allocated for SEND and RECEIVE packet",
"buffers, respectively.  Bigger numbers let you have longer packets and more",
"window slots.  If n2 is omitted, the same value as n1 is used.",
"" };
#endif /* DYNAMIC */

static char *hsetcmd[] = {
"Syntax: SET COMMAND parameter value\n",
"SET COMMAND BYTESIZE { 7, 8 }",
"  Informs C-Kermit of the bytesize of the communication path between itself",
"  and your keyboard and screen.  7 is assumed.  SET COMMAND BYTE 8 to allow",
"  entry and display of 8-bit characters.\n",
#ifdef OS2
"SET COMMAND COLOR <foreground-color> <background-color>",
"  Choose colors for Command screen.  Use ? to get lists of available \
colors.\n",
#endif /* OS2 */

"SET COMMAND HEIGHT <number>",
"  Informs C-Kermit of the number of rows in your command screen for the",
"  purposes of More?-prompting.\n",

"SET COMMAND WIDTH <number>",
"  Informs C-Kermit of the number of characters across your screen for",
"  purposes of screen formatting.\n",

"SET COMMAND MORE-PROMPTING { ON, OFF }",
"  ON (the default) enables More?-prompting when C-Kermit needs to display",
"  text that does not fit vertically on your screen.  OFF allows the text to",
"  scroll by without intervention.  If your command window has scroll bars,",
"  you might prefer OFF.\n",

#ifdef CK_RECALL
"SET COMMAND RECALL-BUFFER-SIZE number",
"  How big you want C-Kermit's command recall buffer to be.  By default, it",
"  holds 10 commands.  You can make it any size you like, subject to memory",
"  constraints of the computer.  A size of 0 disables command recall.",
"  Whenever you give this command, previous command history is lost.",
#endif /* CK_RECALL */
"\nSET COMMAND QUOTING { ON, OFF }",
"  Whether to treat backslash and question mark as special characters (ON),",
"  or as ordinary data characters (OFF) in commands.  ON by default.",
#ifdef CK_RECALL
"\nSET COMMAND RETRY { ON, OFF }",
"  Whether to reprompt you with the correct but incomplete portion of a",
"  syntactically incorrect command.  ON by default.",
#endif /* CK_RECALL */
#ifdef OS2
"SET COMMAND SCROLLBACK <lines> sets size of virtual Command screen buffer.",
"<lines> includes the active Command screen.  The minimum is 256.  The",
"maximum is 2 million.  The default is 512.\n",
#endif /* OS2 */
"\nUse SHOW COMMAND to display these settings.",
"" };

#ifndef NOLOCAL
static char *hsetcar[] = {
"Syntax: SET CARRIER-WATCH { AUTO, OFF, ON }",
" ",
"Attempts to control treatment of carrier (the Data Carrier Detect signal)",
"on serial communication (SET LINE or SET PORT) devices.  ON means that",
"carrier is required at all times.  OFF means that carrier is never required.",
"AUTO (the default) means that carrier is required at all times except during",
"the DIAL command.  Correct operation of carrier-watch depends on the",
"capabilities of the underlying OS, drivers, devices, and cables.  If you",
"need to CONNECT to a serial device that is not asserting carrier, and",
"C-Kermit won't let you, use SET CARRIER-WATCH OFF.  Use SHOW COMMUNICATIONS",
"to display the CARRIER-WATCH setting.",
"" };
#endif /* NOLOCAL */

static char *hsetat[] = {
"Syntax: SET ATTRIBUTES name ON or OFF\n",
"Use this command to enable (ON) or disable (OFF) the transmission of",
"selected file attributes along with each file, and to handle or ignore",
"selected incoming file attributes, including:\n",
#ifndef NOCSETS
"  CHARACTER-SET:  The transfer character set for text files",
#endif /* NOCSETS */
"  DATE:           The file's creation date",
"  DISPOSITION:    Unusual things to do with the file, like MAIL or PRINT",
"  LENGTH:         The file's length",
"  SYSTEM-ID:      Machine/Operating system of origin",
"  TYPE:           The file's type (text or binary)\n",
"You can also specify ALL to select all of them.  Examples:\n",
"  SET ATTR DATE OFF\n  SET ATTR LENGTH ON\n  SET ATTR ALL OFF", ""
};

static char *hxytak[] = {
"Syntax: SET TAKE parameter value\n",
"Controls behavior of TAKE command.\n",
"SET TAKE ECHO { ON, OFF } tells whether commands read from a TAKE file",
"should be displayed on the screen.\n",
"SET TAKE ERROR { ON, OFF } tells whether a TAKE command file should be",
"automatically terminated when a command fails.  This setting is local to",
"the current command file, and inherited by subordinate command files.",
 "" };

#ifndef NOLOCAL
#ifdef OS2MOUSE
static char *hxymouse[] = {
"Syntax: SET MOUSE ACTIVATE { ON, OFF }",
"Enables or disables the mouse in Connect mode.  Default is ON\n",
"Syntax: SET MOUSE BUTTON <number> <key-modifier> <action> [ <text> ]",
"where:",
"<number> is the mouse button number, 1, 2, or 3;",
"<key-modifier> denotes modifier keys held down during the mouse event:\n",
"  ALT, ALT-SHIFT, CTRL, CTRL-ALT CTRL-ALT-SHIFT, CTRL-SHIFT, SHIFT, or NONE;",
"\nand <action> is the mouse action, CLICK, DRAG, or DOUBLE-CLICK\n.",
"The <text> has exactly the same properties as the <text> from the SET KEY",
"command -- it can be a character, a string, one or more Kverbs, a macro",
"invoked as a Kverb, or any combination of these.  Thus, anything that can be",
"assigned to a key can also be assigned to the mouse -- and vice versa.  If",
"the <text> is omitted, the action will be ignored.  Examples:\n",
"  SET MOUSE BUTTON 1 NONE DOUBLE \\KmouseCurPos",
"  SET MOU B 2 SHIFT CLICK help\13\n",
"DRAG operations perform a \"mark mode\" selection of Text. You should assign",
"only the following actions to drag operations:",
"  \\Kdump         - copy marked text to printer (or file)",
"  \\Kmarkcopyclip - copy marked text to PM Clipboard",
"  \\Kmarkcopyhost - copy marked text direct to Host",
"  \\Kmousemark    - mark text, no copy operation performed\n",
"The following Kverb is only for use with the mouse:\n",
"  \\KmouseCurPos",
"which represents the mouse-directed terminal cursor feature.\n",
"Syntax: SET MOUSE CLEAR",
"Restores all mouse events to their default definitions",
"  Button 1 Double-Click = Kverb: \\Kmousecurpos",
"  Button 1 Drag         = Kverb: \\Kmarkcopyclip",
"  Button 1 Ctrl Drag    = Kverb: \\Kmarkcopyhost",
"  Button 2 Double-Click = Kverb: \\Kpaste",
" ",
"Type UPDATES MOUSE at the C-Kermit> prompt for details.",
""};
#endif /* OS2MOUSE */

static char *hxyterm[] = {
"Syntax: SET TERMINAL parameter value\n",
#ifdef OS2
"SET TERMINAL TYPE { ANSI, VT52, VT100, VT102, VT220, VT320, ... }",
"to select emulation.  Type SET TERMINAL TYPE ? to see a complete list.\n",
"SET TERMINAL ANSWERBACK { OFF, ON }",
"disables/enables the ENQ/Answerback sequence (\"K-95 version term-type\").\n",
"SET TERMINAL ANSWERBACK MESSAGE <extension>",
"allows you to specify an extension to the default answerback message.\n",
#else
"SET TERMINAL TYPE ...",
"This command is not available because this version of C-Kermit does not",
"include a terminal emulator.  Instead, it is a \"semitransparent pipe\"",
"(or a totally transparent one, if you configure it that way) to the computer",
"or service you have made a connection to.  Your console, workstation window,",
"or the terminal emulator or terminal from which you are running C-Kermit",
"provides the emulation.\n",
#endif /* OS2 */
#ifdef CK_APC
"SET TERMINAL APC { ON, OFF, UNCHECKED }",
#ifdef OS2
"controls execution of Application Program Commands sent by the host while",
"K-95 is either in CONNECT mode or processing INPUT commands.  ON allows",
"execution of \"safe\" commands and disallows potentially dangerous commands",
"such as DELETE, RENAME, OUTPUT, and RUN.  OFF prevents execution of APCs.",
"UNCHECKED allows execution of all APCs.  OFF is the default.\n",
#else /* OS2 */
"controls execution of Application Program Commands sent by the host while",
"C-Kermit is in CONNECT mode.  ON allows execution of \"safe\" commands and",
"disallows potentially dangerous commands such as DELETE, RENAME, OUTPUT, and",
"RUN.  OFF prevents execution of APCs.  UNCHECKED allows execution of all",
"APCs.  OFF is the default.\n",
#endif /* OS2 */
#endif /* CK_APC */
#ifdef OS2
"SET TERMINAL ARROW-KEYS { APPLICATION, CURSOR }",
"sets the mode for the arrow keys during VT terminal emulation.\n", 
"SET TERMINAL ATTRIBUTE { BLINK, PROTECTED, REVERSE, UNDERLINE }",
"determines how attributes are displayed by Kermit-95\n",
"SET TERMINAL ATTRIBUTE { BLINK, REVERSE, UNDERLINE } { ON, OFF }",
"Determines whether real Blinking, Reverse, and Underline are used in the",
"terminal display.  When BLINK is turned OFF, reverse background intensity is",
"used.  When REVERSE and UNDERLINE are OFF, the colors selected with SET",
"TERMINAL COLOR { REVERSE,UNDERLINE } are used instead.  This command affects",
"the entire current screen and the entire terminal scrollback buffer.\n",
"SET TERMINAL ATTRIBUTE PROTECTED {[BOLD, DIM, INVISIBLE, NORMAL, REVERSE,",
"  UNDERLINED], ... }",
"is used to set the attributes used to represent Protected text in Wyse",
"and Televideo terminal emulations.  Any combination of attributes may be",
"used. (Default is DIM.)\n",
#endif /* OS2 */

#ifdef OS2
#ifdef CK_XYZ
"SET TERMINAL AUTODOWNLOAD { ON, OFF }",
"enables/disables automatic switching into file-transfer mode when a Kermit",
"or ZMODEM file transfer has been detected during CONNECT mode or while",
"an INPUT command is active.  Default is OFF.\n",
#else
"SET TERMINAL AUTODOWNLOAD { ON, OFF }",
"enables/disables automatic switching into file-transfer mode when a Kermit",
"file transfer has been detected during CONNECT mode or while an INPUT",
"command is active.  Default is OFF.\n",
#endif /* CK_XYZ */
#ifdef CK_XYZ
"SET TERM... AUTO... { KERMIT, ZMODEM } C0-CONFLICTS { IGNORED, PROCESSED }",
"determines whether the active terminal emulator should process or ignore C0",
"control characters which are also used for the specified file transfer",
"protocol.  Kermit by default uses ^A <SOH> and Zmodem uses ^X <CAN>.",
"Default is PROCESSED.\n",
"SET TERM... AUTO... { KERMIT, ZMODEM } DETECTION-METHOD { PACKET, STRING }",
"determines whether the specified file transfer protocol should be detected",
"by looking for valid packets or by identifying a specified text string.",
"Default is PACKET.\n",
"SET TERM... AUTO... { KERMIT, ZMODEM } STRING <text>",
"allows you to assign an autodownload detection string for use with the",
"specified file transfer protocol.",
"Default for Kermit is \"READY TO SEND...\", for Zmodem is \"rz\\{13}\".\n",
#else /* CK_XYZ */
"SET TERM... AUTO... KERMIT C0-CONFLICTS { IGNORED, PROCESSED }",
"determines whether the active terminal emulator should process or ignore C0",
"control characters which are also used for the specified file transfer",
"protocol.  Kermit by default uses ^A <SOH>.  Default is PROCESSED.\n",
"SET TERM... AUTO... KERMIT DETECTION-METHOD { PACKET, STRING }",
"determines whether the specified file transfer protocol should be detected",
"by looking for valid packets or by identifying a specified text string.",
"Default is PACKET.\n",
"SET TERM... AUTO... KERMIT STRING <text>",
"allows you to assign an autodownload detection string for use with the",
"specified file transfer protocol.  Default is \"READY TO SEND...\".\n",
#endif /* CK_XYZ */
#else /* OS2 */
"SET TERMINAL AUTODOWNLOAD { ON, OFF }",
"enables/disables automatic switching into file-transfer mode when a valid",
#ifdef CK_XYZ
"Kermit or ZMODEM packet of the appropriate type is received during CONNECT",
"mode.  Default is OFF.\n",
#else
"Kermit packet of the appropriate type is received during CONNECT mode.",
"Default is OFF.\n",
#endif /* CK_XYZ */
#endif /* OS2 */

#ifdef OS2
"SET TERMINAL BELL { AUDIBLE, VISIBLE, NONE }",
"specifies how Control-G (bell) characters are handled.  AUDIBLE means",
"a beep is sounded; VISIBLE means the screen is flashed momentarily.\n",
"This command has been superseded by SET BELL.\n",
#endif /* OS2 */

"SET TERMINAL BYTESIZE 7 or 8, to use 7- or 8-bit terminal characters",
"between C-Kermit and the remote computer or service during CONNECT.\n",

#ifndef NOCSETS
#ifdef OS2
"SET TERMINAL CHARACTER-SET",
    "  see SET TERMINAL { LOCAL-CHARACTER-SET, REMOTE-CHARACTER-SET }\n",
#else  /* not OS2 */
"SET TERMINAL CHARACTER-SET <remote-cs> [ <local-cs> ]",
"to specify the character set used by the remote host, <remote-cs>, and the",
"character set used by C-Kermit locally, <local-cs>.  If you don't specify",
"the local character set, the current FILE CHARACTER-SET is used.  When",
"you specify two different character sets, C-Kermit translates between them",
"during CONNECT.  By default, both character sets are TRANSPARENT, and",
"no translation is done.\n",
#endif /* OS2 */
#endif /* NOCSETS */

#ifdef OS2
"SET TERMINAL CODE-PAGE <number> lets you change the PC code page.  Only",
"works for code pages that are successfully prepared in CONFIG.SYS.  Use",
"SHOW TERMINAL to display the current code page and the available code pages.",
#ifdef OS2ONLY
"See also SET TERMINAL FONT if the desired code page in not available in",
"your version of OS/2.\n",
#endif /* OS2ONLY */
#endif /* OS2 */

#ifdef OS2
#ifndef NT
"SET TERMINAL COLOR BORDER <foreground>",
#endif /* NT */
"SET TERMINAL COLOR <screenpart> <foreground> <background>, to set",
"the colors of the terminal emulation screen.  <screenpart> may be one of:",
"DEBUG, HELP-TEXT, REVERSE, SELECTION, STATUS-LINE, TERMINAL-SCREEN, or",
"UNDERLINED-TEXT.",
"<foreground> and <background> may be one of: BLACK, BLUE, GREEN, CYAN, RED",
"MAGENTA, BROWN, LGRAY, DGRAY, LBLUE, LGREEN, LCYAN, LRED, LMAGENTA, YELLOW",
"or WHITE.  The L prefix for the color names means Light.\n",
"SET TERMINAL CONTROLS { 7, 8 } to specify whether or not C1 control",
"characters (CSI and SS3) should be used when communicating with the host.\n"

"SET TERMINAL COLOR ERASE { CURRENT-COLOR, DEFAULT-COLOR }",
"Determines whether the current color as set by the host or the default color",
"as set by the user (SET TERMINAL COLOR TERMINAL) is used to clear the screen",
"when erase commands are received from the host.\n",

"SET TERMINAL COLOR RESET-ON-ESC[0m { CURRENT-COLOR, DEFAULT-COLOR }",
"Determines whether the current color or the default color is used after",
"an ESC [ 0 m (\"reset attributes\") command sequence is received from the",
"host.\n",

"SET TERMINAL CONTROLS { 7, 8 }",
"Determines whether VT220/320 or Wyse 370 function keys, arrow keys, etc,",
"that generate ANSI-format escape sequences should send 8-bit control",
"characters or 7-bit escape sequences.\n",
#endif /* OS2 */

"SET TERMINAL CR-DISPLAY { CRLF, NORMAL } to specify how incoming",
"carriage return characters are to be displayed on your screen.\n",

#ifdef OS2
"SET TERMINAL CURSOR { FULL, HALF, UNDERLINE } selects cursor style.\n",
#endif /* OS2 */

"SET TERMINAL DEBUG { ON, OFF } controls terminal session debugging.\n",

"SET TERMINAL ECHO { LOCAL, REMOTE } specifies which side does the echoing",
"during terminal connection.\n",

"SET TERMINAL ESCAPE-CHARACTER { ENABLED, DISABLED } turns on/off the ability",
"to escape back from CONNECT mode using the SET ESCAPE character.",
#ifdef OS2
"If you disable it you can still get back using Alt-key combinations as shown",
"in the status line.",
#else
"If you disable it, Kermit returns to its prompt only if the connection is",
"closed by the other end.  USE WITH EXTREME CAUTION.",
#endif /* OS2 */
"Also see HELP SET ESCAPE.",
" ", 

#ifdef OS2
#ifdef OS2ONLY
"SET TERMINAL FONT { CP437, CP850, CP852, CP862, CP866, DEFAULT }",
"  CP437 - Original PC code page",
"  CP850 - \"Multilingual\" (West Europe) code page",
"  CP852 - East Europe Roman Alphabet code page (for Czech, Polish, etc)",
"  CP862 - Hebrew code page",
"  CP866 - Cyrillic (Russian, Belorussian, and Ukrainian) code page",
"Loads a soft into the video adapter for use during terminal emulation.",
"Use this command when your OS/2 system does not have the desired code page.",
"Can be used only in full-screen sessions.  Also see SET TERMINAL CODE-PAGE",
"and SET TERMINAL CHARACTER-SET.\n",
#endif /* OS2ONLY */
#endif /* OS2 */

#ifdef OS2
#ifdef NT
"SET TERMINAL HEIGHT <number> Changes the number of rows (lines) to use",
"during terminal emulation, not counting the status line.  Recommended",
"values are 24, 42, and 49 (or 25, 43, and 50 if SET TERMINAL STATUSLINE",
"is OFF.)\n",
#else
"SET TERMINAL HEIGHT <number> Changes the number of rows (lines) to use",
"during terminal emulation, not counting the status line.  Windowed sessions",
"can use any value from 8 to 101.  Fullscreen sessions are limited to 24, 42,"
"49, or 59.  Not all heights are supported by all video adapters.\n",
#endif /* NT */
#else
"SET TERMINAL HEIGHT <number> tells C-Kermit how many rows (lines) are on",
"your CONNECT-mode screen.\n",
#endif /* OS2 */

#ifdef OS2
"SET TERMINAL IDLE-SEND <seconds> <string>",
"Specifies how many seconds without keyboard activity must pass before",
"<string> is sent to the host when in CONNECT mode.  The default is 0",
"seconds which disables this function.  <string> may contain Kverbs and",
"and variables which will be evaluated at time of transmission to the host.\n",
#endif /* OS2 */

#ifdef OS2
"SET TERMINAL KEYBOARD-MODE { NORMAL, EMACS, RUSSIAN, HEBREW }",
"Select a special keyboard mode for use in the terminal screen.\n",

"SET TERMINAL KEY <mode> /LITERAL <keycode> <text>",
"SET TERMINAL KEY <mode> DEFAULT",
"SET TERMINAL KEY <mode> CLEAR",
"Configure the key whose <keycode> is k to send the given text when",
"pressed while <mode> is active.  <mode> may be any of the valid terminal",
"types or the special modes \"EMACS\", \"HEBREW\" or \"RUSSIAN\".  DEFAULT", 
"restores all the default key mappings for the specified mode.  CLEAR erases",
"all the key mappings.  If there is no text, the default key binding is",
#ifndef NOCSETS
"restored for the key k.  SET TERMINAL KEY mappings take place before",
"terminal character-set translation.  SET KEY mappings take precedence over",
"SET TERMINAL KEY <terminal type> settings.",    
#else
"restored for the key k.  SET KEY mappings take precedence over SET TERMINAL",
"KEY <terminal type> settings."
#endif /* NOCSETS */
"The /LITERAL switch may be used to instruct Kermit to ignore character-set",
"translations when sending this definition to the host.",
"\nThe text may contain \"\\Kverbs\" to denote actions, to stand for DEC",
"keypad, function, or editing keys, etc.  For a list of available keyboard",
"verbs, type SHOW KVERBS.",
"\nTo find out the scan code and mapping for a particular key, use the",
"SHOW KEY command.  Use the SAVE KEYS command to save all settings to a file.",

"SET TERMINAL KEYPAD-MODE { APPLICATION, NUMERIC } to specify the numeric",
"keypad mode for VT terminal emulation.\n",
#endif /* OS2 */

#ifndef NOCSETS
#ifdef OS2
"SET TERMINAL LOCAL-CHARACTER-SET <local-cs>",
"to specify the character set used by C-Kermit locally.  If you don't specify",
#ifdef OS2ONLY
"the local character-set, the current TERMINAL FONT is used, if you have",
"given a SET TERMINAL FONT command, otherwise the current code page is used.",
#else
"the local character-set, the current code page is used.",
#endif /* OS2ONLY */
"When the local and remote character sets differ, C-Kermit translates between",
"them during CONNECT.  By default, the remote character set is Latin1 and",
"the local one is your current code page.",
#ifdef NT
"In Windows NT, Unicode is used as the local character-set regardless of this",
"setting.",
#endif /* NT */
"See also SET TERMINAL REMOTE-CHARACTER-SET\n"
#endif /* OS2 */
#endif /* NOCSETS */

#ifdef OS2
"SET TERMINAL LOCKING-SHIFT { OFF, ON } tells whether to send",
"Shift-In/Shift-Out (Ctrl-O and Ctrl-N) to switch between 7-bit and 8-bit",
"characters sent during terminal emulation over 7-bit connections.",
"OFF by default.\n",
#else
"SET TERMINAL LOCKING-SHIFT { OFF, ON } tells C-Kermit whether to use",
"Shift-In/Shift-Out (Ctrl-O and Ctrl-N) to switch between 7-bit and 8-bit",
"characters during CONNECT.  OFF by default.\n",
#endif /* OS2 */

#ifdef OS2
"SET TERMINAL MARGIN-BELL { ON [column], OFF }",
"determines whether the margin-bell is activated and what column it should",
"ring at.  OFF by default.\n",
#endif /* OS2 */

"SET TERMINAL NEWLINE-MODE { OFF, ON } tells whether to send CRLF when you",
"type CR during CONNECT mode.\n",

#ifdef OS2
"SET TERMINAL OUTPUT-PACING <milliseconds> tells how long to pause between",
"sending each character to the host during CONNECT mode.  Normally not needed",
"but sometimes required to work around TRANSMISSION BLOCKED conditions when",
"pasting into the terminal window.\n",

#ifndef NOCSETS
"SET TERMINAL REMOTE-CHARACTER-SET <remote-cs> [ { G0,G1,G2,G3 }... ]",
"to specify the character set used by the remote host, <remote-cs>.",
"When the local and remote character sets differ, C-Kermit translates between",
"them during CONNECT.  By default, the remote character set is Latin1 and",
"the local one is your current code page.  Optionally, you can also designate",
"the character set to the G0..G3 graphic tables.\n",
#endif /* NOCSETS */
#endif /* OS2 */

#ifdef CK_TRIGGER
"SET TERMINAL TRIGGER <string> specifies a string that, when detected during",
"any subsequent CONNECT session, is to cause automatic return to command \
mode.", 
"Give this command without a string to cancel the current trigger.  See HELP",
"CONNECT for additional information.",
" ",
#endif /* CK_TRIGGER */

#ifdef OS2
"SET TERMINAL ROLL-MODE { INSERT, OVERWRITE } tells whether new data when",
"received from the host is entered into the scrollback buffer at the current",
"rollback position (OVERWRITE) or at the end of the buffer (INSERT).  The",
"default is INSERT.  Typing is allowed during rollbacks in either mode.\n",

"SET TERMINAL SCREEN-MODE { NORMAL, REVERSE }",
"When set to REVERSE the foreground and background colors are swapped as well",
"as the application of the foreground and background intensity bits.",
"The default is NORMAL.\n",

"SET TERMINAL SCREEN-OPTIMIZE { ON, OFF }",
"When set to ON, the default, Kermit only paints the screen with characters",
"that have changed since the last screen paint.  When set to OFF, the screen",
"is completely repainted each time the screen changes.\n",

"SET TERMINAL SCREEN-UPDATE { FAST, SMOOTH } [ <milliseconds> ] chooses",
"the mechanism used for screen updating and the update frequency.",
"Defaults are FAST scrolling with updates every 100 milliseconds.\n",

"SET TERMINAL SCROLLBACK <lines> sets size of CONNECT virtual screen buffer.",
"<lines> includes the active terminal screen.  The minimum is 256.  The",
"maximum is 2 million.  The default is 2000.\n",

"SET TERMINAL SEND-DATA { ON, OFF } determines whether ASCII emulations such",
"as WYSE 30,50,60 or TVI 910+,925,950 may send their screen contents to the",
"host upon request.  Allowing the screen to be read by the host is considered",
"a significant security risk.  The default is OFF and should only be changed",
"after a security evaluation of host environment.\n",

"SET TERMINAL SEND-END-OF-BLOCK { CRLF_ETX, US_CR } determines which set of",
"characters should be used as end of line and end of transmission indicators",
"when sending screen data to the host\n",

"SET TERMINAL SGR-COLORS { ON, OFF }",
"ON (default) means allow host control of colors; OFF means ignore host",
"escape sequences to set color.\n",

"SET TERMINAL STATUSLINE { ON, OFF }",
"ON (default) enables the Kermit status line in the terminal screen.",
"OFF removes it, making the line available for use by the host.\n",

"SET TERMINAL TRANSMIT-TIMEOUT <seconds> specifies the maximum amount of time",
"C-Kermit waits before returning to the prompt if your keystrokes can't be",
"transmitted for some reason, such as a flow-control deadlock.\n",

"SET TERMINAL VIDEO-CHANGE { DISABLED, ENABLED }",
"Tells whether Kermit should change video modes automatically in response",
#ifdef NT
"to escape sequences from the other computer.  ENABLED by default (except",
"on Windows 95).\n",
#else /* NT */
"to escape sequences from the other computer.  ENABLED by default.\n",
#endif /* NT */

#ifdef NT
"SET TERMINAL WIDTH <cols> tells how many columns define the terminal size.\n",
"Default is 80.  You can also use 132.  Other widths can be chosen but are",
"usually not supported by host software.\n",
#else
"SET TERMINAL WIDTH <cols> tells how many columns define the terminal size.\n",
"Default is 80.  In Windowed OS/2 2.x sessions, this value may not be changed",
"In Windowed OS/2 WARP 3.x sessions, this value may range from 20 to 255.",
"In Full screen sessions, values of 40, 80, and 132 are valid.  Not all",
"combinations of height and width are supported on all adapters.\n",
#endif /* NT */
"SET TERMINAL WRAP { OFF, ON } to tell whether the terminal emulator should",
"automatically wrap long lines on your screen.\n",
#else

"SET TERMINAL WIDTH <number> tells C-Kermit how many columns (characters) are",
"on your CONNECT-mode screen.\n",

#endif /* OS2 */
"Type SHOW TERMINAL to see current terminal settings.",
"" };
#endif /* NOLOCAL */

#ifdef NETCONN
static char *hxyhost[] = {
"TCP/IP Syntax:",
"SET HOST [ switches ] hostname-or-address [ service [ /RAW-SOCKET ] ]\n",
"Establish a connection to the specified network host on the currently",
"selected network type.  For TCP/IP connections, the default service is",
"TELNET; specify a different TCP port number or service name to choose a",
"different service; include /RAW-SOCKET after service name or number to",
"select a raw TCP socket.  Other switches are as in SET LINE.  Examples:",
" ",
"  SET HOST kermit.columbia.edu",
"  SET HOST /CONNECT kermit.columbia.edu",
"  SET HOST * 1649",
"  SET HOST /SERVER * 1649",
"  SET HOST 128.59.39.2",
"  SET HOST madlab.sprl.umich.edu 3000",
"  SET HOST xyzcorp.com 2000 /RAW-SOCKET",
#ifdef NETCMD
"  SET HOST /CONNECT /COMMAND rlogin xyzcorp.com",
#endif /* NETCMD */
" ",
#ifdef SUPERLAT
"\nSUPERLAT Syntax: SET HOST {service or node/port} [ password ]\n",
"Establish a connection to the specified network service or node and port",
"on the LAT network.  Passwords may be specified if required by the",
"desired service.  SUPERLAT Examples:\n",
"  SET HOST KERVAX",
"  SET HOST KERVAX/234",
"  SET HOST KERVAX password",
#endif /* SUPERLAT */
"Also see SET NETWORK, TELNET, SET TELNET.",
"" };

#ifdef TNCODE
#ifdef CK_KERBEROS
static char *hmxyauth[] = {
"Synatx: SET AUTHENTICATION { KERBEROS4, KERBEROS5 } <parameter> <value>",
" ",
"  Sets defaults for the AUTHENTICATE command.",
" ",
"SET AUTHENTICATION { KERBEROS4, KERBEROS5 } PRINCIPAL <name>",
"  If no default is set, the current SET LOGIN USERID value is used.  SET",
"  LOGIN USERID is set to the operating systems current username when Kermit",
"  is started.",
" ", 
"SET AUTHENTICATION { KERBEROS4, KERBEROS5 } REALM <name>",
"  If no default is set, the default realm configured for the Kerberos",
"  libraries is used.  Abbreviations accepted.",
" ",
"SET AUTHENTICATION KERBEROS5 CREDENTIALS-CACHE [ <filename> ]",
"  If no default is set, the default filename configured for the Kerberos",
"  libraries is used.",
" ",
"SET AUTHENTICATION { KERBEROS4, KERBEROS5 } SERVICE-NAME <name>",
"  If no default is set, the default service name for Kerberos 4 is \"rcmd\"",
"  and for Kerberos 5 is \"host\".",
"",
};
#endif /* CK_KERBEROS */

static char *hxytel[] = {
"Syntax: SET TELNET parameter value",
" ",
"For TCP/IP TELNET connections, which are in NVT (ASCII) mode by default:",
" ",
#ifdef CK_AUTHENTICATION
"SET TELNET AUTHENICATION { ACCEPTED, REFUSED, REQUESTED, REQUIRED }",
"  ACCEPT or REFUSE authentication bids, or actively REQUEST authentication.",
"  REQUIRED refuses the connection if authentication is not successfully",
"  negotiated.  ACCEPTED by default.",
" ",
"SET TELNET AUTHENTICATION TYPE { AUTOMATIC, KERBEROS_IV, KERBEROS_V, ...",
" ... SRP, NONE }",
"  AUTOMATIC allows the host to choose the preferred type of authentication.",
"  Other values allow a specific authentication method to be used.  AUTOMATIC",
"  is the default.  Available options can vary depending on configuration;",
"  type SET TELNET AUTHENTICATION TYPE ? for a list.",
" ",
#ifdef CK_KERBEROS
"SET TELNET AUTHENTICATION FORWARDING { ON, OFF }",
"  Set this to ON to forward Kerberos V ticket-granting-tickets to the host",
"  after authentication is complete.  OFF by default.\n",
" ",
#endif /* CK_KERBEROS */
#endif /* CK_AUTHENTICATION */
"SET TELNET BINARY-MODE { ACCEPTED, REFUSED, REQUESTED, REQUIRED }",
"  ACCEPT or REFUSE binary-mode bids, or actively REQUEST binary mode.",
"  REQUIRED refuses the connection if binary mode is not successfully",
"  negotiated in both directions.  ACCEPTED by default.\n",
"SET TELNET BUG BINARY-ME-MEANS-U-TOO { ON, OFF }",
"  Set this to ON to try to overcome TELNET binary-mode misnegotiations by",
"  C-Kermit's TELNET partner.\n",
"SET TELNET BUG BINARY-U-MEANS-ME-TOO { ON, OFF }",
"  Set this to ON to try to overcome TELNET binary-mode misnegotiations by",
"  C-Kermit's TELNET partner.\n",
"SET TELNET ECHO { LOCAL, REMOTE }",
"  C-Kermit's initial echoing state for TELNET connections, LOCAL by default.",
"  After the connection is made, TELNET negotiations determine the echoing.\n",
#ifdef CK_ENCRYPTION
"SET TELNET ENCRYPTION { ACCEPTED, REFUSED, REQUESTED, REQUIRED }",
"  ACCEPT or REFUSE encryption bids, or actively REQUEST encryption in both.",
"  directions.  REQUIRED refuses the connection if encryption is not",
"  successfully negotiated in both directions.  ACCEPTED by default.",
" ",
"SET TELNET ENCRYPTION TYPE { AUTOMATIC, CAST128_CFB64, CAST128_OFB64, ",
"  CAST5_40_CFB64, CAST5_40_OFB64, DES_CFB64, DES_OFB64, NONE }",
"  AUTOMATIC allows the host to choose the preferred type of encryption.",
"  Other values allow a specific encryption method to be specified.",
"  AUTOMATIC is the default.  The list of options will vary depending",
"  on the encryption types selected at compilation time.",
" ",
#endif /* CK_ENCRYPTION */
#ifdef CK_ENVIRONMENT
"SET TELNET ENVIRONMENT { ON, OFF, variable-name [ value ] }",
"  This feature lets Kermit send the values of certain environment variables",
"  to the other computer if it asks for them.  The variable-name can by any of"
,
"  the \"well-known\" variables \"USER\", \"JOB\", \"ACCT\", \"PRINTER\",",
"  \"SYSTEMTYPE\", or \"DISPLAY\".  Some Telnet servers, if given a USER",
"  value in this way, will accept it and therefore not prompt you for user",
"  name when you log in.  The default values are taken from your environment;",
"  use this command to change or remove them.  See RFC1572 for details.  You",
"  may also specify OFF to disable this feature, and ON to re-enable it.\n",
#endif /* CK_ENVIRONMENT */
#ifdef CK_SNDLOC
"SET TELNET LOCATION [ text ]",
"  Location string to send to the Telnet server if it asks.  By default this",
"  is picked up from the LOCATION environment variable.  Give this command",
"  with no text to disable this feature.\n",
#endif /* CK_SNDLOC */
"SET TELNET NEWLINE-MODE { NVT, BINARY-MODE } { OFF, ON, RAW }",
"  Determines how carriage returns are handled on TELNET connections.",
"  There are separate settings for NVT (ASCII) mode and binary mode.",
"  ON (default for NVT mode) means CRLF represents CR.",
"  OFF means CR followed by NUL represents CR.",
"  RAW (default for BINARY mode) means CR stands for itself.\n",
"SET TELNET TERMINAL-TYPE name",
"  The terminal type to send to the remote TELNET host.  If none is given,",
#ifdef OS2
"  your current SET TERMINAL TYPE value is sent, e.g. VT220.\n",
#else
"  your local terminal type is sent.\n",
#endif /* OS2 */
"Type SHOW TELNET to see the current values of these parameters.",
"" };
#endif /* TNCODE */

static char *hxynet[] = {
"Syntax: SET NETWORK { TYPE network-type, DIRECTORY [ file(s)... ] }\n",
"Select the type of network to be used with SET HOST connections:\n",
#ifdef TCPSOCKET
"  SET NETWORK TYPE TCP/IP",
#endif /* TCPSOCKET */
#ifdef ANYX25
"  SET NETWORK TYPE X.25",
#endif /* ANYX25 */
#ifdef DECNET
"  SET NETWORK TYPE PATHWORKS { LAT, CTERM }",
#endif /* DECNET */
#ifdef NPIPE
"  SET NETWORK TYPE NAMED-PIPE <pipename>",
#endif /* NPIPE */
#ifdef CK_NETBIOS
"  SET NETWORK TYPE NETBIOS",
#endif /* CK_NETBIOS */
#ifdef SUPERLAT
"  SET NETWORK TYPE SUPERLAT",
#endif /* SUPERLAT */
"\nIf only one network type is listed above, that is the default network for",
"SET HOST commands.  Also see SET HOST, TELNET.\n",
"SET NETWORK DIRECTORY specifies the name(s) of zero or more network",
"directory files, similar to dialing directories (HELP DIAL for details).",
"The general format of a network directory entry is:\n",
"  name network-type address [ network-specific-info ] [ ; comment ]\n",
"For TCP/IP, the format is:\n",
"  name tcp/ip ip-hostname-or-address [ socket ] [ ; comment ]\n",
"You can have multiple network directories and you can have multiple entries",
"with the same name.  SET HOST <name> and TELNET <name> commands look up the",
"given <name> in the directory and, if found, fill in the additional items",
"from the entry, and then try all matching entries until one succeeds.",
""};

#ifndef NOTCPOPTS
static char *hxytcp[] = {
#ifdef SOL_SOCKET
"SET TCP ADDRESS <ip-address>",
"  This allows a specific IP Address on a multihomed host to be used",
"  instead of allowing the TCP/IP stack to choose.  This may be necessary",
"  when using authentication or listening for an incoming connection.",
"  Specify no <ip-address> to remove the preference.\n",
"SET TCP KEEPALIVE { ON, OFF }",
"  Setting this ON might help to detect broken connections more quickly.",
"  (default is ON.)\n",
"SET TCP LINGER { ON [timeout], OFF }",
"  Setting this ON ensures that a connection doesn't close before",
"  all outstanding data has been transferred and acknowledged.",
"  timeout measured in 10th of a millisecond.",
"  (default is ON with a timeout of 0.)\n",
"SET TCP NODELAY { ON, OFF }",
"  ON means send short TCP packets immediately rather than waiting",
"  to accumulate a bunch of them before transmitting (Nagle Algorithm).",
"  (default is OFF.)\n",
"SET TCP RECVBUF <number>",
"SET TCP SENDBUF <number>",
"  TCP receive and send buffer sizes.  (default is -1, use system defaults.)",
" ",
"These items let you tune TCP networking performance on a per-connection",
"basis by adjusting parameters you normally would not have access to.  You",
"should use these commands only if you feel that the TCP/IP protocol stack",
"that Kermit is using is giving you inadequate performance, and then only if",
"you understand the concepts (see, for example, the Comer TCP/IP books), and",
"then at your own risk.  These settings are displayed by SHOW NETWORK.  Not",
"all options are necessarily available in all Kermit versions; it depends on",
"the underlying TCP/IP services.",
" ",
"The following TCP and/or IP parameter(s) may also be changed:",
" ",
#endif /* SOL_SOCKET */
"SET TCP REVERSE-DNS-LOOKUP { ON, OFF }",
"  Whether Kermit should perform a reverse DNS lookup on SET HOST or TELNET",
"  connections it makes.  ON by default.",
""};
#endif /* NOTCPOPTS */
#endif /* NETCONN */
 
#ifndef NOSPL
static char *hxymacr[] = {
"Syntax: SET MACRO parameter value\n",
"Controls the behavior of macros.\n",
"SET MACRO ECHO { ON, OFF } tells whether commands executed from a macro",
"definition should be displayed on the screen.\n",
"SET MACRO ERROR { ON, OFF } tells whether a macro should be automatically",
"terminated upon a command error.  This setting is local to the current",
"macro, and inherited by subordinate macros.",
"" };
#endif /* NOSPL */

static char *hmxyprm[] = {
"Syntax: SET PROMPT [ text ]\n",
#ifdef MAC
"Prompt text for this program, normally 'Mac-Kermit>'.  May contain backslash",
#else
"Prompt text for this program, normally 'C-Kermit>'.  May contain backslash",
#endif /* MAC */
"codes for special effects.  Surround by { } to preserve leading or trailing",
#ifdef MAC
"spaces.  If text omitted, prompt reverts to Mac-Kermit>.  Prompt can include",
#else
"spaces.  If text omitted, prompt reverts to C-Kermit>.  Prompt can include",
#endif /* MAC */
"variables like \\v(dir) or \\v(time) to show current directory or time.",
"" };

#ifdef UNIX
static char *hxywild[] = {
"Syntax: SET WILDCARD-EXPANSION { KERMIT [ switch ], SHELL }\n",
"KERMIT (the default) means C-Kermit expands filename wildcards in SEND and",
"similar commands itself, and in incoming GET commands.  Optional switches",
"are /NO-MATCH-DOT-FILES (\"*\" and \"?\" should not match in initial period",
"in a filename; this is the default) and /MATCH-DOT-FILES if you want files",
"whose names begin with \".\" included.  SET WILDCARD SHELL means that Kermit",
"asks your preferred shell to expand wildcards, which can allow greater",
"flexibility in notation (e.g. [a-z]), but does not allow recursion.",
"" };
#endif /* UNIX */

static char *hxywind[] = {
"Syntax: SET WINDOW-SIZE number\n",
"Specifies number of window slots for sliding windows, the number of packets",
"that can be transmitted before pausing for acknowledgement.  The default",
#ifdef XYZ_INTERNAL
"for Kermit protocol is one, the maximum is 32; for ZMODEM, the default",
"is no windowing (0).  For ZMODEM, the window size is really the packet",
"length, and is used only when non-windowed (streaming) transfers fail; the",
"ZMODEM window size should be a largish number, like 1024, and it should be",
"a multiple of 64.",
#else
"is one, the maximum is 32.  Increased window size might result in reduced",
"maximum packet length.  Use sliding windows for improved efficiency on",
"connections with long delays.  A full duplex connection is required, as well",
"as a cooperating Kermit on the other end.",
#endif /* XYZ_INTERNAL */
"" };

static char *hxyrpt[] = {
"Syntax: SET REPEAT { COUNTS { ON, OFF }, PREFIX <code> }\n",
"SET REPEAT COUNTS turns the repeat-count compression mechanism ON and OFF.",
" The default is ON.",
"SET REPEAT PREFIX <code> sets the repeat-count prefix character to the",
" given code.  The default is 126 (tilde).",
"" };

static char *hxyrcv[] = { 
"Syntax: SET RECEIVE parameter value\n",
"Specify parameters for inbound packets:\n",
"CONTROL-PREFIX number",
" ASCII value of prefix character used for quoting control characters in",
" packets that C-Kermit receives, normally 35 (number sign).  Don't change",
" this unless something is wrong with the other Kermit program.",
"END-OF-PACKET number",
" ASCII value of control character that terminates incoming packets,",
" normally 13 (carriage return).",
#ifdef CKXXCHAR
"IGNORE-CHARACTER number",
" ASCII value of character to be discarded when receiving packets, such as",
" line folding characters.",
#endif /* CKXXCHAR */
"PACKET-LENGTH number",
" Maximum length packet the other Kermit should send.",
"PADDING number",
" Number of prepacket padding characters to ask for (normally 0).",
"PAD-CHARACTER number",
" ASCII value of control character to use for padding (normally 0).",
"PATHNAMES {OFF, ABSOLUTE, RELATIVE}",
" If a recognizable path (directory, device, etc) specification appears in",
" an incoming filename, strip it OFF before trying to create the output file.",
#ifdef CK_MKDIR
" Otherwise, then if any of the directories in the path don't exist, C-Kermit",
" tries to create them, relative to your current or download directory, or",
" absolutely, as specified.  RELATIVE means force all incoming names, even",
" if they are absolute, to be relative to your current or download directory.",
#endif /* CK_MKDIR */
"PAUSE number",
" Milliseconds to pause in between packets, normally 0.",
"START-OF-PACKET number",
" ASCII value of character that marks start of inbound packet.",
"TIMEOUT number",
" Number of seconds the other Kermit should wait for a packet before sending",
" a NAK or retransmitting.",
"" };

static char *hxysnd[] = {
"Syntax: SET SEND parameter value\n",
"Specify parameters for outbound packets.  This command should be used only",
"to override the normal negotiated parameters and is rarely needed:\n",
"CONTROL-PREFIX number",
" ASCII value of prefix character used for quoting control characters in",
" packets that C-Kermit sends, normally 35 (number sign).",
#ifdef CKXXCHAR
"DOUBLE-CHARACTER number",
" ASCII value of character to be doubled when sending packets, such as a",
" PAD escape character.",
#endif /* CKXXCHAR */
"END-OF-PACKET number",
" ASCII value of control character to terminate an outbound packet,",
" normally 13 (carriage return).",
"PACKET-LENGTH number",
" Maximum length packet to send, even if other Kermit asks for longer ones.",
"PADDING number",
" Number of prepacket padding characters to send.",
"PAD-CHARACTER number",
" ASCII value of control character to use for padding.",
"PATHNAMES {OFF, ABSOLUTE, RELATIVE}",
" When FILE NAMES is set to LITERAL, include the path (device, directory)",
" portion with the file name when sending it as specified; ABSOLUTE means to",
" send the whole pathname, RELATIVE means to include the pathname relative",
" to the current directory.  Applies to the actual filename, not to the",
" \"as-name\".  The default is OFF.",
"PAUSE number",
" Milliseconds to pause in between packets, normally 0.",
"START-OF-PACKET number",
" ASCII value of character to mark start of outbound packet.",
"TIMEOUT number",
" Number of seconds to wait for a packet before sending NAK or",
#ifdef CK_TIMERS
" retransmitting.  Include the word DYNAMIC after the number in the",
" SET SEND TIMEOUT command to have Kermit compute the timeouts dynamically",
" throughout the transfer based on the packet rate.  Include the word FIXED",
" to use the \"number\" given throughout the transfer.  DYNAMIC is the",
" default.  After DYNAMIC you may include minimum and maximum values.",
#else
" retransmitting.",
#endif /* CK_TIMERS */
"" };

static char *hxyxfer[] = {
"Synonym: SET XFER\n",
#ifdef XFRCAN
"Syntax: SET TRANSFER CANCELLATION { OFF, ON [ <code> [ <number> ] ] }\n",
"OFF disables remote-mode packet-mode cancellation from the keyboard.",
"ON enables it.  The optional <code> is the control character to use for",
"cancellation; the optional <number> is how many consecutive occurrences",
"of the given control character are required for cancellation.",
#endif /* XFRCAN */
#ifndef NOSPL
"\nSyntax: SET TRANSFER CRC-CALCULATION { OFF, ON }\n",
"Tells whether C-Kermit should accumulate a Cyclic Redundancy Check for each",
"file transfer.  Normally ON, in which case the CRC value is available in the",
"\\v(crc16) variable after the transfer.  Adds a little bit of overhead.  Use",
"SET TRANSFER CRC OFF to disable.",
#endif /* NOSPL */
#ifndef NOCSETS
"\nSyntax: SET TRANSFER CHARACTER-SET name\n",
"Select the character set used to represent textual data in Kermit packets.",
"Text characters are translated to/from the FILE CHARACTER-SET.  Choices:\n",
" TRANSPARENT (no translation, the default)",
" ASCII",
" LATIN1 (ISO 8859-1 Latin Alphabet 1)",
#ifndef NOLATIN2
" LATIN2 (ISO 8859-2 Latin Alphabet 2)",
#endif /* NOLATIN2 */
#ifdef CYRILLIC
" CYRILLIC-ISO (ISO 8859-5 Latin/Cyrillic)",
#endif /* CYRILLIC */
#ifdef GREEK
" GREEK-ISO (ISO 8859-7 Latin/Greek)",
#endif /* GREEK */
#ifdef HEBREW
" HEBREW-ISO (ISO 8859-8 Latin/Hebrew)",
#endif /* HEBREW */
#ifdef KANJI
" JAPANESE-EUC (JIS X 0208 Kanji + Roman and Katakana)\n",
#endif /* KANJI */
#endif /* NOCSETS */
"\nSyntax: SET TRANSFER LOCKING-SHIFT { OFF, ON, FORCED }\n",
"Tell whether locking-shift protocol should be used during file transfer",
"to achieve 8-bit transparency on a 7-bit connection.  ON means to request",
"its use if PARITY is not NONE and to use it if the other Kermit agrees,",
"OFF means not to use it, FORCED means to use it even if the other Kermit",
"does not agree.",
"\nSyntax: SET TRANSFER MODE { AUTOMATIC, MANUAL }\n",
"Automatic (the default) means C-Kermit should automatically go into binary",
"file-transfer mode and use literal filenames if the other Kermit says it has",
"a compatible file system, e.g. UNIX-to-UNIX, but not UNIX-to-DOS.",
#ifdef PIPESEND
"\nSyntax: SET TRANSFER PIPES { ON, OFF }\n",
"Enables/Disables automatic sending from / reception to command pipes when",
"the incoming filename starts with '!'.  Also see CSEND, CRECEIVE.",
#endif /* PIPESEND */
#ifdef CK_XYZ
"\nSyntax: SET TRANSFER PROTOCOL { KERMIT, XMODEM, ... }\n",
"Synonym for SET PROTOCOL (q.v.).",
#endif /* CK_XYZ */
"\nSyntax: SET TRANSFER SLOW-START { OFF, ON }\n",
"ON (the default) tells C-Kermit, when sending files, to gradually build up",
"the packet length to the maximum negotiated length.  OFF means start sending",
"the maximum length right away.",
"" };

#ifdef NT
static char *hxywin95[] = {
"SET WIN95 ALT-GR { ON, OFF }",
"Instructs K-95, when used on MS Windows 95, to interpret the Right Alt key",
"as the Alt-Gr key.  This is necessary to work around the failure of",
"Windows 95 to properly translate non-US keyboards.  Default is OFF.\n",
"SET WIN95 KEYBOARD-TRANSLATION <character-set>",
"Specifies the character-set that Windows 95 is using to send keystrokes",
"to Kermit-95 via the keyboard input functions.  Default is Latin1-ISO.\n",
"SET WIN95 OVERLAPPED-IO { ON <requests>, OFF }",
"Determines whether or not K-95 uses Overlapped-I/O methods for reading",
"from and writing to serial and TAPI communication devices.  <requests>",
"specifies the number of simultaneous write requests that may be",
"overlapped, from 1 to 5.  Default is ON 3.\n",
""};
#endif /* NT */

/*  D O H S E T  --  Give help for SET command  */
 
int
dohset(xx) int xx; {
    int x;

    if (xx == -3) return(hmsga(hmhset));
    if (xx < 0) return(xx);
    if ((x = cmcfm()) < 0) return(x);
    switch (xx) {
 
case XYATTR:
    return(hmsga(hsetat));

case XYBACK:
    return(hmsga(hsetbkg));

#ifdef OS2
case XYBELL:
    return(hmsg(
"SET BELL { AUDIBLE [ { BEEP, SYSTEM-SOUNDS } ], VISIBLE, NONE }\n\
specifies how incoming Ctrl-G (bell) characters are handled in CONNECT mode\n\
and how command warnings are presented in command mode.  AUDIBLE means\n\
either a beep or a system-sound is generated; VISIBLE means the screen is\n\
flashed momentarily.\n"));

case XYPRTY:
    return(hmsg("SET PRIORITY { REGULAR, FOREGROUND-SERVER, TIME-CRITICAL }\n\
specifies at which priority level the communication and screen update\n\
threads should operate.  The default value is FOREGROUND-SERVER.\n"));
#endif /* OS2 */

#ifdef DYNAMIC
case XYBUF:
    return(hmsga(hsetbuf));
#endif /* DYNAMIC */

#ifndef NOLOCAL
case XYCARR:
    return(hmsga(hsetcar));
#endif /* NOLOCAL */

#ifndef NOSPL
case XYCASE:
    return(hmsg("Syntax: SET CASE { ON, OFF }\n\
Tells whether alphabetic case is significant in string comparisons\n\
done by INPUT, IF, and other commands.  This setting is local to the\n\
current macro or command file, and inherited by subordinates."));

#endif /* NOSPL */

case XYCMD:
    return(hmsga(hsetcmd));

case XYIFD:
    return(hmsg("Syntax: SET INCOMPLETE { DISCARD, KEEP }\n\
Discard or Keep incompletely received files, default is KEEP."));

#ifndef NOSPL
case XYINPU:
    return(hmsga(hxyinp));
#endif /* NOSPL */

case XYCHKT:
    return(hmsga(hmxychkt));
 
#ifndef NOSPL
case XYCOUN:
    return(hmsg("Syntax:  SET COUNT number\n\
Example: SET COUNT 5\n\
Set up a loop counter, for use with IF COUNT.  Local to current macro\n\
or command file, inherited by subordinate macros and command files."));
#endif /* NOSPL */

#ifndef NOLOCAL
case XYDEBU:
#ifdef DEBUG    
    return(hmsg("Syntax: SET DEBUG { SESSION, ON, OFF }\n\
SESSION means display control and 8-bit characters symbolically during\n\
CONNECT mode.  ON means log debugging information to file debug.log."));
#else
    return(hmsg("Syntax: SET DEBUG { SESSION, OFF }\n\
SESSION means display control and 8-bit characters symbolically during\n\
CONNECT mode."));
#endif /* DEBUG */
#else
#ifdef DEBUG
case XYDEBU:
    return(hmsg("Syntax: SET DEBUG { ON, OFF }\n\
ON means log debugging information to file debug.log."));
#endif /* DEBUG */
#endif /* NOLOCAL */

case XYDFLT:
    return(hmsg("Syntax: SET DEFAULT directory\n\
Change directory.  Equivalent to CD command."));

case XYDELA: 
    return(hmsg("Syntax: SET DELAY number\n\
Number of seconds to wait before sending first packet after SEND command."));
 
#ifndef NODIAL
case XYDIAL:
    return(hmsga(hmxydial));
#endif /* NODIAL */

#ifdef UNIX
case XYSUSP:
    return(hmsg("Syntax: SET SUSPEND { OFF, ON }\n\n\
Disables SUSPEND command, suspend signals, and <esc-char>Z during CONNECT."));
#endif

#ifndef NOSCRIPT
case XYSCRI:
    return(hmsg("Syntax: SET SCRIPT ECHO { OFF, ON }\n\n\
Disables/Enables echoing of SCRIPT command operation."));
#endif /* NOSCRIPT */

case XYTAKE:
    return(hmsga(hxytak));

#ifndef NOLOCAL
case XYTERM:
    return(hmsga(hxyterm));

case XYDUPL:
    return(hmsg("Syntax: SET DUPLEX { FULL, HALF }\n\n\
During CONNECT: FULL means remote host echoes, HALF means C-Kermit\n\
does its own echoing."));

case XYLCLE:
    return(hmsg("Syntax: SET LOCAL-ECHO { OFF, ON }\n\n\
During CONNECT: OFF means remote host echoes, ON means C-Kermit\n\
does its own echoing.  Synonym for SET DUPLEX { FULL, HALF }."));

case XYESC:
    return(hmsga(hxyesc));		/* SET ESCAPE */
#endif /* NOLOCAL */
 
case XYPRTR:				/* SET PRINTER */
    return(hmsga(hxyprtr));

#ifdef OS2
#ifdef BPRINT
case XYBDCP:				/* SET BPRINTER */
    return(hmsga(hxybprtr));
#endif /* BPRINT */
#endif /* OS2 */

case XYEXIT:
    return(hmsga(hxyexit));
 
case XYFILE:
    return(hmsga(hmxyf));
 
case XYFLOW:
    return(hmsga(hmxyflo));
 
case XYHAND:
   return(hmsga(hmxyhsh));

#ifdef NETCONN
case XYHOST:
return(hmsga(hxyhost));
case XYNET:
return(hmsga(hxynet));

#ifndef NOTCPOPTS
#ifdef SOL_SOCKET
case XYTCP:
return(hmsga(hxytcp));
#endif /* SOL_SOCKET */
#endif /* NOTCPOPTS */

#ifdef ANYX25
case XYX25:
    return(hmsga(hxyx25));

#ifndef IBMX25
case XYPAD:
    return(hmsg("Syntax: SET PAD name value\n\
Set a PAD X.3 parameter with a desired value."));
#endif /* IBMX25 */
#endif /* ANYX25 */ 
#endif /* NETCONN */

#ifndef NOSPL
case XYOUTP:
    return(hmsga(hxyout));
#endif /* NOSPL */

#ifndef NOSETKEY
case XYKEY:				/* SET KEY */
    return(hmsga(hmhskey));
#endif /* NOSETKEY */

#ifndef NOCSETS
case XYLANG:
    return(hmsg("Syntax: SET LANGUAGE name\n\
Selects language-specific translation rules for text-mode file transfers.\n\
Used with SET FILE CHARACTER-SET and SET TRANSFER CHARACTER-SET when one\n\
of these is ASCII."));
#endif /* NOCSETS */

case XYLINE:
#ifdef OS2
    printf("\nSyntax: SET LINE (or SET PORT) [ switches ] [ devicename ]\n\n\
Select communication device to use.\n");
#else
    printf("\nSyntax: SET LINE (or SET PORT) [ switches ] [ devicename ]\n\n\
Select communication device to use.  Default is %s.\n",dftty);
    if (!dfloc) {
	printf("\
If you SET LINE to other than %s, then Kermit\n",dftty);
	printf("\
will be in 'local' mode; SET LINE alone will reset Kermit to remote mode.\n\
To use the modem to dial out, first SET MODEM TYPE (e.g., to HAYES), then");
	printf("\
\nSET LINE xxx, next issue the DIAL command, and finally CONNECT.\n\n");
    }
#endif /* OS2 */
    printf(
"Switches:\n\
  /CONNECT - Enter CONNECT mode automatically if SET LINE succeeds.\n");
    printf(
"  /SERVER  - Enter server mode automatically if SET LINE succeeds.\n");
#ifdef VMS
    printf(
"  /SHARE   - Open the device in shared mode.\n");
    printf(
"  /NOSHARE - Open the device in exclusive mode.\n");
#endif /* VMS */
    printf("\n");
    return(0);
 
#ifndef NOSPL
case XYMACR:
    return(hmsga(hxymacr));
#endif /* NOSPL */

#ifndef NODIAL
case XYMODM:
    return(hmsga(hxymodm));
#endif /* NODIAL */
 
case XYPARI:
    return(hmsg("Syntax: SET PARITY name\n\n\
Parity to use during terminal connection and file transfer: EVEN, ODD, MARK,\n\
SPACE, or NONE.  Normally NONE."));
 
case XYPROM:
    return(hmsga(hmxyprm));
 
case XYQUIE:
    return(hmsg("Syntax: SET QUIET {ON, OFF}\n\n\
Normally OFF.  ON disables most information messages during interactive\n\
operation."));

#ifdef CK_SPEED
case XYQCTL:
    return(hmsga(hmxyqctl));
#endif /* CK_SPEED */

case XYRETR:
    return(hmsg("Syntax: SET RETRY number\n\n\
How many times to retransmit a particular packet before giving up."));

#ifndef NOLOCAL
#ifdef UNIX
case XYSESS:
    return(hmsg("Syntax: SET SESSION-LOG { BINARY, TEXT }\n\n\
If BINARY, record all CONNECT characters in session log.  If TEXT, strip\n\
out carriage returns."));
#else
#ifdef OSK
case XYSESS:
    return(hmsg("Syntax: SET SESSION-LOG { BINARY, TEXT }\n\n\
If BINARY, record all CONNECT characters in session log.  If TEXT, strip\n\
out linefeeds."));
#endif /* OSK */
#endif /* UNIX */

case XYSPEE:
    return(hmsg("Syntax: SET SPEED number\n\n\
Communication line speed for external tty line specified in most recent\n\
SET LINE command, in bits per second.  Type SET SPEED ? for a list of\n\
possible speeds."));
#endif /* NOLOCAL */

case XYRECV:
    return(hmsga(hxyrcv));
case XYSEND:
    return(hmsga(hxysnd));
case XYREPT:
    return(hmsga(hxyrpt));

#ifndef NOSERVER
case XYSERV:
    return(hmsga(hsetsrv));
#endif /* NOSERVER */

#ifdef TNCODE
case XYTEL:
    return(hmsga(hxytel));
#endif /* TNCODE */

#ifndef NOXMIT
case XYXMIT:
    return(hmsga(hsetxmit));
#endif /* NOXMIT */

#ifndef NOCSETS
case XYUNCS:
    return(hmsg("Syntax: SET UNKNOWN-CHAR-SET action\n\n\
DISCARD (default) means reject any arriving files encoded in unknown\n\
character sets.  KEEP means to accept them anyway."));
#endif /* NOCSETS */

#ifdef UNIX
case XYWILD:
    return(hmsga(hxywild));
#endif /* UNIX */

case XYWIND:
    return(hmsga(hxywind));

case XYXFER:
    return(hmsga(hxyxfer));

#ifdef OS2MOUSE
case XYMOUSE:
    return(hmsga(hxymouse));
#endif /* OS2MOUSE */

case XYALRM:
    return(hmsg("Syntax: SET ALARM [ <seconds> ]\n\n\
Number of seconds from now after which IF ALARM will succeed.\n\
0 means no alarm."));

case XYPROTO:
#ifndef CK_XYZ
    return(hmsg("Syntax: SET PROTOCOL KERMIT\n\n\
Chooses the protocol to be used for transferring files.  KERMIT is the\n\
only choice in this version of C-Kermit."));
#else
    return(hmsga(hxyxyz));
#endif /* CK_XYZ */

#ifdef CK_SPEED
case XYPREFIX:
    return(hmsg("Syntax: SET PREFIXING { ALL, CAUTIOUS, MINIMAL, NONE }\n\n\
Selects the degree of control-character prefixing.  Also see HELP SET CONTROL."
));
#endif /* CK_SPEED */

#ifdef OS2
case XYLOGIN:
    return(hmsg("Syntax: SET LOGIN { USERID, PASSWORD, PROMPT } <text>\n\n\
Provides access information for use by login scripts."));
#endif /* OS2 */

#ifndef NOSPL
case XYTMPDIR:
    return(hmsg("Syntax: SET TEMP-DIRECTORY [ <directory-name> ]\n\n\
Overrides automatic assignment of \\v(tmpdir) variable."));
#endif /* NOSPL */

case XYTITLE:
    return(hmsg("Syntax: SET TITLE <text>\n\
Sets window title to text instead of using current host/port name.")); 

#ifndef NOPUSH
#ifndef NOFRILLS
case XYEDIT:
    return(hmsg("Syntax: SET EDITOR pathname [ options ]\n\
Specify the name of your preferred editor, plus any command-line options.\n\
SHOW EDITOR displays it."));
#endif /* NOFRILLS */
#endif /* NOPUSH */

#ifdef BROWSER
case XYBROWSE:
#ifdef NT
    return(hmsg("Syntax: SET BROWSER [ pathname [ options ] ]\n\
Specify the name of your preferred browser, plus any command-line options.\n\
SHOW BROWSER displays it.  Omit pathname and options to use ShellExecute."));
#else
    return(hmsg("Syntax: SET BROWSER [ pathname [ options ] ]\n\
Specify the name of your preferred browser, plus any command-line options.\n\
SHOW BROWSER displays it."));
#endif /* NT */
#endif /* BROWSER */

#ifdef CK_TAPI
case XYTAPI:
    return(hmsga(hxytapi));
#endif /* CK_TAPI */

#ifdef NT
case XYWIN95:
    return(hmsga(hxywin95));
#endif /* NT */

#ifndef NOSPL
case XYFUNC:
    return(hmsga(hxyfunc));
#endif /* NOSPL */

#ifdef CK_KERBEROS
case XYAUTH:
    return(hmsga(hmxyauth));
#endif /* CK_KERBEROS */

#ifdef BROWSER
case XYFTP:
    return(hmsg("Syntax: SET FTP [ pathname [ options ] ]\n\
Specify the name of your ftp client, plus any command-line options.\n\
SHOW FTP displays it."));
#endif /* BROWSER */

case XYSLEEP:
    return(hmsg("Syntax: SET SLEEP CANCELLATION { ON, OFF }\n\
Tells whether SLEEP (PAUSE) or WAIT commands can be interrupted from the\n\
keyboard; ON by default."));

default:
    printf("Not available - \"%s\"\n",cmdbuf);
    return(0);
    }
}

#ifndef NOSPL
/*  D O H F U N C  --  Give help for a function  */
 
int
dohfunc(xx) int xx; {
    int x;
    if (xx == -3) {
        printf("\n Type SHOW FUNCTIONS to see a list of available functions.\n"
	       );
        printf(
        " Type HELP FUNCTION <name> for help on a particular function.\n");
        printf(
        " For function settings use HELP SET FUNCTION and SHOW SCRIPTS.\n\n");
        return(0);
    }
    if (xx < 0) return(xx);
    if ((x = cmcfm()) < 0) return(x);
    switch (xx) {
      case FN_IND:			/* Index (of string 1 in string 2) */
      case FN_RIX:			/* Rindex (index from right) */
        printf("\\f%sindex(s1,s2,n1)\n\
  s1 = string to look for.\n\
  s2 = string to look in.\n\
  n1 = 1-based offset from %s in s2, default = 1.\n",
	       xx == FN_IND ? "" : "r",
	       xx == FN_IND ? "left" : "right"
	       );
        printf("Returns integer:\n\
  1-based position of %smost occurrence of s1 in s2 starting at n1,\n\
  or 0 if not found.\n",
	       xx == FN_IND ? "left" : "right");
        break;
      case FN_LEN:			/* Length (of string) */
        printf("\\flength(s1)\n\
  s1 = string.\n");
        printf("Returns integer:\n\
  Length of string s1.\n");
        break;
      case FN_LIT:			/* Literal (don't expand the string) */
        printf("\\fliteral(s1)\n\
  s1 = string.\n");
        printf("Returns string:\n\
  s1 literally without evaluation.\n");
        break;
      case FN_LOW:			/* Lower (convert to lowercase) */
        printf("\\flower(s1)\n\
  s1 = string.\n");
        printf("Returns string:\n\
  s1 with uppercase letters converted to lowercase.\n");
        break;
      case FN_MAX:			/* Max (maximum) */
        printf("\\fmaximum(n1,n2)\n\
  n1 = integer.\n\
  n2 = integer.\n");
        printf("Returns integer:\n\
  The greater of n1 and n2.\n");
        break;
      case FN_MIN:			/* Min (minimum) */
        printf("\\fminimum(n1,n2)\n\
  n1 = integer.\n\
  n2 = integer.\n");
        printf("Returns integer:\n\
  The lesser of n1 and n2.\n");
	break;
      case FN_MOD:			/* Mod (modulus) */
        printf("\\fmodulus(n1,n2)\n\
  n1 = integer.\n\
  n2 = integer.\n");
        printf("Returns integer:\n\
  The remainder after dividing n1 by n2.\n");
	break;
      case FN_EVA:			/* Eval (evaluate arith expression) */
        printf("\\fevaluate(e)\n\
  e = arithmetic expression.\n");
        printf("Returns integer:\n\
  The result of evaluating the expression.\n");
	break;
      case FN_SUB:			/* Substr (substring) */
        printf("\\fsubstring(s1,n1,n2)\n\
  s1 = string.\n\
  n1 = integer, 1-based starting position, default = 1.\n\
  n2 = integer, length, default = length(s1) - n1 + 1.\n");
        printf("Returns string:\n\
  Substring of s1 starting at n1, length n2.\n");
	break;
      case FN_UPP:			/* Upper (convert to uppercase) */
        printf("\\fupper(s1)\n\
  s1 = string.\n");
        printf("Returns string:\n\
  s1 with lowercase letters converted to uppercase.\n");
	break;
      case FN_REV:			/* Reverse (a string) */
        printf("\\freverse(s1)\n\
  s1 = string.\n");
        printf("Returns string:\n\
  s1 with its characters in reverse order.\n");
	break;
      case FN_REP:			/* Repeat (a string) */
        printf("\\frepeat(s1,n1)\n\
  s1 = string.\n\
  n1 = integer.\n");
        printf("Returns string:\n\
  s1 repeated n1 times.\n");
	break;
      case FN_EXE:			/* Execute (a macro) */
        printf("\\fexecute(m1,a1,a2,a3,...)\n\
  m1 = macro name.\n\
  a1 = argument 1.\n\
  a2 = argument 2, etc\n");
        printf("Returns string:\n\
  The return value of the macro (HELP RETURN for further info).\n");
	break;
      case FN_LPA:			/* LPAD (left pad) */
      case FN_RPA:			/* RPAD (right pad) */
        printf("\\f%cpad(s1,n1,c1)\n\
  s1 = string.\n\
  n1 = integer.\n\
  c1 = character, default = space.\n",
                xx == FN_LPA ? 'l' : 'r');
        printf("Returns string:\n\
  s1 %s-padded with character c1 to length n1.\n",
	       xx == FN_LPA ? "left" : "right");
	break;
      case FN_DEF:			/* Definition of a macro, unexpanded */
        printf("\\fdefinition(m1)\n\
  m1 = macro name.\n");
        printf("Returns string:\n\
  Literal definition of macro m1.\n");
	break;
      case FN_CON:			/* Contents of a variable, ditto */
        printf("\\fcontents(v1)\n\
  v1 = variable name such as \\%%a.\n");
        printf("Returns string:\n\
  Literal definition of variable v1, evaluated one level only.\n");
	break;
      case FN_FIL:			/* Next file */
        printf("\\fnextfile()\n");
        printf("Returns string:\n\
  Name of next file from list created by most recent \\f[r]files() or\n\
  \\f[r]dir()invocation, or an empty string if there are no more files in\n\
  the list.\n");
	break;
      case FN_FC:			/* File count */
        printf("\\ffiles(f1) - File list.\n\
  f1 = file specification, possibly containing wildcards.\n");
        printf("Returns integer:\n\
  The number of regular files that match f1.  Use with \\fnextfile().\n");
	break;
      case FN_CHR:			/* Character (like BASIC CHR$()) */
        printf("\\fcharacter(n1)\n\
  n1 = integer.\n");
        printf("Returns character:\n\
  The character whose numeric code is n1.\n");
	break;
      case FN_RIG:			/* Right (like BASIC RIGHT$()) */
        printf("\\fright(s1,n1)\n\
  s1 = string.\n\
  n1 = integer, default = length(s1).\n");
        printf("Returns string:\n\
  The rightmost n1 characters of string s1.\n");
	break;
      case FN_COD:			/* Code value of character */
        printf("\\fcode(c1)\n\
  c1 = character.\n");
        printf("Returns integer:\n\
  The numeric code of character c1.\n");
	break;
      case FN_RPL:			/* Replace */
        printf("\\freplace(s1,s2,s3)\n\
  s1 = original string.\n\
  s2 = match string.\n\
  s3 = replacement string.\n");
        printf("Returns string:\n\
  s1 with all occurrences of s2 replaced by s3.\n");
	break;
      case FN_FD:			/* File date */
        printf("\\fdate(f1)\n\
  f1 = filename.\n");
        printf("Returns string:\n\
  Modification date of file f1, format: yyyymmdd hh:mm:ss.\n");
	break;
      case FN_FS:			/* File size */
        printf("\\fsize(f1)\n\
  f1 = filename.\n");
        printf("Returns integer:\n\
  Size of file f1.\n");
	break;
      case FN_VER:			/* Verify */
	printf("\\fverify(s1,s2,n1)\n\
  s1 = string to look in.\n\
  s2 = string of characters to look for.\n\
  n1 = starting position in s1.");
        printf("Returns integer:\n\
  1-based position of first character in s1 that is not also in s2,\n\
  or 0 if all characters in s2 are also in s1.\n");
	break;
      case FN_IPA:			/* Find and return IP address */
	printf("\\fipaddress(s1,n1)\n\
  s1 = string.\n\
  n1 = 1-based integer starting position, default = 1.\n");
        printf("Returns string:\n\
  First IP address in s1, scanning from left starting at position n1.\n");
	break;
      case FN_HEX:			/* Hexify */
	printf("\\fhexify(s1)\n\
  s1 = string.\n");
        printf("Returns string:\n\
  The hexadecimal representation of s1.  Also see \\fn2hex().\n");
	break;
      case FN_UNH:			/* Unhexify */
	printf("\\fhexify(h1)\n\
  h1 = Hexadecimal string.\n");
        printf("Returns string:\n\
  The result of unhexifying s1, or nothing if s1 is not a hex string.\n"); 
	break;
      case FN_BRK:			/* Break */
      case FN_SPN:			/* Span */
	printf("\\f%s(s1,s2,n1)\n\
  s1 = string to look in.\n\
  s2 = string of characters to look for.\n\
  n1 = 1-based integer starting position, default = 1.\n",
              xx == FN_BRK ? "break" : "span"
              );
        printf("Returns string:\n\
  s1 up to the first occurrence of any character%salso in s2,\n\
  scanning from the left starting at position n1.\n",
	       xx == FN_SPN ? " not " : " ");
	break;
      case FN_TRM:			/* Trim */
      case FN_LTR:			/* Left-Trim */
	printf("\\fbreak(s1,s2)\n\
  s1 = string to look in.\n\
  s2 = string of characters to look for, default = blanks and tabs.\n");
        printf("Returns string:\n\
  s1 with all characters that are also in s2 trimmed from the %s.\n.",
	       xx == FN_TRM ? "right" : "left");
	break;
      case FN_CAP:			/* Capitalize */
        printf("\\fcapitalize(s1)\n\
  s1 = string.\n");
        printf("Returns string:\n\
  s1 with its first letter converted to uppercase and the remaining\n\
  letters to lowercase.\n");
        printf("Synonym: \\fcaps(s1)\n");
	break;
      case FN_TOD:			/* Time-of-day-to-secs-since-midnite */
        printf("\\ftod2secs(s1)\n\
  s1 = time-of-day string, hh:mm:ss, 24-hour format.\n");
        printf("Returns number:\n\
  Seconds since midnight.\n");
	break;
      case FN_FFN:			/* Full file name */
        printf("\\fpathname(f1)\n\
  f1 = filename, possibly wild.\n");
        printf("Returns string:\n\
  Full pathname of f1.\n");
	break;
      case FN_CHK:			/* Checksum of text */
        printf("\\fchecksum(s1)\n\
  s1 = string.\n");
        printf("Returns integer:\n\
  16-bit checksum of string s1.\n");
	break;
      case FN_CRC:			/* CRC-16 of text */
        printf("\\fcrc16(s1)\n\
  s1 = string.\n");
        printf("Returns integer:\n\
  16-bit cyclic redundancy check of string s1.\n");
	break;
      case FN_BSN:			/* Basename of file */
        printf("\\fbasename(f1)\n\
  f1 = filename, possibly wild.\n");
        printf("Returns string:\n\
  Filename f1 stripped of all device and directory information.\n");
	break;
      case FN_CMD:			/* Output of a command (cooked) */
        printf("\\fcommand(s1)\n\
  s1 = string\n");
        printf("Returns string:\n\
  Output of system command s1, if any, with final line terminator stripped.\n"
	       );
	break;
      case FN_RAW:			/* Output of a command (raw) */
        printf("\\frawcommand(s1)\n\
  s1 = string\n");
        printf("Returns string:\n\
  Output of system command s1, if any.\n");
	break;
      case FN_STX:			/* Strip from right */
        printf("\\fstripx(s1,c1)\n\
  s1 = string to look in.\n\
  c1 = character to look for, default = \".\".\n");
        printf("Returns string:\n\
  s1 up to the leftmost occurrence of character c1.\n"
        );
	break;
      case FN_STL:			/* Strip from left */
        printf("\\flop(s1,c1)\n\
  s1 = string to look in.\n\
  c1 = character to look for, default = \".\".\n");
        printf("Returns string:\n\
  The part of s1 after the leftmost occurrence of character c1.\n"
        );
	break;
      case FN_STN:			/* Strip n chars */
        printf("\\fstripx(s1,n1)\n\
  s1 = string to look in.\n\
  n1 = integer, default = 0.\n");
        printf("Returns string:\n\
  s1 with n1 characters removed from the right.\n"
        );
	break;

#ifdef OS2
      case FN_SCRN_CX:			/* Screen Cursor X Pos */
        printf("\\fscrncurx()\n");
        printf("Returns integer:\n\
  The 0-based X coordinate (column) of the Terminal screen cursor.\n");
	break;
      case FN_SCRN_CY:			/* Screen Cursor Y Pos */
        printf("\\fscrncurx()\n");
        printf("Returns integer:\n\
  The 0-based Y coordinate (row) of the Terminal screen cursor.\n");
	break;
      case FN_SCRN_STR:			/* Screen String */
        printf("\\fscrstr(ny,nx,n1)\n\
  ny = integer.\n\
  nx = integer.\n\
  n1 = integer.\n");
        printf("Returns string:\n\
  The string at Terminal-screen coordinates (nx,ny), length n1,\n\
  blanks included.\n");
	break;
#endif /* OS2 */

      case FN_2HEX:			/* Num to hex */
        printf("\\fn2hex(n1) - Number to hex\n  n1 = integer.\n");
        printf("Returns string:\n  The hexadecimal representation of n1.\n");
	break;

      case FN_2OCT:			/* Num to hex */
        printf("\\fn2octal(n1) - Number to octal\n  n1 = integer.\n");
        printf("Returns string:\n  The octal representation of n1.\n");
	break;

#ifdef RECURSIVE
      case FN_DIR:			/* Recursive directory count */
        printf("\\fdirectories(f1) - Directory list.\n\
  f1 = directory specification, possibly containing wildcards.\n");
        printf("Returns integer:\n\
  The number of directories that match f1; use with \\fnextfile().\n");
	break;

      case FN_RFIL:			/* Recursive file count */
        printf("\\frfiles(f1) - Recursive file list.\n\
  f1 = file specification, possibly containing wildcards.\n");
        printf("Returns integer:\n\
  The number of files whose names match f1 in the current or given\n\
  directory tree; use with \\fnextfile().\n");
	break;

      case FN_RDIR:			/* Recursive directory count */
        printf("\\frdirectories(f1) - Recursive directory list.\n\
  f1 = directory specification, possibly containing wildcards.\n");
        printf("Returns integer:\n\
  The number of directories that match f1 in the current or given directory\n\
  tree.  Use with \\fnextfile().\n");
	break;
#endif /* RECURSIVE */

      case FN_DNAM:			/* Directory part of a filename */
        printf("\\fdirname(f) - Directory part of a filename.\n\
  f = a file specification.\n");
        printf("Returns directory name:\n\
  The full name of the directory that the file is in, or if the file is a\n\
  directory, its full name.\n");
	break;

#ifndef NORANDOM
      case FN_RAND:			/* Random number */
        printf("\\frandom(n) - Random number.\n\
  n = a positive integer.\n");
        printf("Returns:\n\
  A random integer between 0 and n-1.\n");
	break;
#endif /* NORANDOM */

      case FN_WORD:			/* Word */
        printf("\\fword(s1,n1,s2,s3) - Extract word from string.\n\
  s1 = String\n  n1 = word number (1-based)\n  s2 = optional break set.\n");
        printf("  s3 = optional include set.\n");
        printf("\
  Default break set is all characters except ASCII letters and digits.\n\
  ASCII (C0) control characters are always treated as break characters.\n"
        );
        printf("Returns:\n\
  Word number n, if there is one, otherwise an empty string.\n");
	break;

      case FN_SPLIT:			/* Split */
        printf("\\fword(s1,&a,s2,s3) - Assign string words to an array.\n\
  s1 = String\n  &a = array designator\n  s2 = optional break set.\n");
        printf("  s3 = optional include set.\n");
        printf("  Break and include sets are as in \\fword().\n");
        printf("Returns:\n\
  Number of words assigned.\n");
	break;

      default:
        printf("Not available - \"%s\"\n",cmdbuf);
    }
    return(0);
}
#endif /* NOSPL */

#ifdef OS2
#ifndef NOKVERBS
/*  D O H K V E R B  --  Give help for a Kverb  */
 
int
dohkverb(xx) int xx; {
    int x,i,found,button,event;

    if (xx == -3) {
        printf("\n Type SHOW KVERBS to see a list of available Kverbs.\n"
	       );
        printf(
" Type HELP KVERB <name> to see the current definition of a given Kverb.\n\n"
              );
        return(-9);
    }
    if (xx < 0) return(xx);
    if ((x = cmcfm()) < 0) return(x);
    switch ( xx ) {
        /* DEC VT keyboard key definitions */

    case  K_COMPOSE :    		/* Compose key */
        printf("\\Kcompose           Compose an accented character\n");
        break;

/* DEC arrow keys */

    case  K_UPARR     : 		/* DEC Up Arrow key */
        printf("\\Kuparr         Transmit Terminal Up Arrow sequence\n");
        break;
    case  K_DNARR     : 		/* DEC Down Arrow key */
        printf("\\Kdnarr         Transmit Terminal Down Arrow sequence\n");
        break;
    case  K_RTARR     : 		/* DEC Right Arrow key */
        printf("\\Krtarr         Transmit Terminal Right Arrow sequence\n");
        break;
    case  K_LFARR     : 		/* DEC Left Arrow key */
        printf("\\Klfarr         Transmit Terminal Left Arrow sequence\n");
        break;

    case  K_PF1       : 		/* DEC PF1 key */
        printf("\\Kpf1,\\Kgold    Transmit DEC PF1 sequence\n");
        break;
    case  K_PF2       : 		/* DEC PF2 key */
        printf("\\Kpf2           Transmit DEC PF2 sequence\n");
        break;
    case  K_PF3       : 		/* DEC PF3 key */
        printf("\\Kpf3           Transmit DEC PF3 sequence\n");
        break;
    case  K_PF4       : 		/* DEC PF4 key */
        printf("\\Kpf4           Transmit DEC PF4 sequence\n");
        break;

    case  K_KP0       : 		/* DEC Keypad 0 */
        printf("\\Kkp0           Transmit DEC Keypad-0 sequence\n");
        break;
    case  K_KP1       : 		/* DEC Keypad 1 */
        printf("\\Kkp1           Transmit DEC Keypad-1 sequence\n");
        break;
    case  K_KP2       : 		/* etc ... through 9 */
        printf("\\Kkp2           Transmit DEC Keypad-2 sequence\n");
        break;
    case  K_KP3       : 
        printf("\\Kkp3           Transmit DEC Keypad-3 sequence\n");
        break;
    case  K_KP4       : 
        printf("\\Kkp4           Transmit DEC Keypad-4 sequence\n");
        break;
    case  K_KP5       : 
        printf("\\Kkp5           Transmit DEC Keypad-5 sequence\n");
        break;
    case  K_KP6       : 
        printf("\\Kkp6           Transmit DEC Keypad-6 sequence\n");
        break;
    case  K_KP7       : 
        printf("\\Kkp7           Transmit DEC Keypad-7 sequence\n");
        break;
    case  K_KP8       : 
        printf("\\Kkp8           Transmit DEC Keypad-8 sequence\n");
        break;
    case  K_KP9       : 
        printf("\\Kkp9           Transmit DEC Keypad-9 sequence\n");
        break;
    case  K_KPCOMA    : 		/* DEC keypad comma */
        printf("\\Kkpcoma        Transmit DEC Keypad-Comma sequence\n");
        break;
    case  K_KPMINUS   : 		/* DEC keypad minus */
        printf("\\Kkpminus       Transmit DEC Keypad-Minus sequence\n");
        break;
    case  K_KPDOT     : 		/* DEC keypad period */
        printf("\\Kkpdot         Transmit DEC Keypad-Period sequence\n");
        break;
    case  K_KPENTER   : 		/* DEC keypad enter */
        printf("\\Kkpenter       Transmit DEC Keypad-Enter sequence\n");
        break;

/* DEC Top-Rank F keys */

    case  K_DECF1     : 		/* DEC F1 key */
        printf("\\Kdecf1         Transmit DEC F1 sequence for PC keyboard\n");
        break;
    case  K_DECF2     : 		/* DEC F2 key */
        printf("\\Kdecf2         Transmit DEC F2 sequence for PC keyboard\n");
        break;
    case  K_DECF3     : 		/* DEC F3 key */
        printf("\\Kdecf3         Transmit DEC F3 sequence for PC keyboard\n");
        break;
    case  K_DECF4     : 		/* DEC F4 key */
        printf("\\Kdecf4         Transmit DEC F4 sequence for PC keyboard\n");
        break;
    case  K_DECF5     : 		/* DEC F5 key */
        printf("\\Kdecf5         Transmit DEC F5 sequence for PC keyboard\n");
        break;
    case  K_DECHOME:                    /* DEC HOME key */
       printf("\\Kdechome       Transmit DEC HOME sequence for PC keyboard\n");
       break;

    case  K_DECF6     : 		/* DEC F6 key */
        printf("\\Kdecf6         Transmit DEC F6 sequence\n");
        break;
    case  K_DECF7     : 		/* etc, through F20 */
        printf("\\Kdecf7         Transmit DEC F7 sequence\n");
        break;
    case  K_DECF8     : 
        printf("\\Kdecf8         Transmit DEC F8 sequence\n");
        break;
    case  K_DECF9     : 
        printf("\\Kdecf9         Transmit DEC F9 sequence\n");
        break;
    case  K_DECF10    : 
        printf("\\Kdecf10        Transmit DEC F10 sequence\n");
        break;
    case  K_DECF11    : 
        printf("\\Kdecf11        Transmit DEC F11 sequence\n");
        break;
    case  K_DECF12    : 
        printf("\\Kdecf12        Transmit DEC F12 sequence\n");
        break;
    case  K_DECF13    : 
        printf("\\Kdecf13        Transmit DEC F13 sequence\n");
        break;
    case  K_DECF14    : 
        printf("\\Kdecf14        Transmit DEC F14 sequence\n");
        break;
    case  K_DECHELP   : 		/* DEC Help key */
        printf("\\Kdecf15,\\Kdechelp  Transmit DEC HELP sequence\n");
        break;
    case  K_DECDO     : 		/* DEC Do key */
        printf("\\Kdecf16,\\Kdecdo    Transmit DEC DO sequence\n");
        break;
    case  K_DECF17    : 
        printf("\\Kdecf17        Transmit DEC F17 sequence\n");
        break;
    case  K_DECF18    : 
        printf("\\Kdecf18        Transmit DEC F18 sequence\n");
        break;
    case  K_DECF19    : 
        printf("\\Kdecf19        Transmit DEC F19 sequence\n");
        break;
    case  K_DECF20    : 
        printf("\\Kdecf20        Transmit DEC F20 sequence\n");
        break;

/* DEC editing keys */

    case  K_DECFIND   : 		/* DEC Find key */
        printf("\\Kdecfind       Transmit DEC FIND sequence\n");
        break;
    case  K_DECINSERT : 		/* DEC Insert key */
        printf("\\Kdecinsert     Transmit DEC INSERT HERE sequence\n");
        break;
    case  K_DECREMOVE : 		/* DEC Remove key */
        printf("\\Kdecremove     Transmit DEC REMOVE sequence\n");
        break;
    case  K_DECSELECT : 		/* DEC Select key */
        printf("\\Kdecfselect    Transmit DEC SELECT sequence\n");
        break;
    case  K_DECPREV   : 		/* DEC Previous Screen key */
        printf("\\Kdecprev       Transmit DEC PREV SCREEN sequence\n");
        break;
    case  K_DECNEXT   : 		/* DEC Next Screen key */
        printf("\\Kdecnext       Transmit DEC NEXT SCREEN sequence\n");
        break;

/* DEC User-Defined Keys */

    case  K_UDKF1     : 		/* F1 - F5 are XTERM extensions */
      printf("\\Kudkf1         Transmit XTERM F1 User Defined Key sequence\n");
      break;
    case  K_UDKF2     : 
      printf("\\Kudkf2         Transmit XTERM F2 User Defined Key sequence\n");
      break;
    case  K_UDKF3     : 
      printf("\\Kudkf3         Transmit XTERM F3 User Defined Key sequence\n");
      break;
    case  K_UDKF4     : 
      printf("\\Kudkf4         Transmit XTERM F4 User Defined Key sequence\n");
      break;
    case  K_UDKF5     : 
      printf("\\Kudkf5         Transmit XTERM F5 User Defined Key sequence\n");
      break;
    case  K_UDKF6     : 		/* DEC User Defined Key F6 */
      printf("\\Kudkf6         Transmit DEC F6 User Defined Key sequence\n");
      break;
    case  K_UDKF7     : 		/* DEC User Defined Key F7 */
      printf("\\Kudkf7         Transmit DEC F7 User Defined Key sequence\n");
      break;
    case  K_UDKF8     : 		/* etc ... through F20 */
      printf("\\Kudkf8         Transmit DEC F8 User Defined Key sequence\n");
      break;
    case  K_UDKF9     : 
      printf("\\Kudkf9         Transmit DEC F9 User Defined Key sequence\n");
      break;
    case  K_UDKF10    : 
      printf("\\Kudkf10        Transmit DEC F10 User Defined Key sequence\n");
      break;
    case  K_UDKF11    : 
      printf("\\Kudkf11        Transmit DEC F11 User Defined Key sequence\n");
      break;
    case  K_UDKF12    : 
      printf("\\Kudkf12        Transmit DEC F12 User Defined Key sequence\n");
      break;
    case  K_UDKF13    : 
      printf("\\Kudkf13        Transmit DEC F13 User Defined Key sequence\n");
      break;
    case  K_UDKF14    : 
      printf("\\Kudkf14        Transmit DEC F14 User Defined Key sequence\n");
      break;
    case  K_UDKHELP   : 
      printf(
      "\\Kudkhelp,\\Kudkf15  Transmit DEC HELP User Defined Key sequence\n");
      break;
    case  K_UDKDO     : 
      printf(
      "\\Kudkdo,\\Kudkf16    Transmit DEC DO User Defined Key sequence\n");
      break;
    case  K_UDKF17    : 
      printf("\\Kudkf17        Transmit DEC F17 User Defined Key sequence\n");
      break;
    case  K_UDKF18    : 
      printf("\\Kudkf18        Transmit DEC F18 User Defined Key sequence\n");
      break;
    case  K_UDKF19    : 
      printf("\\Kudkf19        Transmit DEC F19 User Defined Key sequence\n");
      break;
    case  K_UDKF20    : 
      printf("\\Kudkf20        Transmit DEC F20 User Defined Key sequence\n");
      break;

/* Emacs Keys */
    case  K_EMACS_OVER:
      printf(
     "\\Kemacs_overwrite  Transmit EMACS Overwrite toggle command sequence\n");
      break;

/* Kermit screen-scrolling keys */

    case  K_DNONE     : 		/* Screen rollback: down one line */
      printf("\\Kdnone         Screen rollback: down one line\n");
      break;
    case  K_DNSCN     : 		/* Screen rollback: down one screen */
      printf("\\Kdnscn         Screen rollback: down one screen\n");
      break;
    case  K_UPONE     : 		/* Screen rollback: Up one line */
      printf("\\Kupone         Screen rollback: up one line\n");
      break;
    case  K_UPSCN     : 		/* Screen rollback: Up one screen */
      printf("\\Kupscn         Screen rollback: up one screen\n");
      break;
    case  K_ENDSCN    : 		/* Screen rollback: latest screen */
      printf("\\Kendscn        Screen rollback: latest screen\n");
      break;
    case  K_HOMSCN    : 		/* Screen rollback: oldest screen */
      printf("\\Khomscn        Screen rollback: oldest screen\n");
      break;
    case  K_GO_BOOK   :         /* Scroll to bookmark */
      printf("\\Kgobook        Screen rollback: go to bookmark\n");
      break;
    case  K_GOTO      :         /* Scroll to line number */
      printf("\\Kgoto          Screen rollback: go to line number\n");
      break;

    case  K_LFONE     : 		/* Horizontal Scroll: Left one cell */
      printf("\\Klfone         Horizontal Scroll: Left one column\n");
      break;
    case  K_LFPAGE    : 		/* Horizontal Scroll: Left one page */
      printf("\\Klfpage        Horizontal Scroll: Left eight columns\n");
      break;
    case  K_LFALL     : 
      printf("\\Klfall         Horizontal Scroll: Left to margin\n");
      break;
    case  K_RTONE     : 		/* Horizontal Scroll: Right one cell */
      printf("\\Krtone         Horizontal Scroll: Right one column\n");
      break;
    case  K_RTPAGE    : 		/* Horizontal Scroll: Right one page */
      printf("\\Krtpage        Horizontal Scroll: Right eight columns\n");
      break;
    case  K_RTALL     :         
      printf("\\Krtall         Horizontal Scroll: Right to margin\n");
      break;

/* Keyboard language switching verbs */

    case  K_KB_ENG    : 		/* English keyboard mode */
      printf("\\Kkbenglish     Switch to Normal (English) keyboard mode\n");
      break;
    case  K_KB_HEB    : 		/* Hebrew keyboard mode */
      printf("\\Kkbhebrew      Switch to Hebrew keyboard mode\n");
      break;
    case  K_KB_RUS    : 		/* Russian keyboard mode */
      printf("\\Kkbrussian     Switch to Russian keyboard mode\n");
      break;
    case  K_KB_EMA    :  		/* Emacs keyboard mode */
      printf("\\Kkbemacs       Switch to EMACS keyboard mode\n");
      break;
    case  K_KB_WP     : 		/* Word Perfect 5.1 mode */
      printf("\\Kkbwp          Switch to Word Perfect 5.1 keyboard mode\n");
      break;

/* Mark Mode actions */

    case  K_MARK_START  :       /* Enter Mark Mode/Start marking */
      printf("\\Kmarkstart     Mark Mode: Enter mode or Start marking\n");
      break;
    case  K_MARK_CANCEL :       /* Exit Mark Mode - Do Nothing */
      printf("\\Kmarkcancel    Mark Mode: Cancel mode\n");
      break;
    case  K_MARK_COPYCLIP:      /* Exit Mark Mode - Copy data to clipboard */
      printf("\\Kmarkcopyclip  Mark Mode: Copy marked text to clipboard\n");
      break;
    case  K_MARK_COPYHOST:      /* Exit Mark Mode - Copy data to host   */
      printf("\\Kmarkcopyhost  Mark Mode: Copy marked text to host\n");
      break;
    case  K_MARK_SELECT :       /* Exit Mark Mode - Select */
      printf(
      "\\Kmarkselect    Mark Mode: Place marked text into \v(select)\n");
      break;
    case  K_BACKSRCH    :            /* Search Backwards for text */
      printf("\\Kbacksearch    Search: Begin backward search for text\n");
      break;
    case  K_FWDSRCH     :            /* Search Forwards for text */
      printf("\\Kfwdsearch     Search: Begin forward search for text\n");
      break;
    case  K_BACKNEXT    :     /* Search Backwards for next instance of text */
      printf(
      "\\Kbacknext      Search: Find next instance of text backwards\n");
      break;
    case  K_FWDNEXT     :      /* Search Forwards for next instance of text */
      printf("\\Kfwdnext       Search: Find next instance of text forwards\n");
      break;

/* Miscellaneous Kermit actions */

    case  K_EXIT        :		/* Return to command parser */
      printf("\\Kexit          Toggle between COMMAND and CONNECT modes\n");
      break;
    case  K_BREAK       :		/* Send a BREAK */
      printf("\\Kbreak         Transmit BREAK signal to host\n");
      break;
    case  K_RESET       :		/* Reset emulator */
      printf("\\Kreset         Reset Terminal Emulator to user defaults\n");
      break;
    case  K_DOS         :		/* Push to DOS (i.e. OS/2) */
      printf("\\Kdos,\\Kos2     Push to Command Shell\n");
      break;
    case  K_HANGUP      :		/* Hang up the connection */
      printf("\\Khangup        Hangup the active connection\n");
      break;
    case  K_DUMP        :		/* Dump/Print current screen */
      printf(
     "\\Kdump          Dump/copy current screen to SET PRINTER device/file\n");
      break;
    case  K_LBREAK      :		/* Send a Long BREAK */
      printf("\\Klbreak        Transmit LONG BREAK signal to host\n");
      break;
    case  K_NULL        :		/* Send a NUL */
      printf("\\Knull          Transmit NULL ('\0') character to host\n");
      break;
    case  K_HELP        :		/* Pop-up help */
      printf("\\Khelp          Raise Pop-Up help display\n");
      break;
    case  K_HOLDSCRN    :		/* Hold screen */
      printf("\\Kholdscrn      Pause data input during CONNECT mode\n");
      break;
    case  K_IGNORE      :		/* Ignore this key, don't even beep */
      printf("\\Kignore        Ignore key\n");
      break;
    case  K_LOGOFF      :		/* Turn off session logging */
      printf("\\Klogoff        Turn off session logging\n");
      break;
    case  K_LOGON       :		/* Turn on session logging */
      printf("\\Klogon         Turn on session logging\n");
      break;
#ifdef COMMENT
    case MODELINE:
    case  K_NETHOLD     :		/* Put network connection on hold */
    case  K_NEXTSESS    :		/* Toggle to next network session */
#endif /* COMMENT */

    case  K_STATUS      :		/* Show status */
      printf(
     "\\Kstatus        Toggle statusline (None, Indicator, Host Writeable)\n");
      break;
    case  K_TERMTYPE    :		/* Toggle term type: text/graphics */
      printf("\\Ktermtype      Toggle Terminal Type\n");
      break;
    case  K_PRTCTRL     :		/* Print Controller mode */
      printf("\\Kprtctrl       Toggle Ctrl-Print (transparent) mode\n");
      break;
    case  K_PRINTFF     :		/* Print formfeed */
      printf("\\Kprintff       Output Form Feed to SET PRINTER device\n");
      break;
    case  K_FLIPSCN     :		/* Flip screen */
      printf("\\Kflipscn       Reverse foreground and background colors\n");
      break;
    case  K_DEBUG       :		/* Toggle debugging */
      printf("\\Kdebug         Toggle Terminal Debug mode\n");
      break;
    case  K_TN_AO       :		/* TELNET Cancel Output */
      printf("\\Ktn_ao         TELNET: Transmit Cancel-Output request\n");
      break;
    case  K_TN_AYT      :		/* TELNET Are You There */
      printf("\\Ktnayt         TELNET: Transmit Are You There? request\n");
      break;
    case  K_TN_EC       :		/* TELNET Erase Character */
      printf("\\Ktn_ec         TELNET: Transmit Erase Character request\n");
      break;
    case  K_TN_EL       :		/* TELNET Erase Line */
      printf("\\Ktn_el         TELNET: Transmit Erase Line request\n");
      break;
    case  K_TN_GA       :		/* TELNET Go Ahead */
      printf("\\Ktn_ga         TELNET: Transmit Go Ahead request\n");
      break;
    case  K_TN_IP       :		/* TELNET Interrupt Process */
      printf("\\Ktn_ip         TELNET: Transmit Interrupt Process request\n");
      break;
    case  K_TN_LOGOUT   :		/* TELNET Logout */
      printf("\\Ktn_logout     TELNET: Transmit Do Logout Option\n");
      break;
    case  K_PASTE       :	        /* Paste data from clipboard */
      printf("\\Kpaste         Paste data from clipboard to host\n");
      break;
    case  K_CLRSCRN     :       	/* Clear Terminal Screen */
      printf("\\Kclearscreen   Clear the Terminal screen\n");
      break;
    case  K_PRTAUTO     :     		/* Print Auto mode */
      printf("\\Kprtauto       Toggle Auto-Print mode\n");
      break;
    case  K_PRTCOPY     :     		/* Print Copy mode */
      printf("\\Kprtcopy       Toggle Copy-Print mode\n");
      break;
    case  K_ANSWERBACK  :      		/* Transmit Answerback String */
      printf("\\Kanswerback    Transmit answerback string to host\n");
      break;  
    case  K_SET_BOOK    :       	/* Set Bookmark */
      printf("\\Ksetbook       Set bookmark\n");
      break;
    case  K_QUIT        :       	/* Quit Kermit */
      printf("\\Kquit          Hangup connection and quit kermit\n");
      break;
    case  K_KEYCLICK    :		/* Toggle Keyclick */
      printf("\\Kkeyclick      Toggle Keyclick mode\n");
      break;
    case  K_LOGDEBUG    :		/* Toggle Debug Log File */
      printf("\\Klogdebug      Toggle Debug Logging to File\n");
      break;
    case  K_FNKEYS      :		/* Show Function Key Labels */
      printf("\\Kfnkeys        Display Function Key Labels\n");
      break;

#ifdef OS2MOUSE
/* Mouse only Kverbs */

    case  K_MOUSE_CURPOS :             
      printf("\\Kmousecurpos   Mouse: Move host cursor to position\n");
      break;
    case  K_MOUSE_MARK   :       
      printf(
     "\\Kmousemark     Mouse: Mark text for selection (drag event only)\n");
      break;
    case  K_MOUSE_URL    :	    
      printf("\\Kmouseurl      Mouse: Start browser with selected URL\n");
      break;
#endif /* OS2MOUSE */

/* ANSI Function Key definitions */
    case  K_ANSIF01	     :	
      printf("\\Kansif01       Transmit SCOANSI/AT386: F1 \n");
      break;
    case  K_ANSIF02	     :	
      printf("\\Kansif02       Transmit SCOANSI/AT386: F2 \n");
      break;
    case  K_ANSIF03	     :	
      printf("\\Kansif03       Transmit SCOANSI/AT386: F3 \n");
      break;
    case  K_ANSIF04	     :	
      printf("\\Kansif04       Transmit SCOANSI/AT386: F4 \n");
      break;
    case  K_ANSIF05	     :	
      printf("\\Kansif05       Transmit SCOANSI/AT386: F5 \n");
      break;
    case  K_ANSIF06	     :	
      printf("\\Kansif06       Transmit SCOANSI/AT386: F6 \n");
      break;
    case  K_ANSIF07	     :	
      printf("\\Kansif07       Transmit SCOANSI/AT386: F7 \n");
      break;
    case  K_ANSIF08	     :	
      printf("\\Kansif08       Transmit SCOANSI/AT386: F8 \n");
      break;
    case  K_ANSIF09	     :	
      printf("\\Kansif09       Transmit SCOANSI/AT386: F9 \n");
      break;
    case  K_ANSIF10	     :		
      printf("\\Kansif10       Transmit SCOANSI/AT386: F10\n");
      break;
    case  K_ANSIF11	     :		
      printf("\\Kansif11       Transmit SCOANSI/AT386: F11\n");
      break;
    case  K_ANSIF12	     :		
      printf("\\Kansif12       Transmit SCOANSI/AT386: F12\n");
      break;
    case  K_ANSIF13	     :		
      printf("\\Kansif13       Transmit SCOANSI/AT386: Shift-F1 \n");
      break;                                     
    case  K_ANSIF14	     :		           
      printf("\\Kansif14       Transmit SCOANSI/AT386: Shift-F2 \n");
      break;                                     
    case  K_ANSIF15	     :		           
      printf("\\Kansif15       Transmit SCOANSI/AT386: Shift-F3 \n");
      break;                                     
    case  K_ANSIF16	     :		           
      printf("\\Kansif16       Transmit SCOANSI/AT386: Shift-F4 \n");
      break;                                     
    case  K_ANSIF17	     :		           
      printf("\\Kansif17       Transmit SCOANSI/AT386: Shift-F5 \n");
      break;                                     
    case  K_ANSIF18	     :		           
      printf("\\Kansif18       Transmit SCOANSI/AT386: Shift-F6 \n");
      break;                                     
    case  K_ANSIF19	     :		           
      printf("\\Kansif19       Transmit SCOANSI/AT386: Shift-F7 \n");
      break;                                     
    case  K_ANSIF20	     :		           
      printf("\\Kansif20       Transmit SCOANSI/AT386: Shift-F8 \n");
      break;                                     
    case  K_ANSIF21	     :		           
      printf("\\Kansif21       Transmit SCOANSI/AT386: Shift-F9 \n");
      break;                                     
    case  K_ANSIF22	     :		           
      printf("\\Kansif22       Transmit SCOANSI/AT386: Shift-F10\n");
      break;                                     
    case  K_ANSIF23	     :		           
      printf("\\Kansif23       Transmit SCOANSI/AT386: Shift-F11\n");
      break;                                     
    case  K_ANSIF24	     :		           
      printf("\\Kansif24       Transmit SCOANSI/AT386: Shift-F12\n");
      break;
    case  K_ANSIF25	     :		
      printf("\\Kansif25       Transmit SCOANSI/AT386: Ctrl-F1 \n");
      break;                                     
    case  K_ANSIF26	     :		           
      printf("\\Kansif26       Transmit SCOANSI/AT386: Ctrl-F2 \n");
      break;                                     
    case  K_ANSIF27	     :		           
      printf("\\Kansif27       Transmit SCOANSI/AT386: Ctrl-F3 \n");
      break;                                     
    case  K_ANSIF28	     :		           
      printf("\\Kansif28       Transmit SCOANSI/AT386: Ctrl-F4 \n");
      break;                                     
    case  K_ANSIF29	     :		           
      printf("\\Kansif29       Transmit SCOANSI/AT386: Ctrl-F5 \n");
      break;                                     
    case  K_ANSIF30	     :		           
      printf("\\Kansif30       Transmit SCOANSI/AT386: Ctrl-F6 \n");
      break;                                     
    case  K_ANSIF31	     :		           
      printf("\\Kansif31       Transmit SCOANSI/AT386: Ctrl-F7 \n");
      break;                                     
    case  K_ANSIF32	     :		           
      printf("\\Kansif32       Transmit SCOANSI/AT386: Ctrl-F8 \n");
      break;                                     
    case  K_ANSIF33	     :		           
      printf("\\Kansif33       Transmit SCOANSI/AT386: Ctrl-F9 \n");
      break;                                     
    case  K_ANSIF34	     :		           
      printf("\\Kansif34       Transmit SCOANSI/AT386: Ctrl-F10\n");
      break;                                     
    case  K_ANSIF35	     :		           
      printf("\\Kansif35       Transmit SCOANSI/AT386: Ctrl-F11\n");
      break;                                     
    case  K_ANSIF36	     :		           
      printf("\\Kansif36       Transmit SCOANSI/AT386: Ctrl-F12\n");
      break;
    case  K_ANSIF37	     :		
      printf("\\Kansif37       Transmit SCOANSI/AT386: Ctrl-Shift-F1 \n");
      break;                                     
    case  K_ANSIF38	     :		           
      printf("\\Kansif38       Transmit SCOANSI/AT386: Ctrl-Shift-F2 \n");
      break;                                     
    case  K_ANSIF39	     :		           
      printf("\\Kansif39       Transmit SCOANSI/AT386: Ctrl-Shift-F3 \n");
      break;                                     
    case  K_ANSIF40	     :		           
      printf("\\Kansif40       Transmit SCOANSI/AT386: Ctrl-Shift-F4 \n");
      break;                                     
    case  K_ANSIF41	     :		           
      printf("\\Kansif41       Transmit SCOANSI/AT386: Ctrl-Shift-F5 \n");
      break;                                     
    case  K_ANSIF42	     :		           
      printf("\\Kansif42       Transmit SCOANSI/AT386: Ctrl-Shift-F6 \n");
      break;                                     
    case  K_ANSIF43	     :		           
      printf("\\Kansif43       Transmit SCOANSI/AT386: Ctrl-Shift-F7 \n");
      break;                                     
    case  K_ANSIF44	     :		           
      printf("\\Kansif44       Transmit SCOANSI/AT386: Ctrl-Shift-F8 \n");
      break;                                     
    case  K_ANSIF45	     :		           
      printf("\\Kansif45       Transmit SCOANSI/AT386: Ctrl-Shift-F9 \n");
      break;                                     
    case  K_ANSIF46	     :		           
      printf("\\Kansif46       Transmit SCOANSI/AT386: Ctrl-Shift-F10\n");
      break;                                     
    case  K_ANSIF47	     :		           
      printf("\\Kansif47       Transmit SCOANSI/AT386: Ctrl-Shift-F11\n");
      break;                                     
    case  K_ANSIF48	     :		           
      printf("\\Kansif48       Transmit SCOANSI/AT386: Ctrl-Shift-F12\n");
      break;
    case  K_ANSIF49	     :		
      printf("\\Kansif49       Transmit SCOANSI/AT386: Home\n");
      break;
    case  K_ANSIF50	     :		
      printf("\\Kansif50       Transmit SCOANSI/AT386: Up Arrow\n");
      break;
    case  K_ANSIF51	     :		
      printf("\\Kansif51       Transmit SCOANSI/AT386: PgUp\n");
      break;
    case  K_ANSIF52	     :		
      printf("\\Kansif52       Transmit SCOANSI/AT386: Ctrl-Shift-Subtract\n");
      break;
    case  K_ANSIF53	     :		
      printf("\\Kansif53       Transmit SCOANSI/AT386: Left Arrow\n");
      break;
    case  K_ANSIF54	     :		
      printf("\\Kansif54       Transmit SCOANSI/AT386: Clear\n");
      break;
    case  K_ANSIF55	     :		
      printf("\\Kansif55       Transmit SCOANSI/AT386: Right Arrow\n");
      break;
    case  K_ANSIF56	     :		
      printf("\\Kansif56       Transmit SCOANSI/AT386: Shift-Add\n");
      break;
    case  K_ANSIF57	     :		
      printf("\\Kansif57       Transmit SCOANSI/AT386: End\n");
      break;
    case  K_ANSIF58	     :		
      printf("\\Kansif58       Transmit SCOANSI/AT386: Down Arrow\n");
      break;
    case  K_ANSIF59	     :		
      printf("\\Kansif59       Transmit SCOANSI/AT386: PgDn\n");
      break;
    case  K_ANSIF60	     :		
      printf("\\Kansif60       Transmit SCOANSI/AT386: Insert\n");
      break;
    case  K_ANSIF61	     :		
      printf("\\Kansif61       Transmit SCOANSI/AT386: (not named)\n");
      break;

/* WYSE Function Keys (unshifted) */
    case  K_WYF01	     :		
      printf("\\Kwyf01         Transmit WYSE 30/50/60: F1       \n");
      break;
    case  K_WYF02	     :		
      printf("\\Kwyf02         Transmit WYSE 30/50/60: F2              \n");
      break;
    case  K_WYF03	     :		
      printf("\\Kwyf03         Transmit WYSE 30/50/60: F3             \n");
      break;
    case  K_WYF04	     :		
      printf("\\Kwyf04         Transmit WYSE 30/50/60: F4              \n");
      break;
    case  K_WYF05	     :		
      printf("\\Kwyf05         Transmit WYSE 30/50/60: F5              \n");
      break;
    case  K_WYF06	     :		
      printf("\\Kwyf06         Transmit WYSE 30/50/60: F6              \n");
      break;
    case  K_WYF07	     :		
      printf("\\Kwyf07         Transmit WYSE 30/50/60: F7              \n");
      break;
    case  K_WYF08	     :		
      printf("\\Kwyf08         Transmit WYSE 30/50/60: F8              \n");
      break;
    case  K_WYF09	     :		
      printf("\\Kwyf09         Transmit WYSE 30/50/60: F9              \n");
      break;
    case  K_WYF10	     :			
      printf("\\Kwyf10         Transmit WYSE 30/50/60: F10             \n");
      break;
    case  K_WYF11	     :			
      printf("\\Kwyf11         Transmit WYSE 30/50/60: F11             \n");
      break;
    case  K_WYF12	     :			
      printf("\\Kwyf12         Transmit WYSE 30/50/60: F12             \n");
      break;
    case  K_WYF13	     :			
      printf("\\Kwyf13         Transmit WYSE 30/50/60: F13             \n");
      break;
    case  K_WYF14	     :			
      printf("\\Kwyf14         Transmit WYSE 30/50/60: F14             \n");
      break;
    case  K_WYF15	     :			
      printf("\\Kwyf15         Transmit WYSE 30/50/60: F15             \n");
      break;
    case  K_WYF16	     :			
      printf("\\Kwyf16         Transmit WYSE 30/50/60: F16             \n");
      break;

/* WYSE Function Keys (shifted) */
    case  K_WYSF01	     :	
      printf("\\Kwysf01        Transmit WYSE 30/50/60: Shift-F1 \n");
      break;                                     
    case  K_WYSF02	     :	                   
      printf("\\Kwysf02        Transmit WYSE 30/50/60: Shift-F2 \n");
      break;                                     
    case  K_WYSF03            :	                   
      printf("\\Kwysf03        Transmit WYSE 30/50/60: Shift-F3 \n");
      break;                                     
    case  K_WYSF04            :	                   
      printf("\\Kwysf04        Transmit WYSE 30/50/60: Shift-F4 \n");
      break;                                     
    case  K_WYSF05            :	                   
      printf("\\Kwysf05        Transmit WYSE 30/50/60: Shift-F5 \n");
      break;                                     
    case  K_WYSF06            :	                   
      printf("\\Kwysf06        Transmit WYSE 30/50/60: Shift-F6 \n");
      break;                                     
    case  K_WYSF07            :	                   
      printf("\\Kwysf07        Transmit WYSE 30/50/60: Shift-F7 \n");
      break;                                     
    case  K_WYSF08            :	                   
      printf("\\Kwysf08        Transmit WYSE 30/50/60: Shift-F8 \n");
      break;                                     
    case  K_WYSF09            :	                   
      printf("\\Kwysf09        Transmit WYSE 30/50/60: Shift-F9 \n");
      break;                                     
    case  K_WYSF10            :		           
      printf("\\Kwysf10        Transmit WYSE 30/50/60: Shift-F10\n");
      break;                                     
    case  K_WYSF11            :		           
      printf("\\Kwysf11        Transmit WYSE 30/50/60: Shift-F11\n");
      break;                                     
    case  K_WYSF12            :		           
      printf("\\Kwysf12        Transmit WYSE 30/50/60: Shift-F12\n");
      break;                                     
    case  K_WYSF13            :		           
      printf("\\Kwysf13        Transmit WYSE 30/50/60: Shift-F13\n");
      break;                                     
    case  K_WYSF14            :		           
      printf("\\Kwysf14        Transmit WYSE 30/50/60: Shift-F14\n");
      break;                                     
    case  K_WYSF15            :		           
      printf("\\Kwysf15        Transmit WYSE 30/50/60: Shift-F15\n");
      break;                                     
    case  K_WYSF16            :		           
      printf("\\Kwysf16        Transmit WYSE 30/50/60: Shift-F16\n");
      break;

/* WYSE Edit and Special Keys */
    case  K_WYBS         :   
      printf("\\Kwybs          Transmit WYSE 30/50/60: Backspace       \n");
      break;
    case  K_WYCLRLN	     :	
      printf("\\Kwyclrln       Transmit WYSE 30/50/60: Clear Line      \n");
      break;
    case  K_WYSCLRLN     :	
      printf("\\Kwysclrln      Transmit WYSE 30/50/60: Shift-Clear Line\n");
      break;
    case  K_WYCLRPG      :   
      printf("\\Kwyclrpg       Transmit WYSE 30/50/60: Clear Page      \n");
      break;
    case  K_WYSCLRPG     :   
      printf("\\Kwysclrpg      Transmit WYSE 30/50/60: Shift-Clear Page\n");
      break;
    case  K_WYDELCHAR    :	
      printf("\\Kwydelchar     Transmit WYSE 30/50/60: Delete Char     \n");
      break;
    case  K_WYDELLN      :   
      printf("\\Kwydelln       Transmit WYSE 30/50/60: Delete Line     \n");
      break;
    case  K_WYENTER	     :	
      printf("\\Kwyenter       Transmit WYSE 30/50/60: Enter           \n");
      break;
    case  K_WYESC	     :	
      printf("\\Kwyesc         Transmit WYSE 30/50/60: Esc             \n");
      break;
    case  K_WYHOME	     :	
      printf("\\Kwyhome        Transmit WYSE 30/50/60: Home            \n");
      break;
    case  K_WYSHOME	     :	
      printf("\\Kwyshome       Transmit WYSE 30/50/60: Shift-Home      \n");
      break;
    case  K_WYINSERT     :	
      printf("\\Kwyinsert      Transmit WYSE 30/50/60: Insert          \n");
      break;
    case  K_WYINSCHAR    :	
      printf("\\Kwyinschar     Transmit WYSE 30/50/60: Insert Char     \n");
      break;
    case  K_WYINSLN	     :	
      printf("\\Kwyinsln       Transmit WYSE 30/50/60: Insert Line     \n");
      break;
    case  K_WYPGNEXT     :	
      printf("\\Kwypgnext      Transmit WYSE 30/50/60: Page Next       \n");
      break;
    case  K_WYPGPREV     :	
      printf("\\Kwypgprev      Transmit WYSE 30/50/60: Page Previous   \n");
      break;
    case  K_WYREPLACE    :	
      printf("\\Kwyreplace     Transmit WYSE 30/50/60: Replace         \n");
      break;
    case  K_WYRETURN     :	
      printf("\\Kwyreturn      Transmit WYSE 30/50/60: Return          \n");
      break;
    case  K_WYTAB	     :	
      printf("\\Kwytab         Transmit WYSE 30/50/60: Tab             \n");
      break;
    case  K_WYSTAB	     :	
      printf("\\Kwystab        Transmit WYSE 30/50/60: Shift-Tab       \n");
      break;
    case  K_WYPRTSCN     :	
      printf("\\Kwyprtscn      Transmit WYSE 30/50/60: Print Screen    \n");
      break;
    case  K_WYSESC       :   
      printf("\\Kwysesc        Transmit WYSE 30/50/60: Shift-Esc       \n");
      break;
    case  K_WYSBS        :   
      printf("\\Kwysbs         Transmit WYSE 30/50/60: Shift-Backspace \n");
      break;
    case  K_WYSENTER     :   
      printf("\\Kwysenter      Transmit WYSE 30/50/60: Shift-Enter     \n");
      break;
    case  K_WYSRETURN    :   
      printf("\\Kwysreturn     Transmit WYSE 30/50/60: Shift-Return    \n");
      break;
    case  K_WYUPARR	     :	
      printf("\\Kwyuparr       Transmit WYSE 30/50/60: Up Arrow        \n");
      break;
    case  K_WYDNARR	     :	
      printf("\\Kwydnarr       Transmit WYSE 30/50/60: Down Arrow      \n");
      break;
    case  K_WYLFARR	     :	
      printf("\\Kwylfarr       Transmit WYSE 30/50/60: Left Arrow      \n");
      break;
    case  K_WYRTARR	     :	
      printf("\\Kwyrtarr       Transmit WYSE 30/50/60: Right Arrow     \n");
      break;
    case  K_WYSUPARR     :	
      printf("\\Kwysuparr      Transmit WYSE 30/50/60: Shift-Up Arrow  \n");
      break;
    case  K_WYSDNARR     :	
      printf("\\Kwysdnarr      Transmit WYSE 30/50/60: Shift-Down Arrow\n");
      break;
    case  K_WYSLFARR     :	
      printf("\\Kwyslfarr      Transmit WYSE 30/50/60: Shift-Left Arrow\n");
      break;
    case  K_WYSRTARR     :	
      printf("\\Kwysrtarr      Transmit WYSE 30/50/60: Shift-Right Arrow\n");
      break;

/* Data General Function Keys (unshifted) */
    case  K_DGF01	     :		
      printf("\\Kdgf01         Transmit Data General: F1                 \n");
      break;                                    
    case  K_DGF02	     :		          
      printf("\\Kdgf01         Transmit Data General: F2                 \n");
      break;                                    
    case  K_DGF03	     :		          
      printf("\\Kdgf01         Transmit Data General: F3                 \n");
      break;                                    
    case  K_DGF04	     :		          
      printf("\\Kdgf01         Transmit Data General: F4                 \n");
      break;                                    
    case  K_DGF05	     :		          
      printf("\\Kdgf01         Transmit Data General: F5                 \n");
      break;                                    
    case  K_DGF06	     :		          
      printf("\\Kdgf01         Transmit Data General: F6                 \n");
      break;                                    
    case  K_DGF07	     :		          
      printf("\\Kdgf01         Transmit Data General: F7                 \n");
      break;                                    
    case  K_DGF08	     :		          
      printf("\\Kdgf01         Transmit Data General: F8                 \n");
      break;                                    
    case  K_DGF09	     :		          
      printf("\\Kdgf01         Transmit Data General: F9                 \n");
      break;                                    
    case  K_DGF10	     :		          
      printf("\\Kdgf01         Transmit Data General: F10                \n");
      break;                                    
    case  K_DGF11	     :		          
      printf("\\Kdgf01         Transmit Data General: F11                \n");
      break;                                    
    case  K_DGF12	     :		          
      printf("\\Kdgf01         Transmit Data General: F12                \n");
      break;                                    
    case  K_DGF13	     :		          
      printf("\\Kdgf01         Transmit Data General: F13                \n");
      break;                                    
    case  K_DGF14	     :		          
      printf("\\Kdgf01         Transmit Data General: F14                \n");
      break;                                    
    case  K_DGF15	     :		          
      printf("\\Kdgf01         Transmit Data General: F15                \n");
      break;

/* Data General Function Keys (shifted) */
    case  K_DGSF01	     :	
      printf(
      "\\Kdgsf01        Transmit Data General: Shift-F1                 \n");
      break;                                   
    case  K_DGSF02	     :	                 
      printf(
      "\\Kdgsf02        Transmit Data General: Shift-F2                 \n");
      break;                                   
    case  K_DGSF03	     :	                 
      printf(
      "\\Kdgsf03        Transmit Data General: Shift-F3                 \n");
      break;                                   
    case  K_DGSF04	     :	                 
      printf(
      "\\Kdgsf04        Transmit Data General: Shift-F4                 \n");
      break;                                   
    case  K_DGSF05	     :	                 
      printf(
      "\\Kdgsf05        Transmit Data General: Shift-F5                 \n");
      break;                                   
    case  K_DGSF06	     :	                 
      printf(
      "\\Kdgsf06        Transmit Data General: Shift-F6                 \n");
      break;                                   
    case  K_DGSF07	     :	                 
      printf(
      "\\Kdgsf07        Transmit Data General: Shift-F7                 \n");
      break;                                   
    case  K_DGSF08	     :	                 
      printf(
      "\\Kdgsf08        Transmit Data General: Shift-F8                 \n");
      break;                                   
    case  K_DGSF09	     :	                 
      printf(
      "\\Kdgsf09        Transmit Data General: Shift-F9                 \n");
      break;                                   
    case  K_DGSF10	     :	           
      printf(
      "\\Kdgsf10        Transmit Data General: Shift-F10                \n");
      break;                                   
    case  K_DGSF11	     :	           
      printf(
      "\\Kdgsf11        Transmit Data General: Shift-F11                \n");
      break;                                   
    case  K_DGSF12	     :	           
      printf(
      "\\Kdgsf12        Transmit Data General: Shift-F12                \n");
      break;                                   
    case  K_DGSF13	     :	           
      printf(
      "\\Kdgsf13        Transmit Data General: Shift-F13                \n");
      break;                                   
    case  K_DGSF14	     :	           
      printf(
      "\\Kdgsf14        Transmit Data General: Shift-F14                \n");
      break;                                   
    case  K_DGSF15	     :	           
      printf(
      "\\Kdgsf15        Transmit Data General: Shift-F15                \n");
      break;

/* Data General Function Keys (control) */
    case  K_DGCF01	     :  	
      printf(
      "\\Kdgcf01        Transmit Data General: Ctrl-F1                 \n");
      break;                                    
    case  K_DGCF02            :              
      printf(
      "\\Kdgcf02        Transmit Data General: Ctrl-F2                 \n");
      break;                                    
    case  K_DGCF03            :              
      printf(
      "\\Kdgcf03        Transmit Data General: Ctrl-F3                 \n");
      break;                                    
    case  K_DGCF04            :              
      printf(
      "\\Kdgcf04        Transmit Data General: Ctrl-F4                 \n");
      break;                                    
    case  K_DGCF05            :              
      printf(
      "\\Kdgcf05        Transmit Data General: Ctrl-F5                 \n");
      break;                                    
    case  K_DGCF06            :              
      printf(
      "\\Kdgcf06        Transmit Data General: Ctrl-F6                 \n");
      break;                                    
    case  K_DGCF07            :              
      printf(
      "\\Kdgcf07        Transmit Data General: Ctrl-F7                 \n");
      break;                                    
    case  K_DGCF08            :              
      printf(
      "\\Kdgcf08        Transmit Data General: Ctrl-F8                 \n");
      break;                                    
    case  K_DGCF09            :              
      printf(
      "\\Kdgcf09        Transmit Data General: Ctrl-F9                 \n");
      break;                                    
    case  K_DGCF10            :   	   
      printf(
      "\\Kdgcf10        Transmit Data General: Ctrl-F10                \n");
      break;                                    
    case  K_DGCF11            :   	   
      printf(
      "\\Kdgcf11        Transmit Data General: Ctrl-F11                \n");
      break;                                    
    case  K_DGCF12            :   	   
      printf(
      "\\Kdgcf12        Transmit Data General: Ctrl-F12                \n");
      break;                                    
    case  K_DGCF13            :   	   
      printf(
      "\\Kdgcf13        Transmit Data General: Ctrl-F13                \n");
      break;                                    
    case  K_DGCF14            :   	   
      printf(
      "\\Kdgcf14        Transmit Data General: Ctrl-F14                \n");
      break;                                    
    case  K_DGCF15            :   	   
      printf(
      "\\Kdgcf15        Transmit Data General: Ctrl-F15                \n");
      break;

/* Data General Function Keys (control shifted) */
    case  K_DGCSF01	     :	
      printf(
    "\\Kdgcsf01       Transmit Data General: Ctrl-Shift-F1                \n");
      break;                                               
    case  K_DGCSF02	     :	                             
      printf(
    "\\Kdgcsf02       Transmit Data General: Ctrl-Shift-F2                \n");
      break;                                               
    case  K_DGCSF03	     :	                             
      printf(
    "\\Kdgcsf03       Transmit Data General: Ctrl-Shift-F3                \n");
      break;                                               
    case  K_DGCSF04	     :	                             
      printf(
    "\\Kdgcsf04       Transmit Data General: Ctrl-Shift-F4                \n");
      break;                                               
    case  K_DGCSF05	     :	                             
      printf(
    "\\Kdgcsf05       Transmit Data General: Ctrl-Shift-F5                \n");
      break;                                               
    case  K_DGCSF06	     :	                             
      printf(
    "\\Kdgcsf06       Transmit Data General: Ctrl-Shift-F6                \n");
      break;                                               
    case  K_DGCSF07	     :	                             
      printf(
    "\\Kdgcsf07       Transmit Data General: Ctrl-Shift-F7                \n");
      break;                                               
    case  K_DGCSF08	     :	                             
      printf(
    "\\Kdgcsf08       Transmit Data General: Ctrl-Shift-F8                \n");
      break;                                               
    case  K_DGCSF09	     :	                             
      printf(
    "\\Kdgcsf09       Transmit Data General: Ctrl-Shift-F9                \n");
      break;                                               
    case  K_DGCSF10	     :	                             
      printf(
    "\\Kdgcsf10       Transmit Data General: Ctrl-Shift-F10               \n");
      break;                                               
    case  K_DGCSF11	     :	                             
      printf(
    "\\Kdgcsf11       Transmit Data General: Ctrl-Shift-F11               \n");
      break;                                               
    case  K_DGCSF12	     :	                             
      printf(
    "\\Kdgcsf12       Transmit Data General: Ctrl-Shift-F12               \n");
      break;                                               
    case  K_DGCSF13	     :	                             
      printf(
    "\\Kdgcsf13       Transmit Data General: Ctrl-Shift-F13               \n");
      break;                                               
    case  K_DGCSF14	     :	                             
      printf(
    "\\Kdgcsf14       Transmit Data General: Ctrl-Shift-F14               \n");
      break;                                               
    case  K_DGCSF15	     :	                             
      printf(
    "\\Kdgcsf15       Transmit Data General: Ctrl-Shift-F15               \n");
      break;

    case  K_DGUPARR	     :	
      printf("\\Kdguparr       Transmit Data General: Up Arrow          \n");
      break;
    case  K_DGDNARR	     :	
      printf("\\Kdgdnarr       Transmit Data General: Down Arrow        \n");
      break;
    case  K_DGLFARR	     :	
      printf("\\Kdglfarr       Transmit Data General: Left Arrow        \n");
      break;
    case  K_DGRTARR	     :	
      printf("\\Kdgrtarr       Transmit Data General: Right Arrow       \n");
      break;
    case  K_DGSUPARR     :	
      printf("\\Kdgsuparr      Transmit Data General: Shift-Up Arrow    \n");
      break;
    case  K_DGSDNARR     :	
      printf("\\Kdgsdnarr      Transmit Data General: Shift-Down Arrow  \n");
      break;
    case  K_DGSLFARR     :	
      printf("\\Kdgslfarr      Transmit Data General: Shift-Left Arrow  \n");
      break;
    case  K_DGSRTARR     :	
      printf("\\Kdgsrtarr      Transmit Data General: Shift-Right Arrow \n");
      break;

    case  K_DGERASEPAGE  :	
      printf("\\Kdgerasepage   Transmit Data General: Erase Page        \n");
      break;
    case  K_DGC1	     :   
      printf("\\Kdgc1          Transmit Data General: C1                \n");
      break;
    case  K_DGC2	     :	
      printf("\\Kdgc2          Transmit Data General: C2                \n");
      break;
    case  K_DGERASEEOL   :	
      printf("\\Kdgeraseeol    Transmit Data General: Erase EOL         \n");
      break;
    case  K_DGC3	     :	
      printf("\\Kdgc3          Transmit Data General: C3                \n");
      break;
    case  K_DGC4  	     :	
      printf("\\Kdgc4          Transmit Data General: C4                \n");
      break;
    case  K_DGCMDPRINT   :	
      printf("\\Kdgcmdprint    Transmit Data General: Command Print     \n");
      break;
    case  K_DGHOME       :   
      printf("\\Kdghome        Transmit Data General: Home              \n");
      break;
    case  K_DGSERASEPAGE :	
      printf("\\Kdgserasepage  Transmit Data General: Erase Page        \n");
      break;
    case  K_DGSC1	     :	
      printf("\\Kdgsc1         Transmit Data General: Shift-C1          \n");
      break;
    case  K_DGSC2	     :	
      printf("\\Kdgsc2         Transmit Data General: Shift-C2          \n");
      break;
    case  K_DGSERASEEOL  :	
      printf("\\Kdgseraseeol   Transmit Data General: Shift-Erase EOL  \n");
      break;
    case  K_DGSC3	     :	
      printf("\\Kdgsc3         Transmit Data General: Shift-C3          \n");
      break;
    case  K_DGSC4  	     :	
      printf("\\Kdgsc4         Transmit Data General: Shift-C4          \n");
      break;
    case  K_DGSCMDPRINT  :	
      printf("\\Kdgscmdprint   Transmit Data General: Shift-Command Print\n");
      break;
    case  K_DGBS         :   
      printf("\\Kdgbs          Transmit Data General: Backspace         \n");
      break;
    case  K_DGSHOME      :   
      printf("\\Kdshome        Transmit Data General: Shift-Home        \n");
      break;


/* Televideo Function Keys (unshifted) */
    case  K_TVIF01	     :		
      printf("\\Ktvif01        Transmit Televideo: F1       \n");
      break;
    case  K_TVIF02	     :	 
      printf("\\Ktvif02        Transmit Televideo: F2              \n");
      break;
    case  K_TVIF03	     :	 
      printf("\\Ktvif03        Transmit Televideo: F3             \n");
      break;
    case  K_TVIF04	     :	 
      printf("\\Ktvif04        Transmit Televideo: F4              \n");
      break;
    case  K_TVIF05	     :	 
      printf("\\Ktvif05        Transmit Televideo: F5              \n");
      break;
    case  K_TVIF06	     :	 
      printf("\\Ktvif06        Transmit Televideo: F6              \n");
      break;
    case  K_TVIF07	     :	 
      printf("\\Ktvif07        Transmit Televideo: F7              \n");
      break;
    case  K_TVIF08	     :	 
      printf("\\Ktvif08        Transmit Televideo: F8              \n");
      break;
    case  K_TVIF09	     :	 
      printf("\\Ktvif09        Transmit Televideo: F9              \n");
      break;
    case  K_TVIF10	     :	 	
      printf("\\Ktvif10        Transmit Televideo: F10             \n");
      break;
    case  K_TVIF11	     :	 	
      printf("\\Ktvif11        Transmit Televideo: F11             \n");
      break;
    case  K_TVIF12	     :	 	
      printf("\\Ktvif12        Transmit Televideo: F12             \n");
      break;
    case  K_TVIF13	     :	 	
      printf("\\Ktvif13        Transmit Televideo: F13             \n");
      break;
    case  K_TVIF14	     :	 	
      printf("\\Ktvif14        Transmit Televideo: F14             \n");
      break;
    case  K_TVIF15	     :	 	
      printf("\\Ktvif15        Transmit Televideo: F15             \n");
      break;
    case  K_TVIF16	     :	 	
      printf("\\Ktvif16        Transmit Televideo: F16             \n");
      break;

/* Televideo Function Keys (shifted) */
    case  K_TVISF01	     :	
      printf("\\Ktvisf01       Transmit Televideo: Shift-F1 \n");
      break;                                    
    case  K_TVISF02	     :	                  
      printf("\\Ktvisf02       Transmit Televideo: Shift-F2 \n");
      break;                                    
    case  K_TVISF03            :                    
      printf("\\Ktvisf03       Transmit Televideo: Shift-F3 \n");
      break;                                    
    case  K_TVISF04            :                    
      printf("\\Ktvisf04       Transmit Televideo: Shift-F4 \n");
      break;                                    
    case  K_TVISF05            :                    
      printf("\\Ktvisf05       Transmit Televideo: Shift-F5 \n");
      break;                                    
    case  K_TVISF06            :                    
      printf("\\Ktvisf06       Transmit Televideo: Shift-F6 \n");
      break;                                    
    case  K_TVISF07            :                    
      printf("\\Ktvisf07       Transmit Televideo: Shift-F7 \n");
      break;                                    
    case  K_TVISF08            :                    
      printf("\\Ktvisf08       Transmit Televideo: Shift-F8 \n");
      break;                                    
    case  K_TVISF09            :                    
      printf("\\Ktvisf09       Transmit Televideo: Shift-F9 \n");
      break;                                    
    case  K_TVISF10            : 	           
      printf("\\Ktvisf10       Transmit Televideo: Shift-F10\n");
      break;                                    
    case  K_TVISF11            : 	           
      printf("\\Ktvisf11       Transmit Televideo: Shift-F11\n");
      break;                                    
    case  K_TVISF12            : 	           
      printf("\\Ktvisf12       Transmit Televideo: Shift-F12\n");
      break;                                    
    case  K_TVISF13            : 	           
      printf("\\Ktvisf13       Transmit Televideo: Shift-F13\n");
      break;                                    
    case  K_TVISF14            : 	           
      printf("\\Ktvisf14       Transmit Televideo: Shift-F14\n");
      break;                                    
    case  K_TVISF15            : 	           
      printf("\\Ktvisf15       Transmit Televideo: Shift-F15\n");
      break;                                    
    case  K_TVISF16            : 	           
      printf("\\Ktvisf16       Transmit Televideo: Shift-F16\n");
      break;

/* Televideo Edit and Special Keys */
    case  K_TVIBS         :   
      printf("\\Ktvibs         Transmit Televideo: Backspace       \n");
      break;
    case  K_TVICLRLN	     :	
      printf("\\Ktviclrln      Transmit Televideo: Clear Line      \n");
      break;
    case  K_TVISCLRLN     :	
      printf("\\Ktvisclrln     Transmit Televideo: Shift-Clear Line\n");
      break;
    case  K_TVICLRPG      :   
      printf("\\Ktviclrpg      Transmit Televideo: Clear Page      \n");
      break;
    case  K_TVISCLRPG     :   
      printf("\\Ktvisclrpg     Transmit Televideo: Shift-Clear Page\n");
      break;
    case  K_TVIDELCHAR    :	
      printf("\\Ktvidelchar    Transmit Televideo: Delete Char     \n");
      break;
    case  K_TVIDELLN      :   
      printf("\\Ktvidelln      Transmit Televideo: Delete Line     \n");
      break;
    case  K_TVIENTER	     :	
      printf("\\Ktvienter      Transmit Televideo: Enter           \n");
      break;
    case  K_TVIESC	     :	
      printf("\\Ktviesc        Transmit Televideo: Esc             \n");
      break;
    case  K_TVIHOME	     :	
      printf("\\Ktvihome       Transmit Televideo: Home            \n");
      break;
    case  K_TVISHOME	     :	
      printf("\\Ktvishome      Transmit Televideo: Shift-Home      \n");
      break;
    case  K_TVIINSERT     :	
      printf("\\Ktviinsert     Transmit Televideo: Insert          \n");
      break;
    case  K_TVIINSCHAR    :	
      printf("\\Ktviinschar    Transmit Televideo: Insert Char     \n");
      break;
    case  K_TVIINSLN	     :	
      printf("\\Ktviinsln      Transmit Televideo: Insert Line     \n");
      break;
    case  K_TVIPGNEXT     :	
      printf("\\Ktvipgnext     Transmit Televideo: Page Next       \n");
      break;
    case  K_TVIPGPREV     :	
      printf("\\Ktvipgprev     Transmit Televideo: Page Previous   \n");
      break;
    case  K_TVIREPLACE    :	
      printf("\\Ktvireplace    Transmit Televideo: Replace         \n");
      break;
    case  K_TVIRETURN     :	
      printf("\\Ktvireturn     Transmit Televideo: Return          \n");
      break;
    case  K_TVITAB	     :	
      printf("\\Ktvitab        Transmit Televideo: Tab             \n");
      break;
    case  K_TVISTAB	     :	
      printf("\\Ktvistab       Transmit Televideo: Shift-Tab       \n");
      break;
    case  K_TVIPRTSCN     :	
      printf("\\Ktviprtscn     Transmit Televideo: Print Screen    \n");
      break;
    case  K_TVISESC       :   
      printf("\\Ktvisesc       Transmit Televideo: Shift-Esc       \n");
      break;
    case  K_TVISBS        :   
      printf("\\Ktvisbs        Transmit Televideo: Shift-Backspace \n");
      break;
    case  K_TVISENTER     :   
      printf("\\Ktvisenter     Transmit Televideo: Shift-Enter     \n");
      break;
    case  K_TVISRETURN    :   
      printf("\\Ktvisreturn    Transmit Televideo: Shift-Return    \n");
      break;
    case  K_TVIUPARR	     :	
      printf("\\Ktviuparr      Transmit Televideo: Up Arrow        \n");
      break;
    case  K_TVIDNARR	     :	
      printf("\\Ktvidnarr      Transmit Televideo: Down Arrow      \n");
      break;
    case  K_TVILFARR	     :	
      printf("\\Ktvilfarr      Transmit Televideo: Left Arrow      \n");
      break;
    case  K_TVIRTARR	     :	
      printf("\\Ktvirtarr      Transmit Televideo: Right Arrow     \n");
      break;
    case  K_TVISUPARR     :	
      printf("\\Ktvisuparr     Transmit Televideo: Shift-Up Arrow  \n");
      break;
    case  K_TVISDNARR     :	
      printf("\\Ktvisdnarr     Transmit Televideo: Shift-Down Arrow\n");
      break;
    case  K_TVISLFARR     :	
      printf("\\Ktvislfarr     Transmit Televideo: Shift-Left Arrow\n");
      break;
    case  K_TVISRTARR     :	
      printf("\\Ktvisrtarr     Transmit Televideo: Shift-Right Arrow\n");
      break;

/* HP Function and Edit keys */
    case  K_HPF01	     :		
      printf("\\Khpf01         Transmit Hewlett-Packard: F1       \n");
      break;
    case  K_HPF02	     :		
      printf("\\Khpf02         Transmit Hewlett-Packard: F2              \n");
      break;
    case  K_HPF03	     :		
      printf("\\Khpf03         Transmit Hewlett-Packard: F3             \n");
      break;
    case  K_HPF04	     :		
      printf("\\Khpf04         Transmit Hewlett-Packard: F4              \n");
      break;
    case  K_HPF05	     :		
      printf("\\Khpf05         Transmit Hewlett-Packard: F5              \n");
      break;
    case  K_HPF06	     :		
      printf("\\Khpf06         Transmit Hewlett-Packard: F6              \n");
      break;
    case  K_HPF07	     :		
      printf("\\Khpf07         Transmit Hewlett-Packard: F7              \n");
      break;
    case  K_HPF08	     :		
      printf("\\Khpf08         Transmit Hewlett-Packard: F8              \n");
      break;
    case  K_HPF09	     :		
      printf("\\Khpf09         Transmit Hewlett-Packard: F9              \n");
      break;
    case  K_HPF10	     :			
      printf("\\Khpf10         Transmit Hewlett-Packard: F10             \n");
      break;
    case  K_HPF11	     :			
      printf("\\Khpf11         Transmit Hewlett-Packard: F11             \n");
      break;
    case  K_HPF12	     :			
      printf("\\Khpf12         Transmit Hewlett-Packard: F12             \n");
      break;
    case  K_HPF13	     :			
      printf("\\Khpf13         Transmit Hewlett-Packard: F13             \n");
      break;
    case  K_HPF14	     :			
      printf("\\Khpf14         Transmit Hewlett-Packard: F14             \n");
      break;
    case  K_HPF15	     :			
      printf("\\Khpf15         Transmit Hewlett-Packard: F15             \n");
      break;
    case  K_HPF16	     :			
      printf("\\Khpf16         Transmit Hewlett-Packard: F16             \n");
      break;
    case  K_HPRETURN     : 
      printf("\\Khpreturn      Transmit Hewlett-Packard: Return\n");
      break;
    case  K_HPENTER	     : 
      printf("\\Khpenter       Transmit Hewlett-Packard: Enter (keypad)\n");
      break;
    case  K_HPBACKTAB	     : 
      printf("\\Khpbacktab     Transmit Hewlett-Packard: Back Tab\n");
      break;
        /* Siemens Nixdorf International 97801-5xx kverbs */
    case K_SNI_DOUBLE_0      : 
        printf("\\Ksni_00          Transmit SNI-97801-5xx: Double-Zero\n");
	break;                    
    case K_SNI_C_DOUBLE_0    :    
	printf(
"\\Ksni_c_00        Transmit SNI-97801-5xx: Ctrl-Double-Zero\n");
	break;                    
    case K_SNI_C_CE          :    
	printf("\\Ksni_c_ce        Transmit SNI-97801-5xx: Ctrl-CE\n");
	break;                
    case K_SNI_C_COMPOSE     :
	printf("\\Ksni_c_compose   Transmit SNI-97801-5xx: Ctrl-Compose\n");
	break;                    
    case K_SNI_C_DELETE_CHAR :    
	printf(
"\\Ksni_c_del_char  Transmit SNI-97801-5xx: Ctrl-Delete Char\n");
	break;                    
    case K_SNI_C_DELETE_LINE :    
	printf(
"\\Ksni_c_del_line  Transmit SNI-97801-5xx: Ctrl-Delete Line\n");
	break;                    
    case K_SNI_C_DELETE_WORD :    
	printf(
"\\Ksni_c_del_word  Transmit SNI-97801-5xx: Ctrl-Delete Word\n");
	break;                    
    case K_SNI_C_CURSOR_DOWN :    
	printf(
"\\Ksni_c_dnarr     Transmit SNI-97801-5xx: Ctrl-Cursor Down\n");
	break;                    
    case K_SNI_C_ENDMARKE    :    
	printf("\\Ksni_c_endmarke  Transmit SNI-97801-5xx: Ctrl-End Marke\n");
	break;                    
    case K_SNI_C_F01         :    
	printf("\\Ksni_c_f01       Transmit SNI-97801-5xx: Ctrl-F1\n");
	break;                    
    case K_SNI_C_F02         :    
	printf("\\Ksni_c_f02       Transmit SNI-97801-5xx: Ctrl-F2\n");
	break;                    
    case K_SNI_C_F03         :    
	printf("\\Ksni_c_f03       Transmit SNI-97801-5xx: Ctrl-F3\n");
	break;                    
    case K_SNI_C_F04         :    
	printf("\\Ksni_c_f04       Transmit SNI-97801-5xx: Ctrl-F4\n");
	break;                    
    case K_SNI_C_F05         :    
	printf("\\Ksni_c_f05       Transmit SNI-97801-5xx: Ctrl-F5\n");
	break;                    
    case K_SNI_C_F06         :    
	printf("\\Ksni_c_f06       Transmit SNI-97801-5xx: Ctrl-F6\n");
	break;                    
    case K_SNI_C_F07         :    
	printf("\\Ksni_c_f07       Transmit SNI-97801-5xx: Ctrl-F7\n");
	break;                    
    case K_SNI_C_F08         :    
	printf("\\Ksni_c_f08       Transmit SNI-97801-5xx: Ctrl-F8\n");
	break;                    
    case K_SNI_C_F09         :    
	printf("\\Ksni_c_f09       Transmit SNI-97801-5xx: Ctrl-F9\n");
	break;                    
    case K_SNI_C_F10         :    
	printf("\\Ksni_c_f10       Transmit SNI-97801-5xx: Ctrl-F10\n");
	break;                    
    case K_SNI_C_F11         :    
	printf("\\Ksni_c_f11       Transmit SNI-97801-5xx: Ctrl-F11\n");
	break;                    
    case K_SNI_C_F12         :    
	printf("\\Ksni_c_f12       Transmit SNI-97801-5xx: Ctrl-F12\n");
	break;                    
    case K_SNI_C_F13         :    
	printf("\\Ksni_c_f13       Transmit SNI-97801-5xx: Ctrl-F13\n");
	break;                    
    case K_SNI_C_F14         :    
	printf("\\Ksni_c_f14       Transmit SNI-97801-5xx: Ctrl-F14\n");
	break;                    
    case K_SNI_C_F15         :    
	printf("\\Ksni_c_f15       Transmit SNI-97801-5xx: Ctrl-F15\n");
	break;                    
    case K_SNI_C_F16         :    
	printf("\\Ksni_c_f16       Transmit SNI-97801-5xx: Ctrl-F16\n");
	break;                    
    case K_SNI_C_F17         :    
	printf("\\Ksni_c_f17       Transmit SNI-97801-5xx: Ctrl-F17\n");
	break;                    
    case K_SNI_C_F18         :    
	printf("\\Ksni_c_f18       Transmit SNI-97801-5xx: Ctrl-F18\n");
	break;                    
    case K_SNI_C_USER1        :    
	printf(
"\\Ksni_c_user1     Transmit SNI-97801-5xx: Ctrl-Key below F18\n");
	break;                    
    case K_SNI_C_F19         :    
	printf("\\Ksni_c_f19       Transmit SNI-97801-5xx: Ctrl-F19\n");
	break;                    
    case K_SNI_C_USER2       :    
	printf(
"\\Ksni_c_user2     Transmit SNI-97801-5xx: Ctrl-Key below F19\n");
	break;                    
    case K_SNI_C_F20         :    
	printf("\\Ksni_c_f20       Transmit SNI-97801-5xx: Ctrl-F20\n");
	break;                    
    case K_SNI_C_USER3       :    
	printf(
"\\Ksni_c_user3     Transmit SNI-97801-5xx: Ctrl-Key below F20\n");
	break;                    
    case K_SNI_C_F21         :    
	printf("\\Ksni_c_f21       Transmit SNI-97801-5xx: Ctrl-F21\n");
	break;                    
    case K_SNI_C_USER4       :    
	printf(
"\\Ksni_c_user4     Transmit SNI-97801-5xx: Ctrl-Key below F21\n");
	break;                    
    case K_SNI_C_F22         :    
	printf("\\Ksni_c_f22       Transmit SNI-97801-5xx: Ctrl-F22\n");
	break;                    
    case K_SNI_C_USER5       :    
	printf(
"\\Ksni_c_user5     Transmit SNI-97801-5xx: Ctrl-Key below F22\n");
	break;                    
    case K_SNI_C_HELP        :    
	printf("\\Ksni_c_help      Transmit SNI-97801-5xx: Ctrl-Help\n");
	break;                    
    case K_SNI_C_HOME        :    
	printf("\\Ksni_c_home      Transmit SNI-97801-5xx: Ctrl-Home\n");
	break;                    
    case K_SNI_C_INSERT_CHAR :    
	printf(
"\\Ksni_c_ins_char  Transmit SNI-97801-5xx: Ctrl-Insert Char\n");
	break;                    
    case K_SNI_C_INSERT_LINE :    
	printf(
"\\Ksni_c_ins_line  Transmit SNI-97801-5xx: Ctrl-Insert Line\n");
	break;                    
    case K_SNI_C_INSERT_WORD :    
	printf(
"\\Ksni_c_ins_word  Transmit SNI-97801-5xx: Ctrl-Insert Word\n");
	break;                    
    case K_SNI_C_LEFT_TAB    :    
	printf("\\Ksni_c_left_tab  Transmit SNI-97801-5xx: Ctrl-Left Tab\n");
	break;                    
    case K_SNI_C_CURSOR_LEFT :    
	printf(
"\\Ksni_c_lfarr     Transmit SNI-97801-5xx: Ctrl-Cursor Left\n");
	break;                    
    case K_SNI_C_MODE        :    
	printf("\\Ksni_c_mode      Transmit SNI-97801-5xx: Ctrl-Mode\n");
	break;                    
    case K_SNI_C_PAGE        :    
	printf("\\Ksni_c_page      Transmit SNI-97801-5xx: Ctrl-Page\n");
	break;                    
    case K_SNI_C_PRINT       :    
	printf("\\Ksni_c_print     Transmit SNI-97801-5xx: Ctrl-Print\n");
	break;                    
    case K_SNI_C_CURSOR_RIGHT:    
	printf(
"\\Ksni_c_rtarr     Transmit SNI-97801-5xx: Ctrl-Cursor Right\n");
	break;                
    case K_SNI_C_SCROLL_DOWN :
	printf(
"\\Ksni_c_scroll_dn Transmit SNI-97801-5xx: Ctrl-Scroll Down\n");
	break;                
    case K_SNI_C_SCROLL_UP   :
	printf("\\Ksni_c_scroll_up Transmit SNI-97801-5xx: Ctrl-Scroll Up\n");
	break;                
    case K_SNI_C_START       :
	printf("\\Ksni_c_start     Transmit SNI-97801-5xx: Ctrl-Start\n");
	break;                
    case K_SNI_C_CURSOR_UP   :
	printf("\\Ksni_c_uparr     Transmit SNI-97801-5xx: Ctrl-Cursor Up\n");
	break;                
    case K_SNI_C_TAB         :
	printf("\\Ksni_c_tab       Transmit SNI-97801-5xx: Ctrl-Tab\n");
	break;                
    case K_SNI_CE            :    
        printf("\\Ksni_ce          Transmit SNI-97801-5xx: CE\n");
	break;                    
    case K_SNI_COMPOSE       :    
	printf("\\Ksni_compose     Transmit SNI-97801-5xx: Compose\n");
	break;                    
    case K_SNI_DELETE_CHAR   :    
	printf("\\Ksni_del_char    Transmit SNI-97801-5xx: Delete Char\n");
	break;                    
    case K_SNI_DELETE_LINE   :    
	printf("\\Ksni_del_line    Transmit SNI-97801-5xx: Delete Line\n");
	break;                    
    case K_SNI_DELETE_WORD   :    
	printf("\\Ksni_del_word    Transmit SNI-97801-5xx: Delete Word\n");
	break;                    
    case K_SNI_CURSOR_DOWN   :    
	printf("\\Ksni_dnarr       Transmit SNI-97801-5xx: Cursor Down\n");
	break;                    
    case K_SNI_ENDMARKE      :    
	printf("\\Ksni_endmarke    Transmit SNI-97801-5xx: End Marke\n");
	break;                    
    case K_SNI_F01           :    
	printf("\\Ksni_f01         Transmit SNI-97801-5xx: F1\n");
	break;                    
    case K_SNI_F02           :    
	printf("\\Ksni_f02         Transmit SNI-97801-5xx: F2\n");
	break;                    
    case K_SNI_F03           :    
	printf("\\Ksni_f03         Transmit SNI-97801-5xx: F3\n");
	break;                    
    case K_SNI_F04           :    
	printf("\\Ksni_f04         Transmit SNI-97801-5xx: F4\n");
	break;                    
    case K_SNI_F05           :    
	printf("\\Ksni_f05         Transmit SNI-97801-5xx: F5\n");
	break;                    
    case K_SNI_F06           :    
	printf("\\Ksni_f06         Transmit SNI-97801-5xx: F6\n");
	break;                    
    case K_SNI_F07           :    
	printf("\\Ksni_f07         Transmit SNI-97801-5xx: F7\n");
	break;                    
    case K_SNI_F08           :    
	printf("\\Ksni_f08         Transmit SNI-97801-5xx: F8\n");
	break;                    
    case K_SNI_F09           :    
	printf("\\Ksni_f09         Transmit SNI-97801-5xx: F9\n");
	break;                    
    case K_SNI_F10           :    
	printf("\\Ksni_f10         Transmit SNI-97801-5xx: F10\n");
	break;                    
    case K_SNI_F11           :    
	printf("\\Ksni_f11         Transmit SNI-97801-5xx: F11\n");
	break;                    
    case K_SNI_F12           :    
	printf("\\Ksni_f12         Transmit SNI-97801-5xx: F12\n");
	break;                    
    case K_SNI_F13           :    
	printf("\\Ksni_f13         Transmit SNI-97801-5xx: F13\n");
	break;                    
    case K_SNI_F14           :    
	printf("\\Ksni_f14         Transmit SNI-97801-5xx: F14\n");
	break;                    
    case K_SNI_F15           :    
	printf("\\Ksni_f15         Transmit SNI-97801-5xx: F15\n");
	break;                    
    case K_SNI_F16           :    
	printf("\\Ksni_f16         Transmit SNI-97801-5xx: F16\n");
	break;                    
    case K_SNI_F17           :    
	printf("\\Ksni_f17         Transmit SNI-97801-5xx: F17\n");
	break;                    
    case K_SNI_F18           :    
	printf("\\Ksni_f18         Transmit SNI-97801-5xx: F18\n");
	break;                    
    case K_SNI_USER1          :    
	printf("\\Ksni_user1       Transmit SNI-97801-5xx: Key below F18\n");
	break;                    
    case K_SNI_F19           :    
	printf("\\Ksni_f19         Transmit SNI-97801-5xx: F19\n");
	break;                    
    case K_SNI_USER2          :    
	printf("\\Ksni_user2       Transmit SNI-97801-5xx: Key below F19\n");
	break;                    
    case K_SNI_F20           :    
	printf("\\Ksni_f20         Transmit SNI-97801-5xx: F20\n");
	break;                    
    case K_SNI_USER3          :    
	printf("\\Ksni_user3       Transmit SNI-97801-5xx: Key below F20\n");
	break;                    
    case K_SNI_F21           :    
	printf("\\Ksni_f21         Transmit SNI-97801-5xx: F21\n");
	break;                    
    case K_SNI_USER4          :    
	printf("\\Ksni_user4       Transmit SNI-97801-5xx: Key below F21\n");
	break;                    
    case K_SNI_F22           :    
	printf("\\Ksni_f22         Transmit SNI-97801-5xx: F22\n");
	break;                    
    case K_SNI_USER5          :    
	printf("\\Ksni_user5       Transmit SNI-97801-5xx: Key below F22\n");
	break;                    
    case K_SNI_HELP          :    
	printf("\\Ksni_help        Transmit SNI-97801-5xx: Help\n");
	break;                    
    case K_SNI_HOME          :    
	printf("\\Ksni_home        Transmit SNI-97801-5xx: Home\n");
	break;                    
    case K_SNI_INSERT_CHAR   :    
	printf("\\Ksni_ins_char    Transmit SNI-97801-5xx: Insert Char\n");
	break;                    
    case K_SNI_INSERT_LINE   :    
	printf("\\Ksni_ins_line    Transmit SNI-97801-5xx: Insert Line\n");
	break;                    
    case K_SNI_INSERT_WORD   :    
	printf("\\Ksni_ins_word    Transmit SNI-97801-5xx: Insert Word\n");
	break;                    
    case K_SNI_LEFT_TAB      :    
	printf("\\Ksni_left_tab    Transmit SNI-97801-5xx: Left Tab\n");
	break;                    
    case K_SNI_CURSOR_LEFT   :    
	printf("\\Ksni_lfarr       Transmit SNI-97801-5xx: Cursor Left\n");
	break;                    
    case K_SNI_MODE          :    
	printf("\\Ksni_mode        Transmit SNI-97801-5xx: Mode\n");
	break;                    
    case K_SNI_PAGE          :    
	printf("\\Ksni_page        Transmit SNI-97801-5xx: Page\n");
	break;                    
    case K_SNI_PRINT         :    
	printf("\\Ksni_print       Transmit SNI-97801-5xx: Print\n");
	break;                    
    case K_SNI_CURSOR_RIGHT  :    
	printf("\\Ksni_rtarr       Transmit SNI-97801-5xx: Cursor Right\n");
	break;                    
    case K_SNI_S_DOUBLE_0    :    
	printf(
"\\Ksni_s_00        Transmit SNI-97801-5xx: Shift-Double-Zero\n");
	break;                    
    case K_SNI_S_CE          :    
	printf("\\Ksni_s_ce        Transmit SNI-97801-5xx: Shift-CE\n");
	break;                
    case K_SNI_S_COMPOSE     :
	printf("\\Ksni_s_compose   Transmit SNI-97801-5xx: Shift-Compose\n");
	break;                    
    case K_SNI_S_DELETE_CHAR :    
	printf(
"\\Ksni_s_del_char  Transmit SNI-97801-5xx: Shift-Delete Char\n");
	break;                    
    case K_SNI_S_DELETE_LINE :    
	printf(
"\\Ksni_s_del_line  Transmit SNI-97801-5xx: Shift-Delete Line\n");
	break;                    
    case K_SNI_S_DELETE_WORD :    
	printf(
"\\Ksni_s_del_word  Transmit SNI-97801-5xx: Shift-Delete Word\n");
	break;                    
    case K_SNI_S_CURSOR_DOWN :    
	printf(
"\\Ksni_s_dnarr     Transmit SNI-97801-5xx: Shift-Cursor Down\n");
	break;                    
    case K_SNI_S_ENDMARKE    :    
	printf("\\Ksni_s_endmarke  Transmit SNI-97801-5xx: Shift-End Marke\n");
	break;                    
    case K_SNI_S_F01         :    
	printf("\\Ksni_s_f01       Transmit SNI-97801-5xx: Shift-F1\n");
	break;                    
    case K_SNI_S_F02         :    
	printf("\\Ksni_s_f02       Transmit SNI-97801-5xx: Shift-F2\n");
	break;                    
    case K_SNI_S_F03         :    
	printf("\\Ksni_s_f03       Transmit SNI-97801-5xx: Shift-F3\n");
	break;                    
    case K_SNI_S_F04         :    
	printf("\\Ksni_s_f04       Transmit SNI-97801-5xx: Shift-F4\n");
	break;                    
    case K_SNI_S_F05         :    
	printf("\\Ksni_s_f05       Transmit SNI-97801-5xx: Shift-F5\n");
	break;                    
    case K_SNI_S_F06         :    
	printf("\\Ksni_s_f06       Transmit SNI-97801-5xx: Shift-F6\n");
	break;                    
    case K_SNI_S_F07         :    
	printf("\\Ksni_s_f07       Transmit SNI-97801-5xx: Shift-F7\n");
	break;                    
    case K_SNI_S_F08         :    
	printf("\\Ksni_s_f08       Transmit SNI-97801-5xx: Shift-F8\n");
	break;                    
    case K_SNI_S_F09         :    
	printf("\\Ksni_s_f09       Transmit SNI-97801-5xx: Shift-F9\n");
	break;                    
    case K_SNI_S_F10         :    
	printf("\\Ksni_s_f10       Transmit SNI-97801-5xx: Shift-F10\n");
	break;                    
    case K_SNI_S_F11         :    
	printf("\\Ksni_s_f11       Transmit SNI-97801-5xx: Shift-F11\n");
	break;                    
    case K_SNI_S_F12         :    
	printf("\\Ksni_s_f12       Transmit SNI-97801-5xx: Shift-F12\n");
	break;                    
    case K_SNI_S_F13         :    
	printf("\\Ksni_s_f13       Transmit SNI-97801-5xx: Shift-F13\n");
	break;                    
    case K_SNI_S_F14         :    
	printf("\\Ksni_s_f14       Transmit SNI-97801-5xx: Shift-F14\n");
	break;                    
    case K_SNI_S_F15         :    
	printf("\\Ksni_s_f15       Transmit SNI-97801-5xx: Shift-F15\n");
	break;                    
    case K_SNI_S_F16         :    
	printf("\\Ksni_s_f16       Transmit SNI-97801-5xx: Shift-F16\n");
	break;                    
    case K_SNI_S_F17         :    
	printf("\\Ksni_s_f17       Transmit SNI-97801-5xx: Shift-F17\n");
	break;                    
    case K_SNI_S_F18         :    
	printf("\\Ksni_s_f18       Transmit SNI-97801-5xx: Shift-F18\n");
	break;                    
    case K_SNI_S_USER1        :    
	printf(
"\\Ksni_s_user1     Transmit SNI-97801-5xx: Shift-Key below F18\n");
	break;                    
    case K_SNI_S_F19         :    
	printf("\\Ksni_s_f19       Transmit SNI-97801-5xx: Shift-F19\n");
	break;                    
    case K_SNI_S_USER2       :    
	printf(
"\\Ksni_s_user2     Transmit SNI-97801-5xx: Shift-Key below F19\n");
	break;                    
    case K_SNI_S_F20         :    
	printf("\\Ksni_s_f20       Transmit SNI-97801-5xx: Shift-F20\n");
	break;                    
    case K_SNI_S_USER3       :    
	printf(
"\\Ksni_s_user3     Transmit SNI-97801-5xx: Shift-Key below F20\n");
	break;                    
    case K_SNI_S_F21         :    
	printf("\\Ksni_s_f21       Transmit SNI-97801-5xx: Shift-F21\n");
	break;                    
    case K_SNI_S_USER4       :    
	printf(
"\\Ksni_s_user4     Transmit SNI-97801-5xx: Shift-Key below F21\n");
	break;                    
    case K_SNI_S_F22         :    
	printf("\\Ksni_s_f22       Transmit SNI-97801-5xx: Shift-F22\n");
	break;                    
    case K_SNI_S_USER5       :    
	printf(
"\\Ksni_s_user5     Transmit SNI-97801-5xx: Shift-Key below F22\n");
	break;                    
    case K_SNI_S_HELP        :    
	printf("\\Ksni_s_help      Transmit SNI-97801-5xx: Shift-Help\n");
	break;                    
    case K_SNI_S_HOME        :    
	printf("\\Ksni_s_home      Transmit SNI-97801-5xx: Shift-Home\n");
	break;                    
    case K_SNI_S_INSERT_CHAR :    
	printf(
"\\Ksni_s_ins_char  Transmit SNI-97801-5xx: Shift-Insert Char\n");
	break;                    
    case K_SNI_S_INSERT_LINE :    
	printf(
"\\Ksni_s_ins_line  Transmit SNI-97801-5xx: Shift-Insert Line\n");
	break;                    
    case K_SNI_S_INSERT_WORD :    
	printf(
"\\Ksni_s_ins_word  Transmit SNI-97801-5xx: Shift-Insert Word\n");
	break;                    
    case K_SNI_S_LEFT_TAB    :    
	printf("\\Ksni_s_left_tab  Transmit SNI-97801-5xx: Shift-Left Tab\n");
	break;                    
    case K_SNI_S_CURSOR_LEFT :    
	printf(
"\\Ksni_s_lfarr     Transmit SNI-97801-5xx: Shift-Cursor Left\n");
	break;                    
    case K_SNI_S_MODE        :    
	printf("\\Ksni_s_mode      Transmit SNI-97801-5xx: Shift-Mode\n");
	break;                    
    case K_SNI_S_PAGE        :    
	printf("\\Ksni_s_page      Transmit SNI-97801-5xx: Shift-Page\n");
	break;                    
    case K_SNI_S_PRINT       :    
	printf("\\Ksni_s_print     Transmit SNI-97801-5xx: Shift-Print\n");
	break;                    
    case K_SNI_S_CURSOR_RIGHT:    
	printf(
"\\Ksni_s_rtarr     Transmit SNI-97801-5xx: Shift-Cursor Right\n");
	break;                
    case K_SNI_S_SCROLL_DOWN :
	printf(
"\\Ksni_s_scroll_dn Transmit SNI-97801-5xx: Shift-Scroll Down\n");
	break;                
    case K_SNI_S_SCROLL_UP   :
	printf("\\Ksni_s_scroll_up Transmit SNI-97801-5xx: Shift-Scroll Up\n");
	break;                
    case K_SNI_S_START       :
	printf("\\Ksni_s_start     Transmit SNI-97801-5xx: Shift-Start\n");
	break;                
    case K_SNI_S_CURSOR_UP   :
	printf("\\Ksni_s_uparr     Transmit SNI-97801-5xx: Shift-Cursor Up\n");
	break;                
    case K_SNI_S_TAB         :
	printf("\\Ksni_s_tab       Transmit SNI-97801-5xx: Shift-Tab\n");
	break;                
    case K_SNI_SCROLL_DOWN   :
	printf("\\Ksni_scroll_dn   Transmit SNI-97801-5xx: Scroll Down\n");
	break;                
    case K_SNI_SCROLL_UP     :
	printf("\\Ksni_scroll_up   Transmit SNI-97801-5xx: Scroll Up\n");
	break;                
    case K_SNI_START         :
	printf("\\Ksni_start       Transmit SNI-97801-5xx: Start\n");
	break;                
    case K_SNI_TAB           :
	printf("\\Ksni_tab         Transmit SNI-97801-5xx: Tab\n");
	break;                
    case K_SNI_CURSOR_UP     :
	printf("\\Ksni_uparr       Transmit SNI-97801-5xx: Cursor Up\n");
	break;                

    case K_BA80_ATTR:
        printf("\\Kba80_attr       Transmit BA80: Attr\n");
        break;
    case K_BA80_C_KEY:
        printf("\\Kba80_c_key      Transmit BA80: C\n");
        break;
    case K_BA80_CLEAR:
        printf("\\Kba80_clear      Transmit BA80: Clear\n");
        break;
    case K_BA80_CMD:
        printf("\\Kba80_cmd        Transmit BA80: Cmd\n");
        break;
    case K_BA80_COPY:
        printf("\\Kba80_copy       Transmit BA80: Copy\n");
        break;
    case K_BA80_DEL:
        printf("\\Kba80_del        Transmit BA80: Delete\n");
        break;
    case K_BA80_DEL_B:
        printf("\\Kba80_del_b      Transmit BA80: Delete B\n");
        break;
    case K_BA80_DO:
        printf("\\Kba80_do         Transmit BA80: Do\n");
        break;
    case K_BA80_END:
        printf("\\Kba80_end        Transmit BA80: End\n");
        break;
    case K_BA80_ENV:
        printf("\\Kba80_env        Transmit BA80: Env\n");
        break;
    case K_BA80_EOP:
        printf("\\Kba80_eop        Transmit BA80: EOP\n");
        break;
    case K_BA80_ERASE:
        printf("\\Kba80_erase      Transmit BA80: Erase\n");
        break;
    case K_BA80_FMT:
        printf("\\Kba80_fmt        Transmit BA80: Format\n");
        break;
    case K_BA80_HELP:
        printf("\\Kba80_help       Transmit BA80: Help\n");
        break;
    case K_BA80_HOME:
        printf("\\Kba80_home       Transmit BA80: Home\n");
        break;
    case K_BA80_INS:
        printf("\\Kba80_ins        Transmit BA80: Insert\n");
        break;
    case K_BA80_INS_B:
        printf("\\Kba80_ins_b      Transmit BA80: Insert B\n");
        break;
    case K_BA80_MARK:
        printf("\\Kba80_mark       Transmit BA80: Mark\n");
        break;
    case K_BA80_MOVE:
        printf("\\Kba80_move       Transmit BA80: Move\n");
        break;
    case K_BA80_PA01:
        printf("\\Kba80_pa01       Transmit BA80: PA1\n");
        break;
    case K_BA80_PA02:
        printf("\\Kba80_pa02       Transmit BA80: PA2\n");
        break;
    case K_BA80_PA03:
        printf("\\Kba80_pa03       Transmit BA80: PA3\n");
        break;
    case K_BA80_PA04:
        printf("\\Kba80_pa04       Transmit BA80: PA4\n");
        break;
    case K_BA80_PA05:
        printf("\\Kba80_pa05       Transmit BA80: PA5\n");
        break;
    case K_BA80_PA06:
        printf("\\Kba80_pa06       Transmit BA80: PA6\n");
        break;
    case K_BA80_PA07:
        printf("\\Kba80_pa07       Transmit BA80: PA7\n");
        break;
    case K_BA80_PA08:
        printf("\\Kba80_pa08       Transmit BA80: PA8\n");
        break;
    case K_BA80_PA09:
        printf("\\Kba80_pa09       Transmit BA80: PA9\n");
        break;
    case K_BA80_PA10:
        printf("\\Kba80_pa10       Transmit BA80: PA10\n");
        break;
    case K_BA80_PA11:
        printf("\\Kba80_pa11       Transmit BA80: PA11\n");
        break;
    case K_BA80_PA12:
        printf("\\Kba80_pa12       Transmit BA80: PA12\n");
        break;
    case K_BA80_PA13:
        printf("\\Kba80_pa13       Transmit BA80: PA13\n");
        break;
    case K_BA80_PA14:
        printf("\\Kba80_pa14       Transmit BA80: PA14\n");
        break;
    case K_BA80_PA15:
        printf("\\Kba80_pa15       Transmit BA80: PA15\n");
        break;
    case K_BA80_PA16:
        printf("\\Kba80_pa16       Transmit BA80: PA16\n");
        break;
    case K_BA80_PA17:
        printf("\\Kba80_pa17       Transmit BA80: PA17\n");
        break;
    case K_BA80_PA18:
        printf("\\Kba80_pa18       Transmit BA80: PA18\n");
        break;
    case K_BA80_PA19:
        printf("\\Kba80_pa19       Transmit BA80: PA19\n");
        break;
    case K_BA80_PA20:
        printf("\\Kba80_pa20       Transmit BA80: PA20\n");
        break;
    case K_BA80_PA21:
        printf("\\Kba80_pa21       Transmit BA80: PA21\n");
        break;
    case K_BA80_PA22:
        printf("\\Kba80_pa22       Transmit BA80: PA22\n");
        break;
    case K_BA80_PA23:
        printf("\\Kba80_pa23       Transmit BA80: PA23\n");
        break;
    case K_BA80_PA24:
        printf("\\Kba80_pa24       Transmit BA80: PA24\n");
        break;
    case K_BA80_PGDN:
        printf("\\Kba80_pgdn       Transmit BA80: Page Down\n");
        break;
    case K_BA80_PGUP:
        printf("\\Kba80_pgup       Transmit BA80: Page Up\n");
        break;
    case K_BA80_PICK:
        printf("\\Kba80_pick       Transmit BA80: Pick\n");
        break;
    case K_BA80_PRINT:
        printf("\\Kba80_print      Transmit BA80: Print\n");
        break;
    case K_BA80_PUT:
        printf("\\Kba80_put        Transmit BA80: Put\n");
        break;
    case K_BA80_REFRESH:
        printf("\\Kba80_refresh    Transmit BA80: Refresh \n");
        break;
    case K_BA80_RESET:
        printf("\\Kba80_reset      Transmit BA80: Reset\n");
        break;
    case K_BA80_RUBOUT:
        printf("\\Kba80_rubout     Transmit BA80: Rubout\n");
        break;
    case K_BA80_SAVE:
        printf("\\Kba80_save       Transmit BA80: Save\n");
        break;
    case K_BA80_SOFTKEY1:
        printf("\\Kba80_softkey1   Transmit BA80: Softkey 1\n");
        break;
    case K_BA80_SOFTKEY2:
        printf("\\Kba80_softkey2   Transmit BA80: Softkey 2\n");
        break;
    case K_BA80_SOFTKEY3:
        printf("\\Kba80_softkey3   Transmit BA80: Softkey 3\n");
        break;
    case K_BA80_SOFTKEY4:
        printf("\\Kba80_softkey4   Transmit BA80: Softkey 4\n");
        break;
    case K_BA80_SOFTKEY5:
        printf("\\Kba80_softkey5   Transmit BA80: Softkey 5\n");
        break;
    case K_BA80_SOFTKEY6:
        printf("\\Kba80_softkey6   Transmit BA80: Softkey 6\n");
        break;
    case K_BA80_SOFTKEY7:
        printf("\\Kba80_softkey7   Transmit BA80: Softkey 7\n");
        break;
    case K_BA80_SOFTKEY8:
        printf("\\Kba80_softkey8   Transmit BA80: Softkey 8\n");
        break;
    case K_BA80_SOFTKEY9:
        printf("\\Kba80_softkey9   Transmit BA80: Softkey 9\n");
        break;
    case K_BA80_UNDO:
        printf("\\Kba80_undo       Transmit BA80: Undo\n");
        break;

    default:
      printf("No additional help available for this kverb\n");
  }
    printf("\n");

    /* This is not the proper way to do it since it doesn't show  */
    /* all emulations, nor does it show the special modes, but it */
    /* is better than nothing.                                    */

    printf("Current bindings:\n");
    found = 0;
    for (i = 256; i < KMSIZE ; i++) {
        con_event evt = mapkey(i);
        if (evt.type != kverb)
          continue;
        if ((evt.kverb.id & ~F_KVERB) == xx) {
            found = 1;
            printf("  \\%-4d - %s\n",i,keyname(i)); 
        }
    }
#ifdef OS2MOUSE
    for ( button = 0 ; button < MMBUTTONMAX ; button++ )
      for ( event = 0 ; event < MMEVENTSIZE ; event++ )
	if ( mousemap[button][event].type == kverb ) {
	    if ( (mousemap[button][event].kverb.id & ~F_KVERB) == xx ) {
                found = 1;
                printf("  Mouse - %s\n",mousename(button,event)); 
	    }
	}
#endif /* OS2MOUSE */

    if ( !found ) {
        printf("  (none)\n");
    }
    return(0);
}
#endif /* NOKVERBS */
#endif /* OS2 */
 
/*  D O H R M T  --  Give help about REMOTE command  */
 
static char *hrset[] = {
"Syntax:  REMOTE SET parameter value",
"Example: REMOTE SET FILE TYPE BINARY\n",
"Ask the remote Kermit server to set the named parameter to the given value.",
"Equivalent to typing the corresponding SET command directly to the other",
"Kermit if it were in interactive mode.", "" };

int
dohrmt(xx) int xx; {
    int x;
    if (xx == -3) return(hmsga(hmhrmt));
    if (xx < 0) return(xx);
    if ((x = cmcfm()) < 0) return(x);
    switch (xx) {

case XZCPY:
    return(hmsg("Syntax: REMOTE COPY source destination\n\n\
Ask the remote Kermit server to copy the source file to destination."));

case XZCWD:
    return(hmsg("Syntax: REMOTE CD [ name ]\n\n\
Ask remote Kermit server to change its working directory or device.\n\
If the device or directory name is omitted, restore the default."));
 
case XZDEL:
    return(hmsg("Syntax: REMOTE DELETE filespec\n\n\
Ask the remote Kermit server to delete the named file(s)."));
 
case XZMKD:
    return(hmsg("Syntax: REMOTE MKDIR directory-name\n\n\
Ask the remote Kermit server to create the named directory."));

case XZRMD:
    return(hmsg("Syntax: REMOTE RMDIR directory-name\n\n\
Ask the remote Kermit server to remove the named directory."));

case XZDIR:
    return(hmsg("Syntax: REMOTE DIRECTORY [ filespec ]\n\n\
Ask the remote Kermit server to provide a directory listing of the named\n\
file(s) or if no file specification is given, of all files in the current\n\
directory."));
 
case XZHLP:
    return(hmsg("Syntax: REMOTE HELP\n\n\
Ask the remote Kermit server to list the services it provides."));
 
case XZHOS:
    return(hmsg("Syntax: REMOTE HOST command\n\n\
Send a command to the remote host computer in its own command language\n\
through the remote Kermit server."));
 
#ifndef NOFRILLS
case XZKER:
    return(hmsg("Syntax: REMOTE KERMIT command\n\n\
Send a command to the remote Kermit server in its own command language."));

case XZLGI:
    return(hmsg("Syntax: REMOTE LOGIN user password [ account ]\n\n\
Log in to a remote Kermit server that requires you login."));

case XZLGO:
    return(hmsg("Syntax: REMOTE LOGOUT\n\n\
Log out from a remote Kermit server to which you have previously logged in."));

case XZPRI:
    return(hmsg("Syntax: REMOTE PRINT filespec [ options ]\n\n\
Send the specified file(s) to the remote Kermit and ask it to have the\n\
file printed on the remote system's printer, using any specified options."));
#endif /* NOFRILLS */

case XZREN:
    return(hmsg("Syntax: REMOTE RENAME filespec newname\n\n\
Ask the remote Kermit server to rename the file."));

case XZSET:
    return(hmsga(hrset));

case XZSPA:
    return(hmsg("Syntax: REMOTE SPACE [ name ]\n\n\
Ask the remote Kermit server to tell you about its disk space on the current\n\
disk or directory, or in the one that you name."));
 
#ifndef NOFRILLS
case XZTYP:
    return(hmsg("Syntax: REMOTE TYPE file\n\n\
Ask the remote Kermit server to type the named file(s) on your screen."));
 
case XZWHO:
    return(hmsg("Syntax: REMOTE WHO [ name ]\n\n\
Ask the remote Kermit server to list who's logged in, or to give information\n\
about the named user."));
#endif /* NOFRILLS */

#ifndef NOSPL
case XZQUE:
    return(hmsg(
"Syntax: REMOTE QUERY { KERMIT, SYSTEM, USER } variable-name\n\n\
Ask the remote Kermit server to send the value of the named variable of the\n\
given type, and make it available in the \\v(query) variable.  When the type\n\
is KERMIT functions may also be specified as if they were variables."));

case XZASG:
    return(hmsg(
"Syntax: REMOTE ASSIGN variable-name [ value ]\n\n\
Assign the given value to the named global variable on the server."));

#endif /* NOSPL */
default:
    if ((x = cmcfm()) < 0) return(x);
    printf("not working yet - %s\n",cmdbuf);
    return(-2);
    }
}
#endif /* NOHELP */
#endif /* NOICP */