Log In  

Cart #picoterm_v1-3 | 2021-10-28 | Code ▽ | Embed ▽ | No License
3

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.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 Bugs:

  • Typing double-wide characters breaks the line wrap
P#93811 2021-06-21 17:28 ( Edited 2021-10-28 02:34)

1

May use this for a future project -- neat!

P#93833 2021-06-21 22:30

epicccc

P#99290 2021-10-28 23:10
:: dw817

Cursor ?

P#99298 2021-10-29 04:16

when i search this up in splore:
future version please update
whats the newest version of pico8?
:l

P#99343 2021-10-29 22:50

nevermind figured it out

P#99344 2021-10-29 23:15

@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.

P#99460 2021-11-01 11:46
:: dw817
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.

Cart #pegeruweyi-0 | 2021-11-01 | Code ▽ | Embed ▽ | No License
1

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]

Follow Lexaloffle:        
Generated 2021-12-06 18:26:41 | 0.041s | Q:27