[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: term & user space console
From: |
Marcus Brinkmann |
Subject: |
Re: term & user space console |
Date: |
Sun, 3 Feb 2002 02:17:45 +0100 |
User-agent: |
Mutt/1.3.27i |
On Sat, Feb 02, 2002 at 07:42:23PM -0500, Roland McGrath wrote:
> > And do I update the termstate to match reality, eg do I go back and do a
> > tiocgeta and (re)set the speeds?
>
> Yes, I think you should do that. Particular hardware or particular drivers
> will support a certain subset of possible speeds, and it's reasonable for
> them to either round your request to the closest one they support or ignore
> a change they can't support. Then you want to report back to the user what
> the underyling device is really doing.
I am still unsure (sorry) about one thing. We reset the speed, but what
about the flags c_cflag. If we just pass them down, and they are not
honored, what do we do? For example, the character size mask. In
particular, for those bits in the flag in general, should or should we not
reset them to what we get back from the underlying file?
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann GNU http://www.gnu.org marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de
Re: term & user space console, Thomas Bushnell, BSG, 2002/02/04