Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!mordor!lll-tis!ptsfa!ihnp4!inuxc!iuvax!pur-ee!newton.physics.purdue.edu!pur-phy!mrstve!rjk From: rjk@mrstve.UUCP Newsgroups: comp.unix.questions Subject: Re: Multiscreen on Unix Message-ID: <699@mrstve.UUCP> Date: Thu, 18-Jun-87 19:12:39 EDT Article-I.D.: mrstve.699 Posted: Thu Jun 18 19:12:39 1987 Date-Received: Sat, 20-Jun-87 07:06:51 EDT References: <910@minnow.UUCP> <5942@brl-smoke.ARPA> <103@rb442.UUCP> <696@mrstve.UUCP> <20837@sun.uucp> Reply-To: rjk@mrstve.UUCP (Richard Kuhns) Organization: Mr sTVe's, Lafayette IN Lines: 36 In article <20837@sun.uucp> guy%gorodish@Sun.COM (Guy Harris) writes: (earlier, I wrote) >> Has anyone done anything like this with STREAMS-oriented tty drivers? >> It seems to me that windows/multiple screens would be relatively >> easy to implement by just PUSHing an appropriate module onto the >> stream that controlled your physical terminal that kept track of >> what was on your (physical) screen at all times, similar to curses. > >"Relatively easy"? "Similar to curses"? "curses" is a pretty big >library, and even something just handling this would be pretty big. >It would either have to implement a virtual terminal, and support >*lots* of different kinds of physical terminals, or would have to >keep track of the screen image by understanding how the physical >terminal works, and would still have to support lots of different >kinds of physical terminals. [...] > Guy Harris > {ihnp4, decvax, seismo, decwrl, ...}!sun!guy > guy@sun.com I didn't mean to emulate the entire curses library -- I just want to keep track of what is on 1 or more virtual screens (via an array/structure indicating size/location/etc). On receipt of (say) a certain escape sequence, the appropriate module of the terminal driver would redraw the physical screen so it looked like the requested virtual screen. The terminal driver shouldn't have to care about the *type* of the terminal at all -- it just passes whatever terminal control sequences it receives right on thru (thru to the structure (a queue, maybe), anyhow, which would later, when requested, just dump to the terminal). ...so I don't always explain myself very well... ...I knew what I meant... -- !pur-ee!pur-phy!mrstve!rjk Rich Kuhns {ihnp4, decvax, etc...} !itivax!mrstve!rjk