Peter P.
- 23
- 0
im looking for functions that do not require the user to press enter. such as, they press "a" and the program continues, instead of something like "a[enter]" when using scanf.
The discussion revolves around obtaining user input in C programming without requiring the Enter key to be pressed. Participants explore different libraries and functions that can facilitate this behavior, focusing on both standard and non-standard solutions.
Participants do not reach a consensus on the best approach, as there are competing views regarding the use of conio.h versus Curses, and the discussion remains unresolved on which library is preferable.
Limitations include the dependency on operating system specifics and the potential issues with library initialization and termination, particularly with Curses.
If you only plan to run those programs in windows dos console mode (or an actual copy of MSDOS, either dual boot or virtual pc), then conio is fine.Peter P. said:Also, i was looking through the non-standard libraries that the compiler i use has, and noticed conio.h, i was wondering whether it would be better to just stick with conio or use curses?