Comments (3)
If we want overlaying text, e.g. a GAME OVER message drawing over the screen, this can be gnarly, because of needing to understand and update colors, e.g. above if the X's are yellow and Hello is red, we need to change the color back to yellow.
This probably means this feature is too custom and is kind of a deal breaker, unless we come up with some way to render text to an intermediate string and then we can merge those two together.
from kotter.
It's possible we could come up with an API similar to bordered
which just got added today.
from kotter.
I don't think this has ever come up for me needing it, so I'm not going to add an API for it.
However, if you need it, you can delegate to justified
:
justified(CENTER, minWidth = 10) {
repeat(4) { textLine() }
text("Hello")
repeat(5) { textLine() }
}
from kotter.
Related Issues (20)
- Virtual terminal: Fix underline showing on newline
- Fix busted unicode (emoji? chinese characters?) support HOT 4
- Document advanced input() cases HOT 1
- A simple game using Kotter HOT 6
- Pressing ESC followed by another key in quick succession can cause a thread lock
- Add support for NUMPAD keys HOT 1
- Add support for OSC hyperlinks HOT 4
- Timing issues with aside sections HOT 8
- `text` inside a `bordered` call is dropping the last line HOT 1
- Add "transform" callback to input() method HOT 1
- Add docs for how to test your project using Kotter HOT 2
- Investigate why `input(); textLine()` ends up with a CLEAR_INVERT command on the next line
- Consider opening up `link(uri, block)`
- Can't use Kotter without virtual terminal HOT 18
- Kotter is missing my native target
- Windows flickers if the content being redrawn is larger than the entire screen HOT 2
- K/N repaints duplicate lines if any particular line is too long horizontally HOT 2
- Add a test for Terminal#width HOT 1
- Windows + Kotlin/Native: Repaint issues reported (on legacy OS versions?) HOT 2
- K/N: Arithmetic Exception HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kotter.