| www.delorie.com/gnu/docs/gforth/gforth_8.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Gforth maintains a history file that records every line that you type to the text interpreter. This file is preserved between sessions, and is used to provide a command-line recall facility; if you type Ctrl-P repeatedly you can recall successively older commands from this (or previous) session(s). The full list of command-line editing facilities is:
bye).
Ctrl-d on a non-empty line) to delete the
character under the cursor.
When editing, displayable characters are inserted to the left of the cursor position; the line is always in "insert" (as opposed to "overstrike") mode.
On Unix systems, the history file is `~/.gforth-history' by default(2). You can find out the name and location of your history file using:
history-file type \ Unix-class systems history-file type \ Other systems history-dir type |
If you enter long definitions by hand, you can use a text editor to paste them out of the history file into a Forth source file for reuse at a later time.
Gforth never trims the size of the history file, so you should do this periodically, if necessary.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |