🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
5 messages
5 total messages Started by Ray Davis Fri, 03 May 1991 14:53
YAER: flexible menu and header formats
#1628
Author: Ray Davis
Date: Fri, 03 May 1991 14:53
91 lines
4398 bytes
Here's an enhancement that I doubt would be too difficult (well - maybe
a bit B-)), but would greatly enhance the flexibility of nn.  I've heard
from at least one other person in netland who agrees with this idea.

Rather than have a fixed number of menu layouts, why not have various
things that can be displayed and let each user decide what and where
to display it.  It could be a kind of modified printf format.  Given
the following definitions:

    %X	- article select letter
    %M	- seen/unseen/leave/etc mark
    %N  - name
    %L	- lines
    %S	- subject

We can then set them how we want to see them using a 'set menu-format'
(or something) command.  The the default menu line would look like:

    set menu-format "%X%M%3N%20L%24S"

Or something like that, where the numbers represent starting columns.
Maybe a better format could be represented, or even a real printf
format with a list of variables and sizes (name, name_size, subject, etc).

Other definitions could be defined:

    %D	- date posted
    %L	- login
    %E	- number of equal subjects (consolidated menus)
    %C	- size of article in chars

And of course there would have to be a sub-format for things like
date and login.  The date-formats could be like the date+ command
(similar to SystemV date):

    %S   seconds.
    %M   minutes.
    %H   hours.
    %T   time as HH:MM:SS.
    %d   day number within the month (01-31).
    %m   month number (01-12).
    %h   month name (3 character).
    %y   year number - 1900.
    %w   weekday number (0 is Sunday).
    %a   weekday name (3 character).
    %D   date as mm/dd/yy.
    %j   day number within the year (1-365).
    %Z   number of seconds since 00:00:00 GMT Jan 1, 1970.

And login-format might have:

    %L	- login id
    %H	- host

So, I might set these things something like this:

    set menu-format "%X%M%D%L%S%E"
    set date-format "%?h %d"	    # '?' means show once per page
    set login-format "%L@%.2H"	    # '.2' means only last 2 parts domain

And get menu lines something like:

a May 03 rdavis@convex.com       This is a subject line                       3
b.    25 youth@sonic.ny          Yet another subject line
c        foobar@mumble.de        Re: phoo                                    13
d Jun 12 pporizkova@feastable.ed YAER: flexible menu and header formats      69

Or to get a 'notes' style menu:

    set menu-format "%D%10X%M%14S%52E%55L"
    set date-format "%?y/%?m/%?d"   # mm/dd/yy or mm/dd or dd
    set login-format "%L@%H"

Which would look something like:

3/13/91  a   minimal sendmail                       3 nklein@convex1.convex.com
         b=  Any Checkpoint/Restart bugs            3 nklein@convex1.convex.com
         c=  Found the lost 4mb of root             1 freel@middlec.UUCP
         d.  Any Checkpoint/Restart Problems?       4 nklein@c1east.convex.com
3/14     e   Job limits under CXbatch               4 hardy@eurodem.convex.com
3/15     f.  GIP man page                             tchrist@pixel.UUCP
3/19     g.  9.0 nfs bugs?                          4 rdavis
         h   ranlib bug / patch                     2 suplick@mikey.UUCP

In addition to menu lines, a similar method could be used to define
the header line(s) and footer line in read mode.  You could also
set up different formats depending on screen width, so people with
workstations, x-terminals or 132 column displays could go crazy.

OK - it could start out much simpler that this and grow.
Does anyone else like this idea?
Re: YAER: flexible menu and header formats
#1645
Author: Bill Irwin
Date: Mon, 06 May 1991 07:34
13 lines
1222 bytes
rdavis@convex.com (Ray Davis) writes:

: OK - it could start out much simpler that this and grow.
: Does anyone else like this idea?

Fantastic!  You must be a programmer.  I wonder how many years
Kim is willing to dedicate to this.  I sure hope it is feasible
to implement in a "reasonable" amount of time.
-- 
Bill Irwin    -       The Westrheim Group     -    Vancouver, BC, Canada
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uunet!van-bc!twg!bill     (604) 431-9600 (voice) |     Your Computer  
bill@twg.bc.ca            (604) 430-4329 (fax)   |    Systems Partner
Re: YAER: flexible menu and header formats
#1642
Author: Gerben 'P' Vos
Date: Mon, 06 May 1991 11:16
16 lines
1312 bytes
rdavis@convex.com (Ray Davis) writes:

>Rather than have a fixed number of menu layouts, why not have various
>things that can be displayed and let each user decide what and where
>to display it.  It could be a kind of modified printf format.

I like it. It's also the reason why i like mush as a mail reader;
unfortunately, the administration removed it because i was the only one who
used it. But that's something else.

I only hope we're not asking too much of Kim. Debugging consolidated menus,
the newsgroup menu, the previous article functionality, and now this...

. . . . . . . . . . . . . . . . . . . . . . . . . . . G e r b e n   V o s   <><
Aconet: BIGBEN!Gerben Vos  Internet: gpvos@cs.vu.nl
R.I.P. Radio Canada International   1942-1991
Re: YAER: flexible menu and header formats
#1663
Author: Richard M. Mathews
Date: Thu, 09 May 1991 02:07
20 lines
1540 bytes
rdavis@convex.com (Ray Davis) writes:

>And of course there would have to be a sub-format for things like
>date and login.  The date-formats could be like the date+ command
>(similar to SystemV date):

>    %y   year number - 1900.

ARGHH!  You must have an old SysV.  %y only exists in newer versions of
SysV for backwards compatibility with the older versions.  You should
always use
     %Y   year as ccyy (4 digits)
If nn were to actually get this functionality, there would be no point
in ever including the 2 digit version; or least define it as year module
100, not year minus 1900.

Richard M. Mathews			Lietuva laisva = Free Lithuania
richard@locus.com			Brivu Latviju  = Free Latvia
lcc!richard@seas.ucla.edu		Eesti vabaks   = Free Estonia
..!{uunet|ucla-se|turnkey}!lcc!richard
Re: YAER: flexible menu and header formats
#1677
Author: Ray Davis
Date: Fri, 10 May 1991 14:31
28 lines
1582 bytes
richard@locus.com (Richard M. Mathews) writes:

>>    %y   year number - 1900.

>ARGHH!  You must have an old SysV.  %y only exists in newer versions of

System V no.  date+ yes.  ConvexOS is 4.[234] BSD + Posix.  Our date
command has no such %foo features.  But I have a copy of 'date+', a
public domain date command.  That's where my %y came from.

It's a nice command, especially if you work internationally:

    $ dt
    10.05.91  16:37 MET (Frankfurt)
    05/10/91  10:37 EDT (Orange)
    05/10/91  09:37 CDT (Dallas)
    05/10/91  04:37 ?ST (Honolulu)

    $ alias dt
    dt=date+ "%d.%m.%y  %H:%M MET (Frankfurt)"
       date+ -6 hours "%D  %H:%M EDT (Orange)"
       date+ -7 hours "%D  %H:%M CDT (Dallas)"
       date+ -12 hours "%D  %H:%M ?ST (Honolulu)"

Cheers,
Ray

PS: anybody know what Hawaii calls their timezone?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads