A humble text editor for fox32os written in Jackal.
Hjkl can be invoked in the shell, like so:
0> 1:hjkl 0:startup.bat
The N: syntax specifies the disk ID of the file or application, and can be elided if it is in the currently selected disk.
Hjkl is a non-modal editor, which means typing a character immediately inserts that character at the cursor, and other commands require special keys or keybinds to perform. We use C-p to represent holding the Ctrl key while pressing the P key.
C-porUp: move cursor upC-norDown: move cursor downC-forRight: move cursor rightC-borLeft: move cursor leftC-a: move cursor to start of lineC-e: move cursor to end of lineC-u: scroll upC-v: scroll downBackspace: delete character before cursorC-d: delete character at cursorC-s: save fileC-c: quit
Hjkl can be built with Make, requires variables JACKAL (Jackal compiler), XRASM (assembler), XRLINK (linker), and RTLLIB (object file of Jackal's standard library), all from the XR/station SDK. The run convenience recipe also requires variables RYFS, FOX32, and FOX32OS.
I personally just use a shell script to fill these in for me:
#/bin/sh
make run JACKAL=../../newsdk/bin/jkl.exe XRASM=../../newsdk/bin/xrasm.exe XRLINK=../../newsdk/bin/xrlink.exe RTLLIB=../../newsdk/Rtl/build/fox32/Rtl.lib RYFS=../../ryfs/ryfs.py FOX32=../../vm/fox32 FOX32OS=../../os/fox32os.img