COMMDEMO.LST 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  1. Listing:
  2. 1 (* Release 3.10 *)
  3. 2 (*-------------------------------------------------------------------------*
  4. 3 * *
  5. 4 * COMMDEMO.MOD - COMMS Toolkit demonstration program *
  6. 5 * *
  7. 6 * COPYRIGHT (C) 1988..1992 Clarion Software Corporation. *
  8. 7 * All Rights Reserved *
  9. 8 * *
  10. 9 *--------------------------------------------------------------------------*)
  11. 10
  12. 11 MODULE CommDemo;
  13. 12 IMPORT ComSetup,CommUtil,Filenames,IO,Keyboard,Lib,RS232,ScriptProcessor,
  14. 13 Str,Term,Timer,Window;
  15. 14
  16. 15 CONST
  17. 16 TermWin = Window.WinDef(0,0,79,23,Window.LightGray,Window.Black,TRUE,FALSE,FALSE,FALSE,Window.SingleFrame,Window.White,Window.White);
  18. ***** ^ not supported yet
  19. ***** ^ not supported yet
  20. ***** ^ not supported yet
  21. ***** ^ not supported yet
  22. ***** ^ not supported yet
  23. ***** ^ not supported yet
  24. ***** ^ not supported yet
  25. ***** ^ not supported yet
  26. ***** ^ not supported yet
  27. ***** ^ not supported yet
  28. ***** ^ not supported yet
  29. ***** ^ not supported yet
  30. 17 StatWin = Window.WinDef(0,24,79,24,Window.White,Window.Blue,TRUE,FALSE,FALSE,FALSE,Window.SingleFrame,Window.White,Window.White);
  31. ***** ^ not supported yet
  32. ***** ^ not supported yet
  33. ***** ^ not supported yet
  34. ***** ^ not supported yet
  35. ***** ^ not supported yet
  36. ***** ^ not supported yet
  37. ***** ^ not supported yet
  38. ***** ^ not supported yet
  39. ***** ^ not supported yet
  40. ***** ^ not supported yet
  41. ***** ^ not supported yet
  42. ***** ^ not supported yet
  43. 18 GenWin = Window.WinDef(2,2,31,6,Window.White,Window.Blue,TRUE,FALSE,FALSE,TRUE,Window.SingleFrame,Window.White,Window.Blue);
  44. ***** ^ not supported yet
  45. ***** ^ not supported yet
  46. ***** ^ not supported yet
  47. ***** ^ not supported yet
  48. ***** ^ not supported yet
  49. ***** ^ not supported yet
  50. ***** ^ not supported yet
  51. ***** ^ not supported yet
  52. ***** ^ not supported yet
  53. ***** ^ not supported yet
  54. ***** ^ not supported yet
  55. ***** ^ not supported yet
  56. 19
  57. 20 (*...............................................*)
  58. 21
  59. 22 PROCEDURE Init;
  60. 23 VAR
  61. 24 stat : CommUtil.StatusFields;
  62. ***** ^ not supported yet
  63. 25 BEGIN
  64. 26 ComSetup.InitSetup;
  65. ***** ^ not supported yet
  66. ***** ^ not supported yet
  67. 27 WITH ComSetup.Setup.Serial DO
  68. ***** ^ not supported yet
  69. ***** ^ not supported yet
  70. ***** ^ not supported yet
  71. 28 RS232.SelectPort(Port);
  72. ***** ^ not supported yet
  73. ***** ^ not supported yet
  74. ***** ^ undeclared identifier
  75. 29 RS232.InitPort(Baud,DataBits,StopBits,Parity);
  76. ***** ^ not supported yet
  77. ***** ^ not supported yet
  78. ***** ^ undeclared identifier
  79. ***** ^ undeclared identifier
  80. ***** ^ undeclared identifier
  81. ***** ^ undeclared identifier
  82. 30 END;
  83. ***** ^ not supported yet
  84. 31 RS232.Install;
  85. ***** ^ not supported yet
  86. ***** ^ not supported yet
  87. 32 CASE ComSetup.Setup.Emulation OF
  88. ***** ^ not supported yet
  89. ***** ^ not supported yet
  90. ***** ^ not supported yet
  91. 33 Term.EmVT100 : Term.EmulateVT100; |
  92. ***** ^ not supported yet
  93. ***** ^ not supported yet
  94. ***** ^ not supported yet
  95. ***** ^ not supported yet
  96. 34 Term.EmVT52 : Term.EmulateVT52; |
  97. ***** ^ not supported yet
  98. ***** ^ not supported yet
  99. ***** ^ not supported yet
  100. ***** ^ not supported yet
  101. 35 Term.EmANSI : Term.EmulateANSI; |
  102. ***** ^ not supported yet
  103. ***** ^ not supported yet
  104. ***** ^ not supported yet
  105. ***** ^ not supported yet
  106. 36 END;
  107. 37 CommUtil.InitUtil;
  108. ***** ^ not supported yet
  109. ***** ^ not supported yet
  110. 38 CommUtil.WrChar := Term.WrChar;
  111. ***** ^ not supported yet
  112. ***** ^ not supported yet
  113. ***** ^ not supported yet
  114. ***** ^ not supported yet
  115. 39 ScriptProcessor.InitScriptProcessor;
  116. ***** ^ not supported yet
  117. ***** ^ not supported yet
  118. 40 Timer.StartClock;
  119. ***** ^ not supported yet
  120. ***** ^ not supported yet
  121. 41 Timer.StopClock;
  122. ***** ^ not supported yet
  123. ***** ^ not supported yet
  124. 42 FOR stat:=CommUtil.logo TO CommUtil.time DO
  125. ***** ^ undeclared identifier
  126. ***** ^ not supported yet
  127. ***** ^ not supported yet
  128. ***** ^ not supported yet
  129. ***** ^ not supported yet
  130. 43 CommUtil.StatusLine(stat)
  131. ***** ^ not supported yet
  132. ***** ^ not supported yet
  133. ***** ^ undeclared identifier
  134. 44 END;
  135. 45 END Init;
  136. ***** ^ not supported yet
  137. 46
  138. 47 (*...............................................*)
  139. 48
  140. 49 PROCEDURE DialDirectory;
  141. 50 VAR
  142. 51 c : CHAR;
  143. 52 Lnth : CARDINAL;
  144. 53 Result : INTEGER;
  145. 54 FileSpec : CommUtil.String80;
  146. ***** ^ not supported yet
  147. 55 BEGIN
  148. 56 IF ScriptProcessor.ScriptState=ScriptProcessor.Off THEN
  149. ***** ^ not supported yet
  150. ***** ^ not supported yet
  151. ***** ^ not supported yet
  152. ***** ^ not supported yet
  153. 57 Filenames.MakeFilename('',ComSetup.Setup.General.ScriptDir,'*','.CMD',FileSpec);
  154. ***** ^ not supported yet
  155. ***** ^ not supported yet
  156. ***** ^ not supported yet
  157. ***** ^ not supported yet
  158. ***** ^ not supported yet
  159. ***** ^ not supported yet
  160. ***** ^ not supported yet
  161. ***** ^ not supported yet
  162. 58 Lnth := Str.Length(FileSpec);
  163. ***** ^ not supported yet
  164. ***** ^ not supported yet
  165. ***** ^ not supported yet
  166. 59 Result := CommUtil.SelectFile(1,1,'Dial',FileSpec,CommUtil.ScriptFile);
  167. ***** ^ not supported yet
  168. ***** ^ not supported yet
  169. ***** ^ not supported yet
  170. ***** ^ not supported yet
  171. ***** ^ not supported yet
  172. ***** ^ not supported yet
  173. 60 IF Result>=0 THEN
  174. 61 FileSpec[Lnth-5]:=0C;
  175. ***** ^ not supported yet
  176. ***** ^ not supported yet
  177. 62 Str.Concat(CommUtil.ScriptFile,FileSpec,CommUtil.ScriptFile);
  178. ***** ^ not supported yet
  179. ***** ^ not supported yet
  180. ***** ^ not supported yet
  181. ***** ^ not supported yet
  182. ***** ^ not supported yet
  183. ***** ^ not supported yet
  184. ***** ^ not supported yet
  185. 63 IF ScriptProcessor.LoadScript(CommUtil.ScriptFile) THEN
  186. ***** ^ not supported yet
  187. ***** ^ not supported yet
  188. ***** ^ not supported yet
  189. ***** ^ not supported yet
  190. 64 END;
  191. 65 END;
  192. 66 END;
  193. 67 END DialDirectory;
  194. ***** ^ not supported yet
  195. 68
  196. 69 (*................................................*)
  197. 70
  198. 71 PROCEDURE ToggleLogging(xpos,ypos:CARDINAL);
  199. 72 VAR
  200. 73 Ch : CHAR;
  201. 74 BEGIN
  202. 75 IF CommUtil.LogMode<>CommUtil.CloseLogging THEN
  203. ***** ^ not supported yet
  204. ***** ^ not supported yet
  205. ***** ^ not supported yet
  206. ***** ^ not supported yet
  207. 76 CommUtil.SetLogMode(CommUtil.CloseLogging);
  208. ***** ^ not supported yet
  209. ***** ^ not supported yet
  210. ***** ^ not supported yet
  211. ***** ^ not supported yet
  212. 77 ELSE
  213. 78 CommUtil.CaptureFile[0] := 0C;
  214. ***** ^ not supported yet
  215. ***** ^ not supported yet
  216. ***** ^ not supported yet
  217. 79 CommUtil.ReadString(xpos,ypos,'Text Logging',' File Name? ',CommUtil.CaptureFile);
  218. ***** ^ not supported yet
  219. ***** ^ not supported yet
  220. ***** ^ not supported yet
  221. ***** ^ not supported yet
  222. ***** ^ not supported yet
  223. ***** ^ not supported yet
  224. 80 IF (CommUtil.CaptureFile[0]=0C) AND (CommUtil.FuncKeyTyped<>CommUtil.Escape) THEN
  225. ***** ^ not supported yet
  226. ***** ^ not supported yet
  227. ***** ^ not supported yet
  228. ***** ^ not supported yet
  229. ***** ^ not supported yet
  230. ***** ^ not supported yet
  231. ***** ^ not supported yet
  232. 81 CommUtil.CaptureFile := 'TERM.LOG';
  233. ***** ^ not supported yet
  234. ***** ^ not supported yet
  235. ***** ^ not supported yet
  236. 82 END;
  237. 83 IF CommUtil.CaptureFile[0]<>0C THEN
  238. ***** ^ not supported yet
  239. ***** ^ not supported yet
  240. ***** ^ not supported yet
  241. 84 CommUtil.SetLogMode(CommUtil.OpenLogging);
  242. ***** ^ not supported yet
  243. ***** ^ not supported yet
  244. ***** ^ not supported yet
  245. ***** ^ not supported yet
  246. 85 END;
  247. 86 END;
  248. 87 END ToggleLogging;
  249. ***** ^ not supported yet
  250. 88
  251. 89 (*................................................*)
  252. 90
  253. 91 PROCEDURE LeaveProgram():BOOLEAN;
  254. 92 VAR
  255. 93 Ch : CHAR;
  256. 94 Win : Window.WinType;
  257. ***** ^ not supported yet
  258. 95 Def : Window.WinDef;
  259. ***** ^ not supported yet
  260. 96 BEGIN
  261. 97 Def := GenWin;
  262. ***** ^ not supported yet
  263. 98 WITH Def DO
  264. ***** ^ not supported yet
  265. 99 Foreground := CommUtil.Colors.GenFore;
  266. ***** ^ undeclared identifier
  267. ***** ^ not supported yet
  268. ***** ^ not supported yet
  269. ***** ^ not supported yet
  270. 100 Background := CommUtil.Colors.GenBack;
  271. ***** ^ undeclared identifier
  272. ***** ^ not supported yet
  273. ***** ^ not supported yet
  274. ***** ^ not supported yet
  275. 101 FrameFore := CommUtil.Colors.GenFrFore;
  276. ***** ^ undeclared identifier
  277. ***** ^ not supported yet
  278. ***** ^ not supported yet
  279. ***** ^ not supported yet
  280. 102 FrameBack := CommUtil.Colors.GenFrBack;
  281. ***** ^ undeclared identifier
  282. ***** ^ not supported yet
  283. ***** ^ not supported yet
  284. ***** ^ not supported yet
  285. 103 END ;
  286. ***** ^ not supported yet
  287. 104 Win := Window.Open(Def);
  288. ***** ^ undeclared identifier
  289. ***** ^ not supported yet
  290. ***** ^ not supported yet
  291. ***** ^ undeclared identifier
  292. 105 Window.GotoXY(3,2);
  293. ***** ^ not supported yet
  294. ***** ^ not supported yet
  295. ***** ^ not supported yet
  296. 106 IO.WrStr('Leave Program (Y/N): N');
  297. ***** ^ not supported yet
  298. ***** ^ not supported yet
  299. ***** ^ not supported yet
  300. 107 IO.WrChar(CHR(8));
  301. ***** ^ not supported yet
  302. ***** ^ not supported yet
  303. ***** ^ undeclared identifier
  304. ***** ^ not supported yet
  305. 108 REPEAT
  306. 109 Ch:=CAP(IO.RdKey());
  307. ***** ^ undeclared identifier
  308. ***** ^ undeclared identifier
  309. ***** ^ not supported yet
  310. ***** ^ not supported yet
  311. ***** ^ not supported yet
  312. 110 IF (Ch=CHR(27)) OR (Ch=CHR(13)) THEN
  313. ***** ^ undeclared identifier
  314. ***** ^ undeclared identifier
  315. ***** ^ not supported yet
  316. ***** ^ undeclared identifier
  317. ***** ^ undeclared identifier
  318. ***** ^ not supported yet
  319. 111 Ch:='N';
  320. ***** ^ undeclared identifier
  321. 112 END;
  322. 113 UNTIL (Ch='Y') OR (Ch='N');
  323. ***** ^ undeclared identifier
  324. ***** ^ undeclared identifier
  325. 114 Window.Close(Win);
  326. ***** ^ not supported yet
  327. ***** ^ not supported yet
  328. ***** ^ undeclared identifier
  329. 115 RETURN Ch='Y';
  330. ***** ^ undeclared identifier
  331. 116 END LeaveProgram;
  332. ***** ^ not supported yet
  333. 117
  334. 118 (*................................................*)
  335. 119
  336. 120 PROCEDURE Intro;
  337. 121 VAR
  338. 122 Ch : CHAR;
  339. 123 Def : Window.WinDef;
  340. ***** ^ not supported yet
  341. 124 Win : Window.WinType;
  342. ***** ^ not supported yet
  343. 125 BEGIN
  344. 126 Def := GenWin;
  345. ***** ^ not supported yet
  346. 127 WITH Def DO
  347. ***** ^ not supported yet
  348. 128 X1:=24;
  349. ***** ^ undeclared identifier
  350. 129 Y1:=3;
  351. ***** ^ undeclared identifier
  352. 130 X2:=X1+31;
  353. ***** ^ undeclared identifier
  354. ***** ^ undeclared identifier
  355. 131 Y2:=Y1+17;
  356. ***** ^ undeclared identifier
  357. ***** ^ undeclared identifier
  358. 132 CursorOn:=FALSE;
  359. ***** ^ undeclared identifier
  360. 133 Foreground := CommUtil.Colors.GenFore;
  361. ***** ^ undeclared identifier
  362. ***** ^ not supported yet
  363. ***** ^ not supported yet
  364. ***** ^ not supported yet
  365. 134 Background := CommUtil.Colors.GenBack;
  366. ***** ^ undeclared identifier
  367. ***** ^ not supported yet
  368. ***** ^ not supported yet
  369. ***** ^ not supported yet
  370. 135 FrameFore := CommUtil.Colors.GenFrFore;
  371. ***** ^ undeclared identifier
  372. ***** ^ not supported yet
  373. ***** ^ not supported yet
  374. ***** ^ not supported yet
  375. 136 FrameBack := CommUtil.Colors.GenFrBack;
  376. ***** ^ undeclared identifier
  377. ***** ^ not supported yet
  378. ***** ^ not supported yet
  379. ***** ^ not supported yet
  380. 137 END;
  381. ***** ^ not supported yet
  382. 138 Win := Window.Open(Def);
  383. ***** ^ undeclared identifier
  384. ***** ^ not supported yet
  385. ***** ^ not supported yet
  386. ***** ^ undeclared identifier
  387. 139 IO.WrStr(' ----------------------------');
  388. ***** ^ not supported yet
  389. ***** ^ not supported yet
  390. ***** ^ not supported yet
  391. 140 IO.WrLn;
  392. ***** ^ not supported yet
  393. ***** ^ not supported yet
  394. 141 IO.WrStr(' TopSpeed Modula-2 ');
  395. ***** ^ not supported yet
  396. ***** ^ not supported yet
  397. ***** ^ not supported yet
  398. 142 IO.WrLn;
  399. ***** ^ not supported yet
  400. ***** ^ not supported yet
  401. 143 IO.WrStr(' Comms Toolkit V3.10 Demo');
  402. ***** ^ not supported yet
  403. ***** ^ not supported yet
  404. ***** ^ not supported yet
  405. 144 IO.WrLn;
  406. ***** ^ not supported yet
  407. ***** ^ not supported yet
  408. 145 IO.WrStr(' ----------------------------');
  409. ***** ^ not supported yet
  410. ***** ^ not supported yet
  411. ***** ^ not supported yet
  412. 146 IO.WrLn;
  413. ***** ^ not supported yet
  414. ***** ^ not supported yet
  415. 147 IO.WrStr(' Keys: ');
  416. ***** ^ not supported yet
  417. ***** ^ not supported yet
  418. ***** ^ not supported yet
  419. 148 IO.WrLn;
  420. ***** ^ not supported yet
  421. ***** ^ not supported yet
  422. 149 IO.WrLn;
  423. ***** ^ not supported yet
  424. ***** ^ not supported yet
  425. 150 IO.WrStr(' F1 : This info ');
  426. ***** ^ not supported yet
  427. ***** ^ not supported yet
  428. ***** ^ not supported yet
  429. 151 IO.WrLn;
  430. ***** ^ not supported yet
  431. ***** ^ not supported yet
  432. 152 IO.WrStr(' ALT-0..9 : Send Macro ');
  433. ***** ^ not supported yet
  434. ***** ^ not supported yet
  435. ***** ^ not supported yet
  436. 153 IO.WrLn;
  437. ***** ^ not supported yet
  438. ***** ^ not supported yet
  439. 154 IO.WrStr(' PgUp : Upload a File ');
  440. ***** ^ not supported yet
  441. ***** ^ not supported yet
  442. ***** ^ not supported yet
  443. 155 IO.WrLn;
  444. ***** ^ not supported yet
  445. ***** ^ not supported yet
  446. 156 IO.WrStr(' PgDn : Download a File');
  447. ***** ^ not supported yet
  448. ***** ^ not supported yet
  449. ***** ^ not supported yet
  450. 157 IO.WrLn;
  451. ***** ^ not supported yet
  452. ***** ^ not supported yet
  453. 158 IO.WrStr(' ALT-B : Send Break ');
  454. ***** ^ not supported yet
  455. ***** ^ not supported yet
  456. ***** ^ not supported yet
  457. 159 IO.WrLn;
  458. ***** ^ not supported yet
  459. ***** ^ not supported yet
  460. 160 IO.WrStr(' ALT-D : Dial Menu ');
  461. ***** ^ not supported yet
  462. ***** ^ not supported yet
  463. ***** ^ not supported yet
  464. 161 IO.WrLn;
  465. ***** ^ not supported yet
  466. ***** ^ not supported yet
  467. 162 IO.WrStr(' ALT-H : Hangup ');
  468. ***** ^ not supported yet
  469. ***** ^ not supported yet
  470. ***** ^ not supported yet
  471. 163 IO.WrLn;
  472. ***** ^ not supported yet
  473. ***** ^ not supported yet
  474. 164 IO.WrStr(' ALT-L : Toggle Logging ');
  475. ***** ^ not supported yet
  476. ***** ^ not supported yet
  477. ***** ^ not supported yet
  478. 165 IO.WrLn;
  479. ***** ^ not supported yet
  480. ***** ^ not supported yet
  481. 166 IO.WrStr(' ALT-S : Setup ');
  482. ***** ^ not supported yet
  483. ***** ^ not supported yet
  484. ***** ^ not supported yet
  485. 167 IO.WrLn;
  486. ***** ^ not supported yet
  487. ***** ^ not supported yet
  488. 168 IO.WrStr(' ALT-X : Exit Demo ');
  489. ***** ^ not supported yet
  490. ***** ^ not supported yet
  491. ***** ^ not supported yet
  492. 169 WHILE NOT Term.KeyPressed() DO
  493. ***** ^ not supported yet
  494. ***** ^ not supported yet
  495. ***** ^ not supported yet
  496. 170 END;
  497. 171 Window.Close(Win);
  498. ***** ^ not supported yet
  499. ***** ^ not supported yet
  500. ***** ^ undeclared identifier
  501. 172 END Intro;
  502. ***** ^ not supported yet
  503. 173
  504. 174 (*................................................*)
  505. 175
  506. 176 PROCEDURE Terminal;
  507. 177 VAR
  508. 178 Carrier,EndSession: BOOLEAN;
  509. 179
  510. 180 (*. . . . . . . . . . . . . . . . . . . . . . . .*)
  511. 181
  512. 182 PROCEDURE CheckCarrier;
  513. 183 BEGIN
  514. 184 IF Carrier<>RS232.CarrierDetect() THEN
  515. ***** ^ not supported yet
  516. ***** ^ not supported yet
  517. ***** ^ not supported yet
  518. 185 (* carrier has changed state *)
  519. 186 Carrier := RS232.CarrierDetect();
  520. ***** ^ not supported yet
  521. ***** ^ not supported yet
  522. ***** ^ not supported yet
  523. 187 CommUtil.StatusLine(CommUtil.carrier);
  524. ***** ^ not supported yet
  525. ***** ^ not supported yet
  526. ***** ^ not supported yet
  527. ***** ^ not supported yet
  528. 188 IF Carrier THEN
  529. 189 Timer.StartClock
  530. ***** ^ not supported yet
  531. ***** ^ not supported yet
  532. 190 ELSE
  533. 191 Timer.StopClock
  534. ***** ^ not supported yet
  535. ***** ^ not supported yet
  536. 192 END;
  537. 193 END;
  538. 194 IF Carrier THEN
  539. 195 Timer.UpdateTimer;
  540. ***** ^ not supported yet
  541. ***** ^ not supported yet
  542. 196 CommUtil.StatusLine(CommUtil.time);
  543. ***** ^ not supported yet
  544. ***** ^ not supported yet
  545. ***** ^ not supported yet
  546. ***** ^ not supported yet
  547. 197 END;
  548. 198 END CheckCarrier;
  549. ***** ^ not supported yet
  550. 199
  551. 200 (*. . . . . . . . . . . . . . . . . . . . . . . .*)
  552. 201
  553. 202 PROCEDURE SpecialKey;
  554. 203 VAR
  555. 204 c : CHAR;
  556. 205 BEGIN
  557. 206 c := Term.RdKey();
  558. ***** ^ not supported yet
  559. ***** ^ not supported yet
  560. ***** ^ not supported yet
  561. 207 CASE ORD(c) OF
  562. ***** ^ undeclared identifier
  563. ***** ^ not supported yet
  564. 208 31 : (* Alt-S *)
  565. 209 ComSetup.ChangeSetup;
  566. ***** ^ not supported yet
  567. ***** ^ not supported yet
  568. 210 CommUtil.StatusLine(CommUtil.emul); |
  569. ***** ^ not supported yet
  570. ***** ^ not supported yet
  571. ***** ^ not supported yet
  572. ***** ^ not supported yet
  573. 211 32 : (* Alt-D *)
  574. 212 DialDirectory; |
  575. ***** ^ not supported yet
  576. 213 35 : (* Alt-H - Hangup Line *)
  577. 214 RS232.UnInstall; (* forces DTR & RTS to drop *)
  578. ***** ^ not supported yet
  579. ***** ^ not supported yet
  580. 215 Lib.Delay(500);
  581. ***** ^ not supported yet
  582. ***** ^ not supported yet
  583. ***** ^ not supported yet
  584. 216 RS232.Install; |
  585. ***** ^ not supported yet
  586. ***** ^ not supported yet
  587. 217 38 : (* Alt-L - Toggle Logging *)
  588. 218 ToggleLogging(10,10); |
  589. ***** ^ not supported yet
  590. ***** ^ not supported yet
  591. 219 45 : (* Alt-X - Exit Program *)
  592. 220 EndSession := LeaveProgram(); |
  593. ***** ^ not supported yet
  594. ***** ^ not supported yet
  595. 221 48 : (* ALT-B - Send Break for half a second *)
  596. 222 RS232.SetBreak(5); |
  597. ***** ^ not supported yet
  598. ***** ^ not supported yet
  599. ***** ^ not supported yet
  600. 223 59 : (* F1 - Show Intro again *)
  601. 224 Intro; |
  602. ***** ^ not supported yet
  603. 225 73 : (* PgUp *)
  604. 226 CommUtil.DoUpload; |
  605. ***** ^ not supported yet
  606. ***** ^ not supported yet
  607. 227 81 : (* PgDn *)
  608. 228 CommUtil.DoDownload; |
  609. ***** ^ not supported yet
  610. ***** ^ not supported yet
  611. 229 120..129 : (* ALT-0 to ALT-9 *)
  612. 230 CommUtil.TransmitMacro((ORD(c)+1) MOD 10); |
  613. ***** ^ not supported yet
  614. ***** ^ not supported yet
  615. ***** ^ undeclared identifier
  616. ***** ^ not supported yet
  617. ***** ^ not supported yet
  618. 231 END;
  619. 232 END SpecialKey;
  620. ***** ^ not supported yet
  621. 233
  622. 234 (*. . . . . . . . . . . . . . . . . . . . . . . .*)
  623. 235
  624. 236 PROCEDURE CheckKeyboard;
  625. 237 VAR
  626. 238 c : CHAR;
  627. 239 BEGIN
  628. 240 IF Term.KeyPressed() THEN
  629. ***** ^ not supported yet
  630. ***** ^ not supported yet
  631. ***** ^ not supported yet
  632. 241 c := Term.RdKey();
  633. ***** ^ not supported yet
  634. ***** ^ not supported yet
  635. ***** ^ not supported yet
  636. 242 IF c=0C THEN
  637. 243 SpecialKey
  638. ***** ^ not supported yet
  639. 244 ELSIF (c=CHR(27)) AND (ScriptProcessor.ScriptState<>ScriptProcessor.Off) THEN
  640. ***** ^ undeclared identifier
  641. ***** ^ not supported yet
  642. ***** ^ not supported yet
  643. ***** ^ not supported yet
  644. ***** ^ not supported yet
  645. ***** ^ not supported yet
  646. 245 ScriptProcessor.TerminateScript;
  647. ***** ^ not supported yet
  648. ***** ^ not supported yet
  649. 246 ELSE
  650. 247 RS232.SerialWrite(c,1);
  651. ***** ^ not supported yet
  652. ***** ^ not supported yet
  653. ***** ^ not supported yet
  654. 248 END;
  655. 249 END;
  656. 250 END CheckKeyboard;
  657. ***** ^ not supported yet
  658. 251
  659. 252 (*. . . . . . . . . . . . . . . . . . . . . . . .*)
  660. 253
  661. 254 PROCEDURE CheckRemote;
  662. 255 VAR
  663. 256 c : CHAR;
  664. 257 Cnt : CARDINAL;
  665. 258 BEGIN
  666. 259 Cnt := 0;
  667. 260 WHILE (Cnt<10) AND RS232.SerialRead(c,0) DO
  668. ***** ^ not supported yet
  669. ***** ^ not supported yet
  670. ***** ^ not supported yet
  671. 261 CommUtil.Screen(c);
  672. ***** ^ not supported yet
  673. ***** ^ not supported yet
  674. ***** ^ not supported yet
  675. 262 INC(Cnt);
  676. ***** ^ undeclared identifier
  677. ***** ^ not supported yet
  678. 263 END;
  679. 264 END CheckRemote;
  680. ***** ^ not supported yet
  681. 265
  682. 266 (*. . . . . . . . . . . . . . . . . . . . . . . .*)
  683. 267
  684. 268 BEGIN (* Terminal *)
  685. 269 EndSession := FALSE;
  686. 270 Carrier := FALSE;
  687. 271 REPEAT
  688. 272 CheckCarrier;
  689. ***** ^ not supported yet
  690. 273 CheckRemote;
  691. ***** ^ not supported yet
  692. 274 CheckKeyboard;
  693. ***** ^ not supported yet
  694. 275 ScriptProcessor.SingleStep;
  695. ***** ^ not supported yet
  696. ***** ^ not supported yet
  697. 276 UNTIL EndSession;
  698. 277 END Terminal;
  699. ***** ^ not supported yet
  700. 278
  701. 279 (*...............................................*)
  702. 280
  703. 281 VAR
  704. 282 Def : Window.WinDef;
  705. ***** ^ not supported yet
  706. 283 BEGIN (* CommDemo *)
  707. 284 Def := StatWin;
  708. ***** ^ not supported yet
  709. 285 WITH Def DO
  710. ***** ^ not supported yet
  711. 286 Foreground := CommUtil.Colors.StatFore;
  712. ***** ^ undeclared identifier
  713. ***** ^ not supported yet
  714. ***** ^ not supported yet
  715. ***** ^ not supported yet
  716. 287 Background := CommUtil.Colors.StatBack;
  717. ***** ^ undeclared identifier
  718. ***** ^ not supported yet
  719. ***** ^ not supported yet
  720. ***** ^ not supported yet
  721. 288 END;
  722. ***** ^ not supported yet
  723. 289 CommUtil.StatW := Window.Open(Def);
  724. ***** ^ not supported yet
  725. ***** ^ not supported yet
  726. ***** ^ not supported yet
  727. ***** ^ not supported yet
  728. ***** ^ not supported yet
  729. 290 Def := TermWin;
  730. ***** ^ not supported yet
  731. 291 WITH Def DO
  732. ***** ^ not supported yet
  733. 292 Foreground := CommUtil.Colors.TermFore;
  734. ***** ^ undeclared identifier
  735. ***** ^ not supported yet
  736. ***** ^ not supported yet
  737. ***** ^ not supported yet
  738. 293 Background := CommUtil.Colors.TermBack;
  739. ***** ^ undeclared identifier
  740. ***** ^ not supported yet
  741. ***** ^ not supported yet
  742. ***** ^ not supported yet
  743. 294 END;
  744. ***** ^ not supported yet
  745. 295 CommUtil.TermW := Window.Open(Def);
  746. ***** ^ not supported yet
  747. ***** ^ not supported yet
  748. ***** ^ not supported yet
  749. ***** ^ not supported yet
  750. ***** ^ not supported yet
  751. 296 Init;
  752. ***** ^ not supported yet
  753. 297 Intro;
  754. ***** ^ not supported yet
  755. 298 Terminal;
  756. ***** ^ not supported yet
  757. 299 RS232.UnInstall;
  758. ***** ^ not supported yet
  759. ***** ^ not supported yet
  760. 300 CommUtil.SetLogMode(CommUtil.CloseLogging);
  761. ***** ^ not supported yet
  762. ***** ^ not supported yet
  763. ***** ^ not supported yet
  764. ***** ^ not supported yet
  765. 301 Window.Close(CommUtil.TermW);
  766. ***** ^ not supported yet
  767. ***** ^ not supported yet
  768. ***** ^ not supported yet
  769. ***** ^ not supported yet
  770. 302 Window.Close(CommUtil.StatW);
  771. ***** ^ not supported yet
  772. ***** ^ not supported yet
  773. ***** ^ not supported yet
  774. ***** ^ not supported yet
  775. 303 Window.CursorOn;
  776. ***** ^ not supported yet
  777. ***** ^ not supported yet
  778. 304 END CommDemo.
  779. 305
  780. 473 errors