refactoring idobata_server
add error check 'wait_sock_readable()'
fix #8
print_~ -> printf_~
fix to use ncurses
small fix
refactoring