This release introduces the very powerful grid widget into Kotter.
In other words, you can create tables in Kotter now. 馃帀
section {
// A grid with two columns, each with space for 6 characters
grid(Cols(6, 6), characters = GridCharacters.CURVED) {
cell { textLine("Cell1") }
cell { textLine("Cell2") }
cell { textLine("Cell3") }
cell { textLine("Cell4") }
// Jump over cell row=2,col=0
cell(row = 2, col = 1) { textLine("Cell6") }
}
}.run()
Be sure to review the Grid section in the README as there are a bunch of other features discussed in there, such as fit- and star-sized columns, row and column spanning cells, and more.
Release notes
- New grid widget(!!!)
- Fixed a bug where a
session
wouldn't correctly shut down its key input processing when finished.- This would result in a first session unexpectedly interfering with a second session if one was started later before exiting the application.
- If you check the
width
value when using the virtual terminal, it now returns the width that the terminal was constructed with, notInt.MAX_VALUE
.
Full Changelog: v1.1.1...v1.1.2
Thanks!
HUGE thanks to @grnt426 for their support around grids. They initiated progress on the feature and provided a ton of real-world testing using an impressive project they are working on. I mean, just look at this: