Log Message: Remove the endwin() and refresh() pair which caused the screen to flash whenever a command was run. Maybe a screen redraw is required if the command is able to corrupt the screen - but the refresh was happening much too early to fix that, and it would be better to collect/discard the commands output anyway. thank you!