get_terminal_info chesel API function