Modification of the interactive mode 

This small modification avoids the flodding of the terminal by the refresh of the display. (based on ncurses)