0

Clear Screen with Kotlin

Any one know if there's a keyword to clear the screen from all things u've already done... For example we use "System("CLS");" in C++ to do that...

10th Mar 2021, 5:19 PM
Marco Cárdenas
Marco Cárdenas - avatar
1 ответ
0
terminal screen could only be cleared with escape sequences (invisible commands in strings output), if your terminal support them... I guess that 'System("CLS");' should do something like this under the hood, but probably not cross-platform (terminal) compatible ^^ by the way, I think that escape sequences are handle same in java and kotlin: http://forum.codecall.net/topic/59142-how-to-clear-the-console-screen-with-ansi-any-language/
10th Mar 2021, 5:35 PM
visph
visph - avatar