Etude of Terminal Emulater by Java