Skip to content

Forth Console

Wolf Wejgaard edited this page Apr 1, 2020 · 6 revisions

Command line

The command line is evaluated when you press <Enter>.

Use <Shift+Enter> to continue the command on the next line.

If you copy source text into the console, end definitions by empty lines.

Stack contents

The command line displays the stack content in parentheses before the prompt "ok".

Lists and strings containing spaces are enclosed in braces.

Command History

Recall command lines with the up and down arrows.

Shortcuts

  • Ctrl-W = Shows the loaded Words (dictionary)
  • Ctrl-S = Clears the Stack
  • Ctrl-C = Clears the Console

Code Window

The command line is compiled to Tcl code and executed in the Tcl runtime engine.

You can inspect the Tcl code in a Code Window (open it in the Setup menu).

Menus

File

  • Load .tcl - loads a Tcl source file
  • Load .fth - loads a Forth source file

Setup

  • Clear Console - Resets the Forth console - Shortcut Ctrl+C
  • Show/Hide Stack - Shows the stack contents on the command line
  • Show/Hide Code Window - Shows the compiled Tcl code
  • Open Tcl Console - Access to the Tcl interpreter

Help

  • TclForth Words - Displays the Forth words (dictionary) - Shortcut Ctrl+W
  • TclForth Guide - Opens the TclForth Wiki
  • Tcl Commands - Presents the Tcl commands (official manual)
Clone this wiki locally