terminal colors, multi-line strings; bump to 0.8

This commit is contained in:
alex-s168
2024-03-28 22:44:15 +01:00
parent bd60bf5b27
commit e8d4fb16b1
9 changed files with 230 additions and 34 deletions

View File

@@ -25,6 +25,11 @@ val fib = lazySequence(0 to 1) { i, f ->
println(fib[10])
```
### Terminal colors
```kotlin
Terminal.print("Hello, ", Terminal.STYLES.BOLD)
Terminal.println("World!", Terminal.COLORS.RED.brighter.fg, Terminal.COLORS.WHITE.bg)
```
### Unix `uniq`
```kotlin
val inp = sequenceOf("AAA", "BBB", "AAA", "AAA", "AAA", "BBB")