ODRA.c 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  1. /* OpenDoors Online Software Programming Toolkit
  2. * (C) Copyright 1991 - 1999 by Brian Pirie.
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. *
  18. *
  19. * File: ODRA.c
  20. *
  21. * Description: Implements the RemoteAccess personality.
  22. *
  23. * Revisions: Date Ver Who Change
  24. * ---------------------------------------------------------------
  25. * Oct 13, 1994 6.00 BP New file header format.
  26. * Oct 19, 1994 6.00 BP Use new od_page constants.
  27. * Dec 09, 1994 6.00 BP Standardized coding style.
  28. * Jul 18, 1995 6.00 BP Fix ODStatGetUserAge() bug.
  29. * Nov 11, 1995 6.00 BP Removed register keyword.
  30. * Nov 14, 1995 6.00 BP Added include of odscrn.h.
  31. * Nov 14, 1995 6.00 BP 32-bit portability.
  32. * Nov 16, 1995 6.00 BP Removed oddoor.h, added odcore.h.
  33. * Dec 22, 1995 6.00 BP Added od_connect_speed.
  34. * Dec 24, 1995 6.00 BP Fixed black square at pos 25x80.
  35. * Dec 30, 1995 6.00 BP Added ODCALL for calling convention.
  36. * Jan 03, 1996 6.00 BP Display connect speed with %lu.
  37. * Feb 19, 1996 6.00 BP Changed version number to 6.00.
  38. * Mar 03, 1996 6.10 BP Begin version 6.10.
  39. * Aug 10, 2003 6.23 SH *nix support
  40. */
  41. #define BUILDING_OPENDOORS
  42. #include <string.h>
  43. #include <ctype.h>
  44. #include <stddef.h>
  45. #include <time.h>
  46. #include <stdlib.h>
  47. #include <stdio.h>
  48. #include "OpenDoor.h"
  49. #include "ODCore.h"
  50. #include "ODGen.h"
  51. #include "ODScrn.h"
  52. #include "ODStat.h"
  53. #include "ODInEx.h"
  54. /* Private variables, local to this module. */
  55. static BOOL bRAPersHasBeenOn = FALSE;
  56. /* Private function prototypes. */
  57. static void ODRADisplayPageInfo(void);
  58. static void ODRADisplayDate(char *pszDateString);
  59. static void ODRADisplayFlags(BYTE btFlags);
  60. static void ODRADisplayTime(void);
  61. /* ----------------------------------------------------------------------------
  62. * pdef_ra()
  63. *
  64. * Personality function for the RemoteAccess-like status line / function key
  65. * personality.
  66. *
  67. * Parameters: btOperation - Indicates personality operation to be performed.
  68. *
  69. * Return: void
  70. */
  71. ODAPIDEF void ODCALL pdef_ra(BYTE btOperation)
  72. {
  73. BYTE btInfoType = od_control.od_info_type;
  74. switch(btOperation)
  75. {
  76. case PEROP_DISPLAY1:
  77. ODScrnSetAttribute(0x70);
  78. ODScrnSetCursorPos(1, 24);
  79. ODScrnDisplayString(" (Node ");
  80. ODScrnSetCursorPos(1, 24);
  81. ODScrnPrintf("%s of %s at %lu BPS", od_control.user_name,
  82. od_control.user_location, od_control.od_connect_speed);
  83. if(!od_control.od_user_keyboard_on)
  84. {
  85. ODScrnSetCursorPos(49, 24);
  86. ODScrnSetAttribute(0x99);
  87. ODScrnDisplayString("(Keyboard)");
  88. ODScrnSetAttribute(0x70);
  89. bRAPersHasBeenOn = TRUE;
  90. }
  91. ODRADisplayPageInfo();
  92. ODScrnSetCursorPos(76, 24);
  93. if(od_control.od_node < 1000)
  94. {
  95. ODScrnPrintf("%u)", od_control.od_node);
  96. }
  97. else
  98. {
  99. ODScrnDisplayString("?)");
  100. }
  101. ODScrnSetCursorPos(1, 25);
  102. ODScrnDisplayString("Security: Time: (F9)=Help ");
  103. ODScrnPutText(80, 25, 80, 25, abtGreyBlock);
  104. ODScrnSetCursorPos(11, 25);
  105. ODScrnPrintf("%u", od_control.user_security);
  106. ODScrnSetCursorPos(24, 25);
  107. ODScrnPrintf("%d mins ", od_control.user_timelimit);
  108. if(od_control.user_ansi)
  109. {
  110. ODScrnSetCursorPos(42, 25);
  111. ODScrnDisplayString("(ANSI)");
  112. }
  113. if(od_control.user_avatar)
  114. {
  115. ODScrnSetCursorPos(48, 25);
  116. ODScrnDisplayString("(AVT)");
  117. }
  118. if(od_control.sysop_next)
  119. {
  120. ODScrnSetCursorPos(53, 25);
  121. ODScrnDisplayString("(SN) ");
  122. }
  123. if(od_control.user_wantchat)
  124. {
  125. ODScrnSetCursorPos(57, 25);
  126. ODScrnSetAttribute(0x99);
  127. ODScrnDisplayString("(Wants Chat)");
  128. ODScrnSetAttribute(0x70);
  129. }
  130. break;
  131. case PEROP_DISPLAY2:
  132. ODScrnSetAttribute(0x70);
  133. ODScrnPutText(80, 25, 80, 25, abtGreyBlock);
  134. ODScrnSetCursorPos(1, 24);
  135. ODScrnDisplayString("Voice#: Last Call : First Call: ");
  136. ODScrnSetCursorPos(1, 25);
  137. ODScrnDisplayString("Data #: Times Called: Age: Birthdate: ");
  138. if(od_control.od_extended_info || btInfoType == SFDOORSDAT
  139. || btInfoType == DOORSYS_GAP || btInfoType == DOORSYS_WILDCAT)
  140. {
  141. ODScrnSetCursorPos(8, 24);
  142. ODScrnPrintf("%13.13s", od_control.user_homephone);
  143. }
  144. if(od_control.od_extended_info || btInfoType == DOORSYS_GAP
  145. || btInfoType == DOORSYS_WILDCAT)
  146. {
  147. ODScrnSetCursorPos(8, 25);
  148. ODScrnPrintf("%13.13s", od_control.user_dataphone);
  149. }
  150. if(od_control.od_extended_info || btInfoType == DOORSYS_GAP
  151. || btInfoType == CHAINTXT || btInfoType == DOORSYS_WILDCAT)
  152. {
  153. ODScrnSetCursorPos(37, 24);
  154. ODRADisplayDate(od_control.user_lastdate);
  155. }
  156. if(od_control.od_extended_info || btInfoType == DOORSYS_GAP
  157. || btInfoType == DOORSYS_WILDCAT)
  158. {
  159. ODScrnSetCursorPos(37, 25);
  160. ODScrnPrintf("%lu", od_control.user_numcalls);
  161. }
  162. if(btInfoType == RA1EXITINFO || btInfoType == RA2EXITINFO
  163. || btInfoType == DOORSYS_WILDCAT)
  164. {
  165. char szUserAge[7];
  166. ODScrnSetCursorPos(53, 25);
  167. ODStatGetUserAge(szUserAge);
  168. ODScrnDisplayString(szUserAge);
  169. ODScrnSetCursorPos(71, 24);
  170. ODRADisplayDate(od_control.user_firstcall);
  171. ODScrnSetCursorPos(71, 25);
  172. ODRADisplayDate(od_control.user_birthday);
  173. }
  174. break;
  175. case PEROP_DISPLAY3:
  176. ODScrnSetAttribute(0x70);
  177. ODScrnPutText(80, 25, 80, 25, abtGreyBlock);
  178. ODScrnSetCursorPos(1, 24);
  179. if(od_control.od_extended_info || btInfoType == SFDOORSDAT
  180. || btInfoType == DOORSYS_GAP || btInfoType == DOORSYS_WILDCAT)
  181. {
  182. ODScrnDisplayString("Uploads: Downloads: Tagged: 0k (0) ");
  183. if(btInfoType == DOORSYS_GAP)
  184. {
  185. ODScrnSetCursorPos(10, 24);
  186. ODScrnPrintf("%lu", od_control.user_uploads);
  187. ODScrnSetCursorPos(36, 24);
  188. ODScrnPrintf("%lu", od_control.user_downloads);
  189. }
  190. else
  191. {
  192. ODScrnSetCursorPos(10, 24);
  193. ODScrnPrintf("%luk (%lu)", od_control.user_upk,
  194. od_control.user_uploads);
  195. ODScrnSetCursorPos(36,24);
  196. ODScrnPrintf("%luk (%lu)", od_control.user_downk,
  197. od_control.user_downloads);
  198. }
  199. }
  200. else
  201. {
  202. ODScrnDisplayString(" ");
  203. }
  204. ODScrnSetCursorPos(1, 25);
  205. if(od_control.od_extended_info)
  206. {
  207. ODScrnDisplayString("Flags: (A):-------- (B):-------- (C):-------- (D):-------- ");
  208. ODScrnSetCursorPos(12, 25);
  209. ODRADisplayFlags(od_control.user_flags[0]);
  210. ODScrnSetCursorPos(26, 25);
  211. ODRADisplayFlags(od_control.user_flags[1]);
  212. ODScrnSetCursorPos(40, 25);
  213. ODRADisplayFlags(od_control.user_flags[2]);
  214. ODScrnSetCursorPos(54, 25);
  215. ODRADisplayFlags(od_control.user_flags[3]);
  216. }
  217. else
  218. {
  219. ODScrnDisplayString(" ");
  220. }
  221. break;
  222. case PEROP_DISPLAY4:
  223. ODScrnSetAttribute(0x70);
  224. ODScrnPutText(80, 25, 80, 25, abtGreyBlock);
  225. ODScrnSetCursorPos(1, 24);
  226. ODScrnDisplayString(" (Time ) ");
  227. if(od_control.od_extended_info)
  228. {
  229. ODScrnSetCursorPos(1, 24);
  230. ODScrnPrintf("Last Caller: %s Total System Calls: %lu",
  231. od_control.system_last_caller, od_control.system_calls);
  232. }
  233. ODRADisplayTime();
  234. ODScrnSetCursorPos(1, 25);
  235. if(od_control.od_extended_info || btInfoType == DOORSYS_WILDCAT)
  236. {
  237. ODScrnDisplayString("(Printer OFF) (Local Screen ON ) Next Event ");
  238. ODScrnSetCursorPos(57, 25);
  239. if(od_control.event_status == ES_ENABLED
  240. || btInfoType == DOORSYS_WILDCAT)
  241. {
  242. ODScrnPrintf("(%s, errorlevel %u)",od_control.event_starttime,od_control.event_errorlevel);
  243. }
  244. else
  245. {
  246. ODScrnDisplayString("none, errorlevel 0");
  247. }
  248. }
  249. else
  250. {
  251. ODScrnDisplayString(" ");
  252. }
  253. break;
  254. case PEROP_DISPLAY5:
  255. ODScrnSetAttribute(0x70);
  256. ODScrnPutText(80, 25, 80, 25, abtGreyBlock);
  257. ODScrnSetCursorPos(1, 24);
  258. if(od_control.od_extended_info || btInfoType == DOORSYS_WILDCAT)
  259. {
  260. ODScrnDisplayString("Msgs posted : Highread : Group 1 ");
  261. ODScrnSetCursorPos(18,24);
  262. ODScrnPrintf("%u",od_control.user_messages);
  263. ODScrnSetCursorPos(39,24);
  264. ODScrnPrintf("%u",od_control.user_lastread);
  265. if(btInfoType == RA1EXITINFO || btInfoType == RA2EXITINFO)
  266. {
  267. ODScrnSetCursorPos(76, 24);
  268. ODScrnPrintf("%u", od_control.user_group);
  269. }
  270. }
  271. else
  272. {
  273. ODScrnDisplayString(" ");
  274. }
  275. ODScrnSetCursorPos(1, 25);
  276. if(od_control.od_extended_info || btInfoType == CHAINTXT
  277. || btInfoType == DOORSYS_WILDCAT)
  278. {
  279. ODScrnDisplayString("Credit : Handle : ");
  280. if(btInfoType == EXITINFO || btInfoType == RA1EXITINFO
  281. || btInfoType == RA2EXITINFO)
  282. {
  283. ODScrnSetCursorPos(18, 25);
  284. ODScrnPrintf("%u.00", (unsigned int)od_control.user_net_credit);
  285. }
  286. if(btInfoType == CHAINTXT || btInfoType == RA1EXITINFO
  287. || btInfoType == RA2EXITINFO || btInfoType == DOORSYS_WILDCAT)
  288. {
  289. ODScrnSetCursorPos(39, 25);
  290. ODScrnDisplayString(od_control.user_handle);
  291. }
  292. }
  293. else
  294. {
  295. ODScrnDisplayString(" ");
  296. }
  297. break;
  298. case PEROP_DISPLAY6:
  299. ODScrnSetAttribute(0x70);
  300. ODScrnSetCursorPos(1, 24);
  301. ODScrnDisplayString(" ");
  302. ODScrnSetCursorPos(1, 25);
  303. ODScrnDisplayString(" ");
  304. ODScrnPutText(80, 25, 80, 25, abtGreyBlock);
  305. if(btInfoType == RA1EXITINFO || btInfoType == RA2EXITINFO
  306. || btInfoType == DOORSYS_WILDCAT)
  307. {
  308. ODScrnSetCursorPos(1, 24);
  309. ODScrnDisplayString(od_control.user_comment);
  310. }
  311. if(od_control.user_wantchat
  312. && strlen(od_control.user_reasonforchat) !=0 )
  313. {
  314. ODScrnSetCursorPos(1, 25);
  315. strcpy(szStatusText, od_control.user_reasonforchat);
  316. szStatusText[69 - strlen(od_control.user_name)] = '\0';
  317. ODScrnPrintf("Chat (%s): %s", od_control.user_name, szStatusText);
  318. }
  319. break;
  320. case PEROP_DISPLAY7:
  321. ODScrnSetAttribute(0x70);
  322. ODScrnSetCursorPos(1, 24);
  323. ODScrnDisplayString(" ");
  324. ODScrnSetCursorPos(1, 25);
  325. ODScrnDisplayString(" ");
  326. ODScrnPutText(80, 25, 80, 25, abtGreyBlock);
  327. break;
  328. case PEROP_DISPLAY8:
  329. ODScrnSetAttribute(0x70);
  330. ODScrnPutText(80, 25, 80, 25, abtGreyBlock);
  331. ODScrnSetCursorPos(1, 24);
  332. ODScrnDisplayString("ALT: (C)hat (H)angup (J)Shell (L)ockOut (K)eyboard (N)extOn (D)rop To BBS ");
  333. ODScrnDisplayString(" -Inc Time -Dec Time (F1)-(F7)=Extra Stats");
  334. break;
  335. case PEROP_UPDATE1:
  336. ODScrnSetAttribute(0x70);
  337. ODScrnSetCursorPos(24, 25);
  338. ODScrnPrintf("%d mins ", od_control.user_timelimit);
  339. ODScrnSetCursorPos(42, 25);
  340. if(od_control.user_ansi)
  341. {
  342. ODScrnDisplayString("(ANSI)");
  343. }
  344. else
  345. {
  346. ODScrnDisplayString(" ");
  347. }
  348. if(od_control.user_avatar)
  349. {
  350. ODScrnDisplayString("(AVT)");
  351. }
  352. else
  353. {
  354. ODScrnDisplayString(" ");
  355. }
  356. if(od_control.sysop_next)
  357. {
  358. ODScrnDisplayString("(SN)");
  359. }
  360. else
  361. {
  362. ODScrnDisplayString(" ");
  363. }
  364. if(od_control.user_wantchat)
  365. {
  366. ODScrnSetAttribute(0x99);
  367. ODScrnDisplayString("(Wants Chat)");
  368. ODScrnSetAttribute(0x70);
  369. }
  370. else
  371. {
  372. ODScrnDisplayString(" ");
  373. }
  374. ODRADisplayPageInfo();
  375. if(od_control.od_user_keyboard_on && bRAPersHasBeenOn)
  376. {
  377. ODScrnSetCursorPos(49, 24);
  378. ODScrnDisplayString(" ");
  379. }
  380. if(!od_control.od_user_keyboard_on)
  381. {
  382. bRAPersHasBeenOn = TRUE;
  383. ODScrnSetCursorPos(49, 24);
  384. ODScrnSetAttribute(0x99);
  385. ODScrnDisplayString("(Keyboard)");
  386. ODScrnSetAttribute(0x70);
  387. }
  388. break;
  389. case PEROP_UPDATE4:
  390. ODScrnSetAttribute(0x70);
  391. ODRADisplayTime();
  392. break;
  393. case PEROP_INITIALIZE:
  394. bRAStatus = TRUE;
  395. od_control.key_hangup = 0x2300;
  396. od_control.key_drop2bbs = 0x2000;
  397. od_control.key_dosshell = 0x2400;
  398. od_control.key_chat = 0x2e00;
  399. od_control.key_sysopnext = 0x3100;
  400. od_control.key_lockout = 0x2600;
  401. od_control.key_status[0] = 0x3b00;
  402. od_control.key_status[1] = 0x3c00;
  403. od_control.key_status[2] = 0x3d00;
  404. od_control.key_status[3] = 0x3e00;
  405. od_control.key_status[4] = 0x3f00;
  406. od_control.key_status[5] = 0x4000;
  407. od_control.key_status[6] = 0x4100;
  408. od_control.key_status[7] = 0x4300;
  409. od_control.key_status[8] = 0x4400;
  410. od_control.key_keyboardoff = 0x2500;
  411. od_control.key_moretime = 0x4800;
  412. od_control.key_lesstime = 0x5000;
  413. od_control.od_page_statusline = 5;
  414. }
  415. }
  416. /* ----------------------------------------------------------------------------
  417. * ODRADisplayPageInfo() *** PRIVATE FUNCTION ***
  418. *
  419. * Displays the current sysop page information on the RemoteAccess status line,
  420. * at the appropriate position, and in the appropriate color.
  421. *
  422. * Parameters: none
  423. *
  424. * Return: void
  425. */
  426. static void ODRADisplayPageInfo(void)
  427. {
  428. time_t nUnixTime;
  429. struct tm *TimeBlock;
  430. BOOL bFailed = FALSE;
  431. INT nMinute;
  432. ODScrnSetCursorPos(60, 24);
  433. switch(od_control.od_okaytopage)
  434. {
  435. case PAGE_ENABLE:
  436. ODScrnSetAttribute(0x19);
  437. ODScrnDisplayString("(PAGE ON) ");
  438. ODScrnSetAttribute(0x70);
  439. break;
  440. case PAGE_DISABLE:
  441. ODScrnSetAttribute(0x19);
  442. ODScrnDisplayString("(PAGE OFF)");
  443. ODScrnSetAttribute(0x70);
  444. break;
  445. case PAGE_USE_HOURS:
  446. nUnixTime = time(NULL);
  447. TimeBlock = localtime(&nUnixTime);
  448. nMinute = (60 * TimeBlock->tm_hour) + TimeBlock->tm_min;
  449. if(od_control.od_pagestartmin < od_control.od_pageendmin)
  450. {
  451. if(nMinute < od_control.od_pagestartmin
  452. || nMinute >= od_control.od_pageendmin)
  453. {
  454. bFailed = TRUE;
  455. }
  456. }
  457. else
  458. {
  459. if(nMinute < od_control.od_pagestartmin
  460. && nMinute >= od_control.od_pageendmin)
  461. {
  462. bFailed=TRUE;
  463. }
  464. }
  465. if(bFailed)
  466. {
  467. ODScrnDisplayString("(PAGE OFF)");
  468. }
  469. else
  470. {
  471. ODScrnDisplayString("(PAGE ON) ");
  472. }
  473. }
  474. }
  475. /* ----------------------------------------------------------------------------
  476. * ODRADisplayTime() *** PRIVATE FUNCTION ***
  477. *
  478. * Displays the current time on the RemoteAccess status line, at the
  479. * appropriate position. The time is displayed in the current color.
  480. *
  481. * Parameters: none
  482. *
  483. * Return: void
  484. */
  485. static void ODRADisplayTime(void)
  486. {
  487. time_t nUnixTime;
  488. struct tm *TimeBlock;
  489. nUnixTime = time(NULL);
  490. TimeBlock = localtime(&nUnixTime);
  491. ODScrnSetCursorPos(74, 24);
  492. ODScrnPrintf("%02.2d:%02.2d", TimeBlock->tm_hour, TimeBlock->tm_min);
  493. }
  494. /* ----------------------------------------------------------------------------
  495. * ODRADisplayDate() *** PRIVATE FUNCTION ***
  496. *
  497. * Displays a date stored in a string on the RemoteAccess status line, if
  498. * the string represents a valid date. The date is displayed at the current
  499. * cursor location, in the current color.
  500. *
  501. * Parameters: pszDateString - Pointer to a string containing the date to
  502. * display.
  503. *
  504. * Return: void
  505. */
  506. static void ODRADisplayDate(char *pszDateString)
  507. {
  508. INT nMonth;
  509. INT nTemp;
  510. ASSERT(pszDateString != NULL);
  511. if(strlen(pszDateString) != 8) return;
  512. nMonth = atoi(pszDateString) - 1;
  513. if(nMonth < 0 || nMonth > 11) return;
  514. nTemp=atoi((char *)pszDateString + 3);
  515. if(nTemp < 1 || nTemp > 31) return;
  516. if(pszDateString[6] < '0' || pszDateString[6] > '9'
  517. || pszDateString[7] < '0' || pszDateString[7] > '9')
  518. {
  519. return;
  520. }
  521. ODScrnDisplayChar(pszDateString[3]);
  522. ODScrnDisplayChar(pszDateString[4]);
  523. ODScrnDisplayChar('-');
  524. ODScrnDisplayString(od_control.od_month[nMonth]);
  525. ODScrnDisplayChar('-');
  526. ODScrnDisplayChar(pszDateString[6]);
  527. ODScrnDisplayChar(pszDateString[7]);
  528. }
  529. /* ----------------------------------------------------------------------------
  530. * ODRADisplayFlags() *** PRIVATE FUNCTION ***
  531. *
  532. * Displays sysop-defined user flags on the status line. The flags are
  533. * displayed at the current cursor location, in the current color.
  534. *
  535. * Parameters: btFlags - Byte of eight flags to display.
  536. *
  537. * Return: void
  538. */
  539. static void ODRADisplayFlags(BYTE btFlags)
  540. {
  541. BYTE btMask = 0x01;
  542. INT nFlag;
  543. for(nFlag = 0; nFlag < 8; ++nFlag)
  544. {
  545. if(btFlags & btMask)
  546. {
  547. ODScrnDisplayChar('X');
  548. }
  549. else
  550. {
  551. ODScrnDisplayChar('-');
  552. }
  553. btMask <<= 1;
  554. }
  555. }