Closed M1NGS closed 3 years ago
This is caused by endwin which correctly goes to the bottom of the screen and starts the cursor on a new line by itself. I think the error isn't in bashsimplecurses but rather in the example.
thanks for your reply, i already solved the problem,because in function refresh,echo "" > $BSC_BUFFER will made a return in $BSC_BUFFER, use > $BSC_BUFFER can empty the file to 0
I have tried some emulation terminals such as xshell and putty with same result.
I used the last version of bashsimplecurses.
test.sh
!/bin/bash
import library, please check path
source /usr/lib/simple_curses.sh
source simple_curses.sh
Then, you must create a "main" function:
main () {
your code here, you can add some windows, text...
}
then, you can execute loop:
main_loop 1