Difference between revisions of "Chars"
Jump to navigation
Jump to search
(Initial page.) |
m |
||
Line 1: | Line 1: | ||
− | This module contains names for all the special characters supported by Mini Micro. | + | This system module contains names for all the special characters supported by Mini Micro. |
{| class="wikitable" | {| class="wikitable" |
Latest revision as of 07:14, 31 March 2025
This system module contains names for all the special characters supported by Mini Micro.
Name | Character |
---|---|
left | ← |
right | → |
up | ↑ |
down | ↓ |
leftArrow | ← |
rightArrow | → |
upArrow | ↑ |
downArrow | ↓ |
unprintable | ¡ |
buttonCapLeft | [ |
buttonCapRight | ] |
figureStanding | char(57872) |
figureWaitingToeDown | char(57873) |
figureWaitingToeUp | char(57874) |
figureAkimbo | char(57875) |
mu | µ |
invertedBang | ¡ |
copyright | © |
lineEndSymbol | ¬ |
registered | ® |
degrees | ° |
invertedQuestion | ¿ |
multSign | × |
divSign | ÷ |
pi | π |
tau | τ |
bullet | • |
tree | char(127794) |
ellipsis | … |
emptyBox | ☐ |
checkedBox | ☑ |
boxWithX | ☒ |
spade | ♠ |
club | ♣ |
heart | ♥ |
diamond | ♦ |
dieFace[1] | ⚀ |
dieFace[2] | ⚁ |
dieFace[3] | ⚂ |
dieFace[4] | ⚃ |
dieFace[5] | ⚄ |
dieFace[6] | ⚅ |
inverseOn | Inverts all future printed characters |
inverseOff | Removes Inverted printing |
bell | Plays a tone |
backup | char(8) |
tab | char(9) |
esc | char(27) |
returnKey | char(10) |
enterKey | char(3) |
Example
import "chars"
text.clear
text.row = 25
print "Special characters:"
print
printAlign = function(label, text)
print " " * (30 - label.len) + label + ": " + text
end function
printAlign "left or leftArrow", chars.leftArrow
printAlign "up or upArrow", chars.upArrow
printAlign "right or rightArrow", chars.rightArrow
printAlign "down or rightArrow", chars.downArrow
printAlign "unprintable", chars.unprintable
printAlign "buttonCapLeft", chars.buttonCapLeft
printAlign "buttonCapRight", chars.buttonCapRight
printAlign "figureStanding", chars.figureStanding
printAlign "figureWaitingToeDown", chars.figureWaitingToeDown
printAlign "figureWaitingToeUp", chars.figureWaitingToeUp
printAlign "figureAkimbo", chars.figureAkimbo
printAlign "mu, pi, tau", chars.mu + " " + chars.pi + " " + chars.tau
printAlign "bullet, ellipsis, degrees", [chars.bullet, chars.ellipsis, chars.degrees].join
printAlign "copyright, registered", [chars.copyright, chars.registered].join
printAlign "tree", chars.tree
printAlign "emptyBox", chars.emptyBox
printAlign "checkedBox", chars.checkedBox
printAlign "boxWithX", chars.boxWithX
printAlign "spade, club, heart, diamond", [chars.spade, chars.club, chars.heart, chars.diamond].join
printAlign "dieFace[1] - dieFace[6]", [chars.dieFace[1], chars.dieFace[2], chars.dieFace[3],
chars.dieFace[4], chars.dieFace[5], chars.dieFace[6]].join
print