Input numbers without using Enter [c] -


how input number of digits without using enter can enter:

scanf("%4d",&num); 

so how can without press enter?

to avoid need hit enter need disable icanon mode using ioctl system call (or stty command - assuming using linux). want use getchar instead of scanf , own input processing. difficult.

you can maybe @ post:

how avoid press enter getchar()


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -