* Missing header an own goal - now im cooked not raw, left sitting alone looking playing with my ttys
@ 2005-10-04 1:23 Jonathan Andrews
2005-10-04 1:31 ` Philippe Troin
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Andrews @ 2005-10-04 1:23 UTC (permalink / raw)
To: lkml
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Missing header an own goal - now im cooked not raw, left sitting alone looking playing with my ttys
2005-10-04 1:23 Missing header an own goal - now im cooked not raw, left sitting alone looking playing with my ttys Jonathan Andrews
@ 2005-10-04 1:31 ` Philippe Troin
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Troin @ 2005-10-04 1:31 UTC (permalink / raw)
To: Jonathan Andrews; +Cc: lkml
Jonathan Andrews <jon@jonshouse.co.uk> writes:
> 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)
man tcsetattr
Phil.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-04 1:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-04 1:23 Missing header an own goal - now im cooked not raw, left sitting alone looking playing with my ttys Jonathan Andrews
2005-10-04 1:31 ` Philippe Troin
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.