PicoTerm is a PICO-8 CLI template. It can be used as a basis for command-line games and programs.
See tab 3 for the functions that are called whenever a character or line is entered. See tab 2 for functions to call to interact with the terminal.
Pressing ctrl-u
or ctrl-l
will clear the current line of input or the screen, respectively. The up and down arrows allow you to scroll through input history.
If you use this in a project please follow the license terms at the bottom of the post. I would also appreciate being notified, however that is not mandatory.
If you do not use a feature in your project you can modify this remove it to have more tokens.
Known Issues:
Changelog:
License:
BSD 3-Clause



@dw817 unfortunately, a moveable cursor wouldn't be easy to implement into the existing codebase, however, you are free to modify this as long as you credit and link back here.



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.


Is there a way to have:
foreach(log,ycursor=ycursor+1) |
?



@dw817, sorry, I just saw this, I misunderstood what you meant by "cursor", I thought you wanted to be able to move the cursor with the arrow keys, I'll try and implement one soon.
[Please log in to post a comment]