From c49bb6571e61521e16ef6fee44bb1925484c7ebd Mon Sep 17 00:00:00 2001 From: Brad Nelson Date: Mon, 5 Sep 2022 22:01:39 -0700 Subject: [PATCH] Fixing up website. --- site/ESP32forth.html | 2 +- site/common.html | 40 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/site/ESP32forth.html b/site/ESP32forth.html index 978af20..f5bb8ac 100644 --- a/site/ESP32forth.html +++ b/site/ESP32forth.html @@ -1016,7 +1016,7 @@ See aut

Words can be added based on C functions by placing a file named userwords.h alongside the .ino file for ESP32forth.
-(Requires v7.0.6.4+)
+Requires v7.0.6.4+
Before v7.0.6.4, user words required editing the .ino file.

diff --git a/site/common.html b/site/common.html index 5334937..eca4658 100644 --- a/site/common.html +++ b/site/common.html @@ -43,6 +43,44 @@ DUMP ( a n -- ) Dump a memory region SEE ( "name" -- ) Attempt to decompile a word VARIABLE ECHO -- Determines if commands are echoed REMAINING ( -- n ) Bytes remaining in Forth heap. +DUMP-FILE ( data data# fn fn# -- ) Write contents of a file throws on error. + + +
Shell Utilities
+

Requires v7.0.7.3+ -- ONLY Posix + ESP32

+
+cp ( "src" "dst" -- ) Copy "src" file to "dst".
+mv ( "src" "dst" -- ) Rename "src" file to "dst".
+rm ( "path" -- ) Remove "path" file.
+touch ( "path" -- ) Create "path" file if it doesn't exist.
+cat ( "path" -- ) Print contents of "path" file.
+ls ( "path" -- ) List files or directories in "path".
+
+

Requires v7.0.7.3+ -- ONLY Posix

+
+cd ( "path" -- ) Change director to "path".
+mkdir ( "path" -- ) Create directory "path".
+rmdir ( "path" -- ) Remove directory "path".
+pwd ( -- ) Print current directory.
+
+ +
Visual Editor
+

Requires v7.0.7.2+

+
+VISUAL EDIT ( "path" --) Enters a visual editor opening file "path".
+
+NOTE: On ESP32 requires connection over an ANSI serial terminal like Putty.
+
+LIMITATIONS: Terminal doesn't know screen dimensions
+             and is very redraw inefficient.
+
+Keys:
+  Ctrl-S          -- Save now.
+  Ctrl-X / Ctrl-Q -- Quit, asking Y/N to save.
+  Ctrl-L          -- Redraw the screen.
+  Backspace       -- Delete a character backwards.
+  Arrow Keys      -- Movement.
+  PgUp/PgDn       -- Scroll up/down a page.
 
Vocabularies
@@ -157,7 +195,7 @@ SO_REUSEADDR
Floating-Point
-

(Requires v7.0.6.5+)

+

Requires v7.0.6.5+

Single precision floating-point support is available as a work in progress. While initially left out in the name of minimalism,