Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Conklin E.K.Forth programmer's handbook.2000.pdf
Скачиваний:
321
Добавлен:
23.08.2013
Размер:
2.04 Mб
Скачать

TYPE

References

Forth Programmer’s Handbook

EMIT? would suffer an indefinite delay; otherwise, return true, including the case where the device status is indeterminate. Used, for example, in modem protocols with the RTS line. “emit-question”

( c-addr u — )

Core

Output the character string at c-addr, length u.

 

PAD, Section 2.3.1

Scanning strings, Section 4.1.5

Vectored execution, Section 2.5.6

3.3.3 Support of Special Terminal Features

Each terminal task in a Forth system has unique user variables, including a port address, or other deviceand system-specific interrupt vectoring. Each task may require different control character sequences for functions such as CR (go to beginning of next line) and PAGE (go to top of next page).

The standard Forth words that perform terminal functions are listed in this section. The method of vectoring these functions to the particular output sequences required for given devices is system dependent.

Glossary

AT-XY

( u1 u2 — )

Facility

 

Configure the current output device so the next character displayed will

 

appear in column u1, row u2 of the device’s output area. The upper-left corner

 

of this area is at u1 = 0, u2 = 0. “at-X-Y”

 

CR

( — )

Core

 

Cause subsequent output to appear at the beginning of the next line on the

 

current output device. “C-R”

 

PAGE

( — )

Facility

 

Move to another page for output on the current device. On a CRT, clear the

 

screen and reset the cursor position to the upper-left corner. On a printer, per-

 

form a form feed.

 

System Functions 85

Соседние файлы в предмете Электротехника