fix readme. improve tput._print. refactor test/tput.js.