home *** CD-ROM | disk | FTP | other *** search
/ boe.pres.k12.wv.us / boe.pres.k12.wv.us.zip / boe.pres.k12.wv.us / Utilities / Finishlynx / FinishLynx-8.00.exe / Myriad.lss < prev    next >
Text File  |  2002-04-19  |  9KB  |  232 lines

  1.  ; Lynx Scoreboard Script
  2. ;
  3. ; Copyright (c) 1995-1997 Lynx System Developers, Inc.
  4. ;
  5. ; Written by Kirk Sigel
  6. ;
  7. ; Script for Colorado Time Myriad-family scoreboard
  8. ; requires ascii template for DisplayLink 3 software.
  9. ; by Todd Chamoy 2/28/00
  10. ;
  11. ; Modified for Harbor Creek, 96x80 pixels
  12. ; by Todd 4/19/02
  13. ;
  14. ; Notes:
  15. ;  + Empty lines and lines that start with a semicolon are ignored.
  16. ;  + Lines that start with two semicolons indicate a section header.
  17. ;    They must be one of the following:
  18. ;      ;;Initialization
  19. ;      ;;TimeRunning
  20. ;      ;;TimeStopped
  21. ;      ;;TimeGun
  22. ;      ;;TimeBreak
  23. ;      ;;TimeUpdate
  24. ;      ;;Wind
  25. ;      ;;TimeOfDay
  26. ;      ;;ResultsHeader
  27. ;      ;;ResultsTrailer
  28. ;      ;;Result
  29. ;    Sections may be omitted, appear in any order, and occur more than once.
  30. ;  + Format lines must begin with a value indicating which variable
  31. ;    they want to access. The special code \00 indicates that no variable
  32. ;    is being requested. If a variable is requested it will be inserted where
  33. ;    a '%s' printf style format specifier appears. There can only be one '%s'
  34. ;    specifier in lines requesting a variable and no other printf format
  35. ;    specifiers may appear. Remember, lines requesting a variable are used as
  36. ;    a printf format string and therefore must behave as such. Lines not 
  37. ;    requesting variables (code \00) can do whatever they want as these 
  38. ;    lines are not fed to a printf statement.
  39. ;  + Arbitrary 8 bit values are entered as \hh where h is a lowercase hex
  40. ;    digit. Note that h must be lowercase.
  41. ;  + Format lines can have the following commands embedded in them.
  42. ;    Note that only 10 registers (indexed 0-9) are currently implemented.
  43. ;     \U\hh   Set the 'U' value to hh. It is reset after the next command.
  44. ;     \Ui\hh  Set the 'U' value to register[hh].
  45. ;     \X\hh   Set the 'X' value to hh. It is reset after the next command.
  46. ;     \Xi\hh  Set the 'X' value to register[hh].
  47. ;     \=\hh   register[hh] = {register[U]|X|1}                 (assign)
  48. ;     \*\hh   register[hh] = register[hh] * {register[U]|X|1}  (multiply)
  49. ;     \/\hh   register[hh] = register[hh] / {register[U]|X|1}  (divide)
  50. ;     \#\hh   register[hh] = register[hh] # {register[U]|X|1}  (modulus)
  51. ;     \+\hh   register[hh] = register[hh] + {register[U]|X|1}  (add)
  52. ;     \-\hh   register[hh] = register[hh] - {register[U]|X|1}  (subtract)
  53. ;     \<\hh   register[hh] = register[hh] << {register[U]|X|1} (shift left)
  54. ;     \>\hh   register[hh] = register[hh] >> {register[U]|X|1} (shift right)
  55. ;     \&\hh   register[hh] = register[hh] & {register[U]|X|1}  (bit and)
  56. ;     \|\hh   register[hh] = register[hh] | {register[U]|X|1}  (bit or)
  57. ;     \^\hh   register[hh] = register[hh] ^ {register[U]|X|1}  (bit xor)
  58. ;     \~\hh   register[hh] = ~register[hh]                     (bit invert)
  59. ;     \F\hh   register[hh] = The result of running Function {U|0} on the 
  60. ;             next {X|<eol>} characters.
  61. ;              \U\00  IDS checksum.
  62. ;              \U\01  XOR checksum. register[hh] is used as the seed value.
  63. ;              \U\02  ADD checksum. register[hh] is used as the seed value.
  64. ;     \O\hh   Output register[hh] as an {X|1} byte value using method {U|0}.
  65. ;              \U\00  Binary little-endian (Intel byte order).
  66. ;              \U\01  Binary big-endian (Motorola byte order).
  67. ;              \U\02  ASCII text right justified space padded.
  68. ;              \U\03  ASCII text right justified zero padded.
  69. ;              \U\04  ASCII text left justified space padded.
  70. ;              \U\05  ASCII text left justified zero padded.
  71. ;     \S\hh   Scan the next {X|1} bytes into register[hh] using method {U|0}.
  72. ;              \U\00  ASCII text base 10.
  73. ;              \U\01  Binary little-endian (Intel byte order).
  74. ;              \U\02  Binary big-endian (Motorola byte order).
  75. ;     \P\hh   Run Procedure hh on the next {X|<eol>} characters.
  76. ;              \P\00  Reverse characters.
  77. ;              \P\01  Convert characters to Colorado Time format. Register[1]
  78. ;                       is the current character position on entry and the
  79. ;                       next character position on exit.
  80. ;              \P\02  Convert characters to Daktronics AllSport format.
  81. ;     \B\hh   Delete {register[U]|hh} (to beginning of line if zero) characters 
  82. ;             before the cursor or until the string contains X characters.
  83. ;     \D\hh   Delete {register[U]|hh} (to end of line if zero) characters 
  84. ;             at the cursor or until the string contains X characters.
  85. ;     \I\hh   Insert {register[U]|hh} spaces at the cursor or until the string
  86. ;             contains X characters.
  87. ;     \Ic\hh  Insert {register[U]|hh} {X's|spaces} at the cursor.
  88. ;     \L\hh   Move the cursor {register[U]|hh} positions to the left (to the 
  89. ;             beginning of the line if zero).
  90. ;     \R\hh   Move the cursor {register[U]|hh} positions to the right (to the
  91. ;             end of the line if zero).
  92. ;    Note that numbers 0 thru 9 can be entered directly for single character
  93. ;    embedded commands. For example, '\U\04' is the same as '\U4' and 
  94. ;    '\=\01' is the same as '\=1'.
  95. ;  + Be very careful about whitespace in each format line. Characters other
  96. ;    than '%s' specifiers and embedded commands and values will be sent
  97. ;    exactly as they appear on the line. This means, for instance, that using
  98. ;    tabs to make a line 'look right' in you favorite editor will cause
  99. ;    tabs to be sent to the scoreboard instead of the equivalent number of
  100. ;    spaces (probably not what you wanted).
  101. ;
  102. ; The format lines follow.
  103.  
  104. ;;Initialization
  105. ; This is sent once to initialize the scoreboard.
  106. ; Line codes:
  107. ;  \00 No variable
  108. ; clear screen
  109. \00\1b\5b\32\4a
  110. ; move cursor to top left of board "ESC[1;1H"
  111. \00\1b\5b\31\3b\31\48
  112.  
  113. ;;TimeRunning
  114. ; This is sent approximately 10 times per second.
  115. ; Line codes:
  116. ;  \00  No variable
  117. ;  \01  Formatted time
  118. ;  \02  Binary time in milliseconds (as a 4 byte little endian integer)
  119. ; Setting register[0] to 1 in a format line will cause that line and
  120. ; subsequent lines to only be sent once per second (when the second's 
  121. ; digit changes) instead of approximately 10 times per second. Setting
  122. ; register[0] to 0 will resume normal operation for remaining lines.
  123. \00\1b\5b\31\3b\31\48
  124. ; put running time in lower right
  125. \00\1b\5b1\1b\5b1
  126. \01%12.12s\B1\L8\B3
  127.  
  128. ;;TimeStopped
  129. ; This is sent when the time is stopped by a beam break.
  130. ; Line codes are identical to the TimeRunning line codes.
  131. \00\1b\5b\31\3b\31\48
  132. \00\1b\5b1\1b\5b1
  133. \01%12.12s\B1\L8\B3
  134.  
  135. ;;TimeGun
  136. ; This is sent when a gun signal is received.
  137. ; Line codes are identical to the TimeRunning line codes.
  138. ;\01\0d\0aGun time    : %12.12s\0d\0a
  139.  
  140. ;;TimeBreak
  141. ; This is sent when a beam break is recieved.
  142. ; Line codes are identical to the TimeRunning line codes.
  143. ;\01\0d\0aBreak time  : %12.12s\0d\0a
  144.  
  145. ;;TimeUpdate
  146. ; This is sent approximately 10 times per second.
  147. ; Line codes are identical to the TimeRunning line codes.
  148. ;\01\0dUpdate time : %12.12s
  149.  
  150. ;;Wind
  151. ; This is sent in the time stream when a wind reading is received.
  152. ; Line codes:
  153. ;  \00  No variable
  154. ;  \01  Formatted wind (same format as ResultsHeader wind)
  155. ;  \02  Binary wind in hundredths of units (as a 4 byte little endian integer)
  156. ;\01\0d\0aWind        : %12.12s\0d\0a
  157.  
  158. ;;TimeOfDay
  159. ; This is sent when the 'Send time of day' option is checked in the
  160. ; Scoreboard pull down menu.
  161. ; Line codes are identical to the TimeRunning line codes.
  162. ;\01\0d%-12.12s
  163.  
  164. ;;ResultsHeader
  165. ; This is sent once each time the scoreboard is updated with results. It
  166. ; is sent before any result lines are sent.
  167. ; Line codes:
  168. ;  \00  No variable
  169. ;  \01  OFFICIAL/UNOFFICIAL string
  170. ;  \02  Event name
  171. ;  \03  Wind
  172. ;  \04  Event number
  173. ;  \05  Round number
  174. ;  \06  Heat number
  175. ;  \07  AUTO/MANUAL start type
  176. ;  \08  Number of participants
  177. ; clear screen
  178. \00\1b\5b\32\4a
  179. ; move cursor to top left of board
  180. \00\1b\5b\31\3b\31\48
  181. ; set font color to yellow
  182. \00\1b\5b\33\33\6d
  183. ; Event Name
  184. \02%s
  185.  
  186. ;;ResultsTrailer
  187. ; This is sent once each time the scoreboard is updated with results. ;It
  188. ; is sent after all result lines are sent.
  189. ; Line codes are identical to the ResultsHeader line codes.
  190. ;\00*** Results Trailer ***\0d\0a\0d\0a
  191.  
  192. ;;Result
  193. ; This is sent once for each result line displayed on the scoreboard.
  194. ; Line codes:
  195. ;  \00  No variable
  196. ;  \01  Place
  197. ;  \02  Lane
  198. ;  \03  Id
  199. ;  \04  Name
  200. ;  \05  Affiliation
  201. ;  \06  Time
  202. ;  \07  Delta Time
  203. ; Register[0] is initialized with the index of the current result line and
  204. ; will range from 0 through PageSize - 1.
  205. \00\0d\0a
  206. \01%-2.2s
  207. \02\09%-2.2s
  208. ;\03\09%3.3s
  209. ;\04\09%-11.11s
  210. ;\05\09%-3.3s
  211. \06\09%12.12s\B1\L8\B3\R0
  212. ;\07%-12.12s
  213. ;\0b\09%3.3s
  214.  
  215. ;;MessageHeader
  216. ; This is sent once each time the scoreboard is updated with the message. It
  217. ; is sent before any message lines are sent.
  218. ; Line codes:
  219. ;  \00  No variable
  220. \00\1b\5b\32\4a
  221. \00\1b\5b\31\3b\31\48
  222.  
  223. ;;Message
  224. ; This is sent once for each message line displayed on the scoreboard.
  225. ; Line codes:
  226. ;  \00  No variable
  227. ;  \01  Text
  228. ; Register[0] is initialized with the index of the current message line and
  229. ; will range from 0 through <number of lines> - 1.
  230. \01%s\0d\0a
  231.  
  232.