I need a function, like the old "getch()", in Objective C or Swift to read one single character from the keyboard without echo and without the nedd to press return after the character has been typed to make the function continue.
This is, I know, only interesting when programming command line tools, perhaps to make a selection or write an editor.
Here is the function for use with Objective-C and Swift, written in C:
Here is the function for use with Swift, written in Swift: