You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Other stuff to consider extracting to add to this library.
Shaded tinting
Transparency keys
Glyph composition
Multitile glyphs
Glyph alignment
// Cleaner way to wait for tileset to loadterminal.ready=start;// Write a string with optional alignment and max width.write(terminal,0,0,"Hello world",{align: "left",width: 5});// Support escape codes for color renderingwrite(terminal,0,0,"[red,black]hello[/] world");// Wrap text into line objectswrap(terminal,0,0,"Hello world",{width: 5});// => [{ length: 5, text: "Hello" }, { length: 5, text: "world" }]// Measure text (after wrapping)letmetrics=measure(terminal,0,0,"Hello world",{width: 5});// => { width: 5, height: 2 }// Nested terminalsletpanel=child(terminal,5,5,10,10);panel.write(0,0,"test")// writes at 5,5panel.relativePoint(x,y)// Mouse handling?// Keyboard handling?
The text was updated successfully, but these errors were encountered:
Other stuff to consider extracting to add to this library.
The text was updated successfully, but these errors were encountered: