[dev] Console madnes

 It looks like it's not easy to recognise the console cols and rows in every case. After a period of continuous tries and fails I found that even the 'specialists' are not able to find the size of the console in every case. Just now I use jline to find the terminal size. But if you login into karaf using a ssh client it's not possible at all.


As reaction I created a console factory (as it should be) to create console instances for every thread and it's possible to overwrite the current used console instance. Now in karaf it's possible to use

console set

to set a session bound console instance which will recognise the size correctly by using the session instance.

Kommentare

Beliebte Posts aus diesem Blog

Create Spring Boot Images in Jenkins/CI in K8s, Part 1

[KT2L] Jetzt auch Linux DEB installierbar

Creating a flux sync configuration referring a config map for substitution