add tty
add signals
Merge branch 'master' of github.com:limingth/APLE