tty.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <html>
  2. <head>
  3. <title>TTY</title>
  4. </head>
  5. <body bgcolor="FFFFFF">
  6. <h1><img align="center" src="../../../../en/icons/tty.gif" width="32" height="32">
  7. <em>TTY</em></h1>
  8. <p><table>
  9. <tr><td><strong>Library:</strong></td>
  10. <td><a href="index.html">Input/Output</a></td></tr>
  11. <tr><td><strong>Introduced:</strong></td>
  12. <td>2.2.0</td></tr>
  13. <tr><td valign="top"><strong>Appearance:</strong></td>
  14. <td valign="top"><img src="../../../../en/img-libs/tty.png" width="70" height="73"></td></tr>
  15. </table></p>
  16. <h2>Behavior</h2>
  17. <p>This component implements a very simple dumb terminal. It receives a sequence
  18. of ASCII codes and displays each printable character. When the current row
  19. becomes full, the cursor moves to the following line, possibly scrolling all
  20. current rows up if the cursor was already in the bottom row. The only supported
  21. control sequences are: backspace (ASCII 8), which deletes the last character in
  22. the final row, unless the final row is already empty; newline (ASCII 10), which
  23. moves the cursor to the beginning of the following line, scrolling if necessary;
  24. and form-feed (ASCII 12, typed as control-L), which clears the screen.</p>
  25. <h2>Pins</h2>
  26. <dl>
  27. <dt>West edge, upper pin (input, bit width 7)</dt>
  28. <dd>Data - this is the ASCII value of the next character to be entered into
  29. the terminal.</dd>
  30. <dt>West edge, lower pin marked by triangle (input, bit width 1)</dt>
  31. <dd>Clock - when triggered while the write-enable pin isn't 0, the
  32. current ASCII value on the Data input is processed by the terminal.</dd>
  33. <dt>South edge, leftmost pin (input, bit width 1)</dt>
  34. <dd>Write Enable - when 1 (or floating or error), a clock edge will result
  35. in processing a new character from the data input. The clock and data inputs are
  36. ignored when Write Enable is 0.</dd>
  37. <dt>South edge, second pin from left (input, bit width 1)</dt>
  38. <dd>Clear - when 1, the terminal is cleared of all data, and all other inputs
  39. are ignored.</dd>
  40. </dl>
  41. <h2>Attributes</h2>
  42. <dl>
  43. <dt>Rows</dt>
  44. <dd>The number of rows displayed in the terminal.</dd>
  45. <dt>Columns</dt>
  46. <dd>The maximum number of characters displayed in each row of terminal.</dd>
  47. <dt>Trigger</dt>
  48. <dd>If the value is <q>Rising Edge,</q> then when the clock input changes
  49. from 0 to 1, the data input is processed (when enabled by the write-enable
  50. and clear inputs).
  51. If it is <q>Falling Edge,</q>, then this happens when the
  52. clock input changes from 1 to 0.</dd>
  53. <dt>Color</dt>
  54. <dd>The color with which to draw the text appearing in the terminal.</dd>
  55. <dt>Background</dt>
  56. <dd>The color with which to draw the terminal's background.</dd>
  57. </dl>
  58. <h2>Poke Tool Behavior</h2>
  59. <p>None.</p>
  60. <h2>Text Tool Behavior</h2>
  61. <p>None.</p>
  62. <p><a href="../index.html">Back to <em>Library Reference</em></a></p>
  63. </body>
  64. </html>