version 1.230, 2010/12/31 18:09:02
|
version 1.231, 2011/01/01 14:22:48
|
Line 8923 doc-block-included
|
Line 8923 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 |
|
* String words:: Gforth's little string library |
* Terminal output:: Cursor positioning etc. |
* Terminal output:: Cursor positioning etc. |
* Single-key input:: |
* Single-key input:: |
* Line input and conversion:: |
* Line input and conversion:: |
Line 9129 For words that move, copy and search for
|
Line 9130 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, Terminal output, String Formats, Other I/O |
@node Displaying characters and strings, String words, 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 9220 the text ``LPHABET'' and only compiled t
|
Line 9221 the text ``LPHABET'' and only compiled t
|
definition of @code{my-char}. |
definition of @code{my-char}. |
@end itemize |
@end itemize |
|
|
|
@node String words, Terminal output, Displaying characters and strings, Other I/O |
|
@subsection String words |
|
@cindex string words |
|
|
|
The following string library stores strings in ordinary variables, |
|
which then contain a pointer to a counted string stored allocated from |
|
the heap. Instead of a count byte, there's a whole count cell, |
|
sufficient for all normal use. The string library originates from |
|
bigFORTH. |
|
|
|
doc-delete |
|
doc-insert |
|
doc-$! |
|
doc-$@ |
|
doc-$@len |
|
doc-$!len |
|
doc-$del |
|
doc-$ins |
|
doc-$+! |
|
doc-$off |
|
doc-$init |
|
doc-$split |
|
doc-$iter |
|
|
@node Terminal output, Single-key input, Displaying characters and strings, Other I/O |
@node Terminal output, Single-key input, String words, Other I/O |
@subsection Terminal output |
@subsection Terminal output |
@cindex output to terminal |
@cindex output to terminal |
@cindex terminal output |
@cindex terminal output |