remove terminal test code; port to latest client
remove cursor loc workaround and debugging