🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #9473

Re: trn macros: inconsistent?

#9473
From: Wayne Davison
Date: Thu, 09 Jun 1994 23:46
25 lines
1602 bytes
According to Duane Fowler <duanef@Newbridge.COM>:
> [After defining macro] &&? h 
> [...] ? will still do "help" UNLESS h is available as a selection,
> whereupon ? selects h!

No, with that macro whenever you type '?' you really pressed 'h', so
in the selector it always attempts to select item 'h' and if that item
doesn't exist trn beeps at you.

However, the selector already has '?' as the non-lowercase letter to
use to start help (the selector has most commands that are mapped to
lower case letters also mapped to other characters for this exact
purpose).  All you need to do is to get all the other areas in trn
to translate '?' to 'h' by using this macro:

   ?  %(%m=t??:h)

> I guess the implication is that the "higher calling" for a character
> is to be a SELECTCHAR

Yes, if you put it in SELECTCHARS that's what the letter does, period.
Thus, there's no inconsistency.
-- 
Wayne Davison
davison@borland.com
Technical Details
Message-ID: <Cr5M1t.79E@borland.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!hookup!nntp.cs.ubc.ca!cyber2.cyberstore.ca!math.ohio-state.edu!usc!elroy.jpl.nasa.gov!decwrl!borland.com!davison
References: <Cr513M.5KF@Newbridge.COM>

Show Full Headers
Complete Article Headers
Message-ID: <Cr5M1t.79E@borland.com>
Subject: Re: trn macros: inconsistent?
Date: Thu, 9 Jun 1994 23:46:40 GMT
From: davison@borland.com (Wayne Davison)
References: <Cr513M.5KF@Newbridge.COM>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!hookup!nntp.cs.ubc.ca!cyber2.cyberstore.ca!math.ohio-state.edu!usc!elroy.jpl.nasa.gov!decwrl!borland.com!davison
Newsgroups: news.software.readers
Organization: Borland International
Lines: 25