printstate func
ncurses fluff