In C you need an external library to do this. The default language does not define a way to do this. An external library that displays this feature is ncurses; there must be others, but I don’t know them.
Example taken from NCURSES Programming HOWTO and with some changes to my taste:
#include <ncurses.h>
int main(void) {    
    initscr();                /* Start curses mode              */
    printw("Hello, World!");  /* Print Hello. World!            */
    refresh();                /* Print it on to the real screen */
    getch();                  /* Wait for user input            */
    endwin();                 /* End curses mode                */
    return 0;
}
							
							
						 
Pascal’s Readkey equivalent is Clipper’s Inkey, not Lastkey. Which of the two behaviors do you want?
– Bacco