bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: some console code checked in


From: Niels Möller
Subject: Re: some console code checked in
Date: 19 Mar 2002 13:47:13 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> writes:

> Do I add or remove confusion if I say that the console server should support
> both models?  The generic part of the console server would then always pass
> through without interpretation, the device specific part can either pass it
> on further to the actual hardware, or interprets it and breaks it down into
> hardware primitives like scrolling/filling etc.

That's the way it should be.

> > > [ console abstraction ]
> > > [ virtual console 1 ] [ virtual console 2 ] ...
> > > [ display driver ]
> > > [ generic display driver escape sequence handling ]
> > > [ display driver's support functions like scrolling ]
>
> Do I make sense?

I think so. My mental picture is more like

      [virtual console n]
         /         \   ----------------------- character streams
  [tty driver]  [escape code interpretation]
                     | ----------------------- screen operations
                [screen driver]

The only difference, except for terminology, is that the screen driver
is an independent piece of code that need not be aware about what goes
on above it, and which uses a different interface than tty-style
drivers.

[ And if anyone can figure out a reasonable interface for doing that,
  it would be nice if an applications could bypass both the terminfo
  and the escape code interpretation, speaking directly to the screen
  driver. Say a hacked curses library that implements scrolling by
  sending an rpc to the console server, which invokes the
  corresponding operation (if available) in the screen driver. ]


/Niels



reply via email to

[Prev in Thread] Current Thread [Next in Thread]