returns 'char *' to do this. Codes returned for the various keys match what 'rcons' termcap entry expects.