🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #9257

Re: TTY windows (& need for text display window)

#9257
From: Peter Ilieve
Date: Wed, 23 Nov 1988 15:45
29 lines
1577 bytes
Holland@dockmaster.arpa says in part:
> Also what we really need is a simple text display window!  Not an editor
> and not a tty.

By "Not an editor" I presume he means that the TEXTSW thing is too
powerful. I wanted a text display window so I took a TEXTSW and toned it
down a bit by modifying its menu so it only had the split/destroy view and
find choices, which were still useful to me. The following code does the
trick:

void
FixMenu(view)
    Textsw view;
{
    Menu oldmenu;
    Menu newmenu;

    oldmenu = window_get(view, TEXTSW_MENU);
    newmenu = menu_create(0);
    menu_set(newmenu, MENU_INSERT, 0, menu_get(oldmenu, MENU_NTH_ITEM, 4), 0);
    menu_set(newmenu, MENU_INSERT, 1, menu_get(oldmenu, MENU_NTH_ITEM, 5), 0);
    menu_set(newmenu, MENU_INSERT, 2, menu_get(oldmenu, MENU_NTH_ITEM, 12), 0);
    window_set(view, TEXTSW_MENU, newmenu, 0);
}

This doesn't solve the problem of discarding text scrolled off the top
(this was not something I wanted) but it is a start.

	Peter Ilieve		peter@memex.co.uk
Technical Details
Message-ID: <8811151636.AA01420@doc.memex.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!rice!sun-spots-request
From: mcvax!memex.co.uk!peter@uunet.uu.net (Peter Ilieve)
Newsgroups: comp.sys.sun
Subject: Re: TTY windows (& need for text display window)
Message-ID: <8811151636.AA01420@doc.memex.co.uk>
Date: 23 Nov 88 15:45:56 GMT
Sender: usenet@rice.edu
Reply-To: Sun-Spots@Rice.edu
Organization: Rice University, Houston, Texas
Lines: 29
Approved: Sun-Spots@rice.edu
Original-Date: Tue, 15 Nov 88 16:36:13 BST
X-Sun-Spots-Digest: Volume 7, Issue 26, message 2 of 12