version 1.174, 2007/02/23 22:33:21
|
version 1.175, 2007/03/31 19:43:54
|
Line 331 Other I/O
|
Line 331 Other I/O
|
* Formatted numeric output:: Formatted (pictured) output |
* Formatted numeric output:: Formatted (pictured) output |
* String Formats:: How Forth stores strings in memory |
* String Formats:: How Forth stores strings in memory |
* Displaying characters and strings:: Other stuff |
* Displaying characters and strings:: Other stuff |
|
* Terminal output:: |
* Input:: Input |
* Input:: Input |
* Pipes:: How to create your own pipes |
* Pipes:: How to create your own pipes |
* Xchars and Unicode:: Non-ASCII characters |
* Xchars and Unicode:: Non-ASCII characters |
Line 8706 doc-block-included
|
Line 8707 doc-block-included
|
* Formatted numeric output:: Formatted (pictured) output |
* Formatted numeric output:: Formatted (pictured) output |
* String Formats:: How Forth stores strings in memory |
* String Formats:: How Forth stores strings in memory |
* Displaying characters and strings:: Other stuff |
* Displaying characters and strings:: Other stuff |
|
* Terminal output:: Cursor positioning etc. |
* Input:: Input |
* Input:: Input |
* Pipes:: How to create your own pipes |
* Pipes:: How to create your own pipes |
* Xchars and Unicode:: Non-ASCII characters |
* Xchars and Unicode:: Non-ASCII characters |
Line 8910 For words that move, copy and search for
|
Line 8912 For words that move, copy and search for
|
Blocks}. For words that display characters and strings see |
Blocks}. For words that display characters and strings see |
@ref{Displaying characters and strings}. |
@ref{Displaying characters and strings}. |
|
|
@node Displaying characters and strings, Input, String Formats, Other I/O |
@node Displaying characters and strings, Terminal output, String Formats, Other I/O |
@subsection Displaying characters and strings |
@subsection Displaying characters and strings |
@cindex characters - compiling and displaying |
@cindex characters - compiling and displaying |
@cindex character strings - compiling and displaying |
@cindex character strings - compiling and displaying |
Line 8918 Blocks}. For words that display characte
|
Line 8920 Blocks}. For words that display characte
|
This section starts with a glossary of Forth words and ends with a set |
This section starts with a glossary of Forth words and ends with a set |
of examples. |
of examples. |
|
|
|
|
doc-bl |
doc-bl |
doc-space |
doc-space |
doc-spaces |
doc-spaces |
Line 8931 doc-type
|
Line 8932 doc-type
|
doc-typewhite |
doc-typewhite |
doc-cr |
doc-cr |
@cindex cursor control |
@cindex cursor control |
doc-at-xy |
|
doc-page |
|
doc-s" |
doc-s" |
doc-s\" |
doc-s\" |
doc-c" |
doc-c" |
Line 9005 definition of @code{my-char}.
|
Line 9004 definition of @code{my-char}.
|
@end itemize |
@end itemize |
|
|
|
|
|
@node Terminal output, Input, Displaying characters and strings, Other I/O |
|
@subsection Terminal output |
|
@cindex output to terminal |
|
@cindex terminal output |
|
|
|
If you are outputting to a terminal, you may want to control the |
|
positioning of the cursor: |
|
@cindex cursor positioning |
|
|
|
doc-at-xy |
|
|
|
In order to know where to position the cursor, it is often helpful to |
|
know the size of the screen: |
|
@cindex terminal size |
|
|
|
doc-form |
|
|
|
And sometimes you want to use: |
|
@cindex clear screen |
|
|
|
doc-page |
|
|
|
Note that on non-terminals you should use @code{12 emit}, not |
|
@code{page}, to get a form feed. |
|
|
|
|
@node Input, Pipes, Displaying characters and strings, Other I/O |
@node Input, Pipes, Terminal output, Other I/O |
@subsection Input |
@subsection Input |
@cindex input |
@cindex input |
@cindex I/O - see input |
@cindex I/O - see input |