home *** CD-ROM | disk | FTP | other *** search
/ Carousel / CAROUSEL.cdr / mactosh / hc / hyperter.sit / HyperTerm / card_4687.txt < prev    next >
Text File  |  1988-10-30  |  3KB  |  106 lines

  1. -- card: 4687 from stack: in
  2. -- bmap block id: 5015
  3. -- flags: 0000
  4. -- background id: 2755
  5. -- name: XCMD help
  6. ----- HyperTalk script -----
  7. on openCard
  8.   hide message box
  9. end openCard
  10.  
  11.  
  12.  
  13. -- part 1 (field)
  14. -- low flags: 00
  15. -- high flags: 0000
  16. -- rect: left=10 top=52 right=330 bottom=501
  17. -- title width / last selected line: 0
  18. -- icon id / first selected line: 0 / 0
  19. -- text alignment: 0
  20. -- font id: 2
  21. -- text size: 10
  22. -- style flags: 0
  23. -- line height: 12
  24. -- part name: 
  25.  
  26.  
  27. -- part 2 (field)
  28. -- low flags: 00
  29. -- high flags: 0000
  30. -- rect: left=10 top=26 right=54 bottom=501
  31. -- title width / last selected line: 0
  32. -- icon id / first selected line: 0 / 0
  33. -- text alignment: 1
  34. -- font id: 2
  35. -- text size: 18
  36. -- style flags: 1024
  37. -- line height: 24
  38. -- part name: 
  39.  
  40.  
  41. -- part 3 (button)
  42. -- low flags: 00
  43. -- high flags: 0000
  44. -- rect: left=466 top=307 right=336 bottom=502
  45. -- title width / last selected line: 0
  46. -- icon id / first selected line: 2162 / 2162
  47. -- text alignment: 1
  48. -- font id: 0
  49. -- text size: 12
  50. -- style flags: 0
  51. -- line height: 16
  52. -- part name: Return
  53. ----- HyperTalk script -----
  54. on mouseUp
  55.   visual effect iris close
  56.   pop card
  57. end mouseUp
  58.  
  59.  
  60.  
  61. -- part 5 (button)
  62. -- low flags: 00
  63. -- high flags: 0000
  64. -- rect: left=430 top=307 right=336 bottom=466
  65. -- title width / last selected line: 0
  66. -- icon id / first selected line: 9301 / 9301
  67. -- text alignment: 1
  68. -- font id: 0
  69. -- text size: 12
  70. -- style flags: 0
  71. -- line height: 16
  72. -- part name: Next
  73. ----- HyperTalk script -----
  74. on mouseUp
  75.   visual effect wipe right
  76.   go to previous card
  77. end mouseUp
  78.  
  79.  
  80. -- part contents for card part 2
  81. ----- text -----
  82. Serial Port XCMDs
  83.  
  84. -- part contents for card part 1
  85. ----- text -----
  86. sendSPort ┬½port┬╗,┬½addLineFeeds┬╗,┬½string┬╗ ΓÇö This command sends the text string ┬½string┬╗
  87.      to out the port. If ┬½addLineFeeds┬╗ is "true", it inserts line feeds after any carriage
  88.      returns in ┬½string┬╗.
  89.  
  90. SPortHasChar(┬½port┬╗) ΓÇö This function returns "true" if the port has characters waiting
  91.      or "false" if it does not.
  92.  
  93. recvSPort(┬½port┬╗) ΓÇö This function returns the next character available on the port. If
  94.      none are available, it waits until one is available.
  95.  
  96. recvUpTo(┬½port┬╗,┬½terminationCharacter┬╗,┬½timeOut┬╗,┬½echo┬╗,┬½edit┬╗) ΓÇö This function
  97.      allows for a wide variety of styles of input. It returns a string of characters received
  98.      by the serial port. It returns all characters up to the ┬½terminationCharacter┬╗ that
  99.      are currently available or are received within the next ┬½timeOut┬╗ 60ths of a second.
  100.      ┬½terminationCharacter┬╗ can be empty, in which case all available characters are
  101.      returned. ┬½timeOut┬╗ can be zero, in which case only currently available characters
  102.      are returned. If ┬½echo┬╗ is "true", the received characters are also sent out the output
  103.      port, with line feeds inserted after carriage returns. If ┬½edit┬╗ is "true", a backspace
  104.      received will cause the last character of the input buffer to be removed and the
  105.      sequence "backspace, space, backspace" to be sent out the output port (of course,
  106.      backspace won't erase characters that were returned in a previous call).