function _draw() cls() print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n") -- 19 newlines end |
costs 0.1 cpu according to ctrl-p
.
however,
function _draw() cls() print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n") -- 20 newlines end |
costs 0.47 cpu. Each additional newline after that adds around 0.46 cpu usage. This happens with seperate print
calls as well. Supplying coordinates to the print
call will prevent the cpu from spiking. Note that the 20th newline is when print
will scroll the first line off the screen.
A REPL for PARENS-8 v3 by Siapran. Uses PicoTerm v1.10 by me for the UI.
For information on using PARENS-8 see the Github repository, all extensions and builtins are enabled.
To clear the screen run the clear
function or press ctrl-l
. To print to the terminal use the echo
function. To clear the current line press ctrl-u
.
Special thanks to @Siapran for making a special PARENS-8 version for this project.
PARENS-8 is licensed under the MIT license.
PicoTerm is licensed under the BSD-3 Clause license.
The left side is cut off on user profile pages as well
(sorry if this is the wrong subforum, couldn't find one that worked great)
A text editor in under 512 characters. Made for Pico-8 512-Char Jam.
Also on itch.io
Is it possible to request a username change? I emailed [email protected] about changing my username a few months ago and followed up a week ago, but I've gotten no response? Does anyone know another way of getting in contact with Zep?
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
Trying to export a binary or html file from a file that doesn't have the
_init() _update() _draw() |
loop will result in a screen like in the picture. This particular image was from the code
print("test"). |
Please add a flag when launching a cart from the command line to make the cart path relative to the PICO-8 carts folder rather than the current directory of the command prompt/terminal. In addition, a feature to launch within a certain PICO-8 subdirectory rather than the root folder would be nice.
If you multiply a fraction that isn't a power a number greater than 1 the returned result will be incorrect (for example PICO-8 returns 9.9991 from print(0.1*100)). I'm aware that this is a problem inherent to fixed point numbers, however some special cases would be greatly appreciated.
When pressing a button on the keyboard with devkit enabled while paused through Splore the keystrokes will register and take effect when unpaused.
Text Edit
v0.4
Changelog:
0.4
[+] Total rewrite
[+] Word wrap (Credit: @Jusiv)
[+] Line wrap
[+] Lowercase letters
[-] Moveable cursor (Temporary)
[-] Scrolling text (Temporary)
[-] Tab (Temporary)
0.3
[-] Escape not working in Splore
[-] Arrow keys activating twice
[-] Escape creating a space
0.2
[+]SCROLLING TEXT
[-]pressing p more than once pauses in BBS
Implemented:
Typing with your keyboard
Backspace
Word Wrap
Line Wrap
Todo:
Saving files
Loading files
Undo/redo
Selecting text
Copy/paste
Tab
Moveable cursor (use arrow keys)
Scrolling text
(Possibly) on screen keyboard
And more...
Credits:
Jusiv for the word wrap function
Similarly to how you can enable the devkit mouse it would be nice if you could enable the keyboard for use in carts. This would allow for things like text adventures and keyboard shortcuts for things like roguelikes.
A 2-player pong variant with lasers
Left and right change laser color
-Red speeds the ball up
-Orange slows the ball down
-Yellow changes the ball's y-direction
-Green changes the ball's x-direction
Catching a laser with your paddle will increase your ammo by 1
If player 1 wants to use a keyboard and player 2 wants to use a controller, then you must launch PICO-8 with the following command
<PICO-8 path> -joystick 1 |