kbdlib

CLI VT100 text terminal keyboard input library. Distinguishes solitary ESC key. Decodes UTF-8 Unicode sequences (if getkey_utf8).

again:
	c = getkey();
	if(c == kMORE) {
		sleep(1); // or less
		goto again;
	}

Download

Source: key-0.17.tar.gz (, Unicode support)