ncurses user interface redone
add debug for resize
add two c_pos_dim to know a begin and end offset for each ui object
del debug
indent code