[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
1.1 Elementary Display I/O | ||
1.2 Highlighting |
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
ANS-Forth defines the following primitives words for input and output:
waits for a character typed on the keyboard and returns that character. ‘KEY’ doesn’t return on non-character input events like function keys pressed. See ‘EKEY’ for a more complete keyboard query. [core]
returns true if a key is available for reading using ‘KEY’, false if no key is available. Eventually pressed function keys are not detected but discarded. [facility]
displays the character at the current cursor position. The effect of control characters depends on the system. [core]
On UNIX systems ‘EMIT’-ting the code decimal 10, line feed, has the effect of both carriage return and line feed.
displays the string of u characters starting at c-addr. [core]
positions the cursor to column u1, row u2. [facility]
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
pfe
[Top] | [Contents] | [Index] | [ ? ] |
This document was generated on November 5, 2024 using texi2html 5.0.
The buttons in the navigation panels have the following meaning:
Button | Name | Go to | From 1.2.3 go to |
---|---|---|---|
[ << ] | FastBack | Beginning of this chapter or previous chapter | 1 |
[ < ] | Back | Previous section in reading order | 1.2.2 |
[ Up ] | Up | Up section | 1.2 |
[ > ] | Forward | Next section in reading order | 1.2.4 |
[ >> ] | FastForward | Next chapter | 2 |
[Top] | Top | Cover (top) of document | |
[Contents] | Contents | Table of contents | |
[Index] | Index | Index | |
[ ? ] | About | About (help) |
where the Example assumes that the current position is at Subsubsection One-Two-Three of a document of the following structure:
This document was generated on November 5, 2024 using texi2html 5.0.