By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,796 Members | 1,205 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,796 IT Pros & Developers. It's quick & easy.

detect Ctrl+C with getc ?

P: n/a
PL
I read password from the console with _getcch to display no echo. The
problem is that I don't know how to flush extended char and ignore them,
like control+A, ...
In fact, I want to detect the Ctrl+C sequence in order to stop the input.
How can I do that ?
thanks
Nov 14 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"PL" <no****@nomail.com> writes:
I read password from the console with _getcch to display no echo.
`_getcch' is not a standard C function.
The problem is that I don't know how to flush extended char and ignore
them, like control+A, ... In fact, I want to detect the Ctrl+C
sequence in order to stop the input. How can I do that ?


You cannot do that in standard C, which is the topic of this newsgroup.
Please ask in a group dedicated to your operating system.

Martin

--
,--. Martin Dickopp, Dresden, Germany ,= ,-_-. =.
/ ,- ) http://www.zero-based.org/ ((_/)o o(\_))
\ `-' `-'(. .)`-'
`-. Debian, a variant of the GNU operating system. \_/
Nov 14 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.