File: display.texi

package info (click to toggle)
pfe 0.9.14-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,436 kB
  • ctags: 2,439
  • sloc: ansic: 14,095; sh: 438; asm: 113; makefile: 70; perl: 13
file content (49 lines) | stat: -rw-r--r-- 1,426 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@node Display Output, Strings, Compiling, Top
@chapter Display Output
@cindex display output


@menu
* Elementary Display I/O::      
* Display Highlighting::        
@end menu

@node Elementary Display I/O, Display Highlighting, Display Output, Display Output
@section Elementary Display I/O
@cindex display

ANS-Forth defines the following primitives words for input and output:

@ftable @samp
@item KEY ( --- char )
waits for a character typed on the keyboard and returns that character.
@samp{KEY} doesn't return on non-character input events like function
keys pressed. See @samp{EKEY} for a more complete keyboard query. [core]

@item KEY? ( --- flag )
returns true if a key is available for reading using @samp{KEY}, false
if no key is available. Eventually pressed function keys are not
detected but discarded. [facility]

@item EMIT ( char --- )
displays the character at the current cursor position. The effect of
control characters depends on the system. [core]

On UNIX systems @samp{EMIT}-ting the code decimal 10, line feed, has the
effect of both carriage return and line feed.

@item TYPE ( c-addr u --- )
displays the string of u characters starting at c-addr. [core]

@item AT-XY ( u1 u2 --- )
positions the cursor to column u1, row u2. [facility]

@end ftable


@node Display Highlighting,  , Elementary Display I/O, Display Output
@section Highlighting
@cindex highlighting
@cindex screen control

@b{pfe}