tbased - TBAS Touchpad Editor
Description
TBASED is an editor for TBAS that uses the touchpad for editing.
Operation
When the TBASED app is started, the edit buffer is displayed on the 7 segment display, with the cursor identified by a blinking decimal point. Additionally, the usb serial terminal displays the currently executing TBAS program for reference, along with the edit buffer. Although the serial terminal displays editor information, editing must be done with on the badge via the touchpad and softkey.
Keys
0 and 9 are the cursor keys, moving the cursor through the edit buffer.
1 Inserts a ‘[‘
2 Inserts a ‘]’
3 Inserts a ‘<‘
4 Inserts a ‘>’
5 Inserts a ‘+’
6 Inserts a ‘-‘
7 Inserts a ‘=’
8 Inserts a ‘?’
* Backspace. If the buffer is empty, the currently executing TBAS program is reloaded into the edit buffer.
# Commands TBAS to execute the program in the current edit buffer, and exits the TBASED app.
The softkey is used to exit the TBASED app without running the edited program.
TBAS Supplement
If TBAS uses its IO Mode to execute the TBASED app interface, the FIFO is treated as source code and run. In this way, TBAS can self-load new programs.
---------------------------------------------------
tbascl - TBAS Command Line Editor
Description
TBASCL is an editor for TBAS that uses the command line for editing. The primary goal is to provide a simple mechanism to load tbas programs that have been edited or stored off-badge.
Operation
When the TBASCL app is started, the usb serial terminal displays the currently executing TBAS program for reference, followed by the edit buffer. The edit buffer is also displayed on the 7 segment display. Terminal cursor control is not supported, the cursor is located at the end of the edit buffer.
Keys
^H/Backspace removes the character under the cursor.
^L repaints the display.
^U clears the entire edit buffer.
<CR> commands TBAS to execute the program in the current edit buffer, and exits the TBASCL app.
^X exits the TBASCL app without running the edited program.
All other printable keys are used to fill the edit buffer.
Additionally the HASH touchpad and softkey can be used to run or cancel the editing, in the same manner as TBASED.
TBAS Supplement
If TBAS uses its IO Mode to execute the TBASCL app interface, the FIFO is treated as source code and run. In this way, TBAS can self-load new programs.