-
Sadly my terminal program requires control-backspace to delete text in Zeptoforth. I would like to map that to my Delete Key. Also the arrow-up and arrow-down only work in the editor, not the command line. Is there a way to remap these keys to match my serial terminal and computer? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
I would personally highly suggest using zeptocom.js, a Forth web serial terminal, with zeptoforth, if you have access to Chrome or Chromium (but note that web serial does not appear to work with Chromium on FreeBSD). (If you want to look at the source code for zeptocom.js, or you want to run it with a local web server, it is also on GitHub.) zeptocom.js provides many features including history, history completion, and mass code upload support. If you do not want to use zeptocom.js and rather want to use a terminal emulator like picocom or GNU screen, there is also the option of using zeptoforth's line editor, which is part of Failing that, you might want to look at stty to change the settings for your terminal environment, if that is an option. You can remap your Delete key to $7F, which is expected by zeptoforth, with Last but not least, if you do not want to use picocom or GNU screen, and cannot use stty, but do not feel averse to recompiling and rebuilding zeptoforth, you can always modify the zeptoforth source, in which the use of $7F is hard-coded for delete. There are a few places to change
Then follow the build instructions in |
Beta Was this translation helpful? Give feedback.
-
Note that I have modified my post above, in case you already saw it in its partial form. |
Beta Was this translation helpful? Give feedback.
-
I tried using zeptocom, but it threw errors in Chrome on my M1 Mac. Three or four I believe. I attempted to make some changes to get it working. Upload works but not key entry. |
Beta Was this translation helpful? Give feedback.
-
Finally figured out how to use ZeptoCom on my Mac M1. Didn't realize that the line below the terminal is the entry. All good now. |
Beta Was this translation helpful? Give feedback.
-
I've found that in TeraTerm (v4.106) I can use Keyboard, on the Setup menu. The first two options are; Transmit DEL by: It seems okay to just tick both of them. This gets saved in the .INI file if you then use Save setup, on the Setup menu (which defaults to using the Program Files (x86) folder for TeraTerm). That can then be loaded in again using Restore Setup, on the Setup menu, or by starting TeraTerm with a shortcut set to load that .INI file. In Windows that means setting the target of the shortcut to be like this: "C:\Program Files (x86)\teraterm\ttermpro.exe" /f=Zepto.INI |
Beta Was this translation helpful? Give feedback.
I would personally highly suggest using zeptocom.js, a Forth web serial terminal, with zeptoforth, if you have access to Chrome or Chromium (but note that web serial does not appear to work with Chromium on FreeBSD). (If you want to look at the source code for zeptocom.js, or you want to run it with a local web server, it is also on GitHub.) zeptocom.js provides many features including history, history completion, and mass code upload support.
If you do not want to use zeptocom.js and rather want to use a terminal emulator like picocom or GNU screen, there is also the option of using zeptoforth's line editor, which is part of
full
builds of zeptoforth. For starters, you should be able to …