switch terminal between characters