Is there a standard function for user-friendly representation of non-alphanum input characters?
Say char(27) would be "ESC" or "Escape" or something alike.
I am asking this because that would be an easy way for me to display help on controls in command line.
EDIT:
As @ypnos pointed out: the question is how to avoid defining my own key names.
I wonder if there was a function in boost or std or some basic lib which I missed?
For now, Ascii-only could work for me but I am looking for a "standard" solution because I don't want to reimplement once dealing with Unicode input -- say characters with accents not in Ascii -- later on.
My program code will be sent over to Linux and Windows and I also don't want that the names would be faulty at places.