PicoTerm is a simple PICO-8 CLI template. It can be used as a basis for command-line games and programs.
To get commands, modify execute() with your command handling code. To print a line, use echo().
If you use this in a project please credit DivergentClouds and link back to this page. (I would also appreciate being notified, however, that is not mandatory)
Changelog:
1.8
- Fixed bug where cpu usage would skyrocket with enough lines
1.7
- Fixed bug where line wrapping wouldn't work if a previous line had been wrapped
1.6
- Major line wrapping bug fixed
- Fixed pressing ESC sometimes printing a dot
1.5
- Fixed bug where the cursor would persist at the start of a line after pressing return
1.4
- Added blinking cursor
1.3
- Prohibited glyph characters in input to prevent doublewide characters from messing up the screen scrolling
1.2
- Made it so that the prompt is mixed in with the log rather than being stuck at the bottom of the screen
1.1
- Made it so pressing ESC won't print a character
1.0
- Released
Known Issues:
- Minor: Backspacing on an empty line moves the cursor backwards for a frame regardless
License:
BSD 3-Clause
P#93811 2021-06-21 17:28 ( Edited 2022-05-01 04:49)

1

You are using some advanced programming in here that I'm not familiar with, @FlowingLily. The FOREACH for instance. I have your cursor, it's just kinna clumsy the way I did it.
by dw817


Is there a way to have:
foreach(log,ycursor=ycursor+1) |
?
P#99473 2021-11-01 18:02
[Please log in to post a comment]