add cmd/ttyplay