Client: implement vty input processing