From: Siddu <siddu.sjce@gmail.com>
To: linux-c-programming@vger.kernel.org
Subject: getch() in linux
Date: Sat, 24 Oct 2009 15:04:30 +0530 [thread overview]
Message-ID: <9b0a5b990910240234k35e91ba8kf1fd0917bf68d21d@mail.gmail.com> (raw)
In-Reply-To: <9b0a5b990910240207x766817c5t45b87c84349873e9@mail.gmail.com>
Hi all,
Please help me understand whats the use of getch() in linux
the man page says this ! but couldnt comprehend much out of it
The getch, wgetch, mvgetch and mvwgetch, routines read a character
from the window. In no-delay mode, if no input is waiting,
the value ERR is returned. In delay mode, the program waits until
the system passes text through to the program. Depending
on the setting of cbreak, this is after one character (cbreak mode),
or after the first newline (nocbreak mode). In half-de‐
lay mode, the program waits until a character is typed or the
specified timeout has been reached.
what is delay mode they are talking about?
and can some one give me a simple example for it ?
do i ave to know abt ncurses to understand it ?
--
Regards,
~Sid~
I have never met a man so ignorant that i couldn't learn something from him
--
Regards,
~Sid~
I have never met a man so ignorant that i couldn't learn something from him
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next parent reply other threads:[~2009-10-24 9:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <9b0a5b990910240207x766817c5t45b87c84349873e9@mail.gmail.com>
2009-10-24 9:34 ` Siddu [this message]
2009-10-24 12:19 ` getch() in linux vinit dhatrak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9b0a5b990910240234k35e91ba8kf1fd0917bf68d21d@mail.gmail.com \
--to=siddu.sjce@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).