I want to create a CLI that takes input commands like bash, but it's displaying content on the rest of the terminal so it must not roll all the lines up when enter is pressed. It should just erase the command line instead.
I'm trying JLine3. The enterRawMode
stops new lines but also stops command buffering, editing, etc.
Tried LineReader
on top of "raw mode" but it brings new lines again.
Tried playing with stty flags but can't find one to stop new lines specifically.