From: Jonathan Andrews <jon@jonshouse.co.uk>
To: lkml <linux-kernel@vger.kernel.org>
Subject: Missing header an own goal - now im cooked not raw, left sitting alone looking playing with my ttys
Date: Tue, 04 Oct 2005 02:23:04 +0100 [thread overview]
Message-ID: <1128388984.5118.55.camel@jonspc> (raw)
http://krtkg1.rug.ac.be/~colle/C/get_char_without_enter.html
Forgive my ignorance (on many levels), but please kind people - what is
the approved way to put a TTY into raw without using curses.
system("stty raw"); is not possible, as the code has to run embedded and
that distro lacks stty and some libs it likes.
I used to use code like the example above, but now structures like
TIOCGETP seem to be missing from the kernel headers?
So please kind people - what is the policy - show me the one true way,
the simplest way .......
Before anyone complains, it IS a kernel question - the kernel used to
have headers that worked with the above code - now it don't (unless im
wrong ..its possible).
The code is pre existing non curses application running on an embedded
machine with 2.4.27 kernel, im trying to build it on Fedora core 3
(2.6.12-1.1378_FC3)
Many thanks,
Jon
next reply other threads:[~2005-10-04 1:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-04 1:23 Jonathan Andrews [this message]
2005-10-04 1:31 ` Missing header an own goal - now im cooked not raw, left sitting alone looking playing with my ttys Philippe Troin
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=1128388984.5118.55.camel@jonspc \
--to=jon@jonshouse.co.uk \
--cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.