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

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -