Article View: news.software.readers
Article #35236Re: [SLRN] Help w/macro please
From: Daniel Price
Date: Thu, 17 Jul 1997 00:00
Date: Thu, 17 Jul 1997 00:00
17 lines
1255 bytes
1255 bytes
On 16 Jul 1997 17:36:30 GMT, Pardoz <pardoz@io.com> wrote:
>to select an X browser instead. (Figuring out how to make it test for
>X and present an appropriate menu based on mode is beyond me, however.)
You can just use getenv("DISPLAY") to find out if the DISPLAY
environment variable was set. If so, launch your favorite GUI browser,
otherwise, lynx or whatever. In fact, looking at art.c in the slrn
source, you can see that this function just calls getenv("DISPLAY") from C
in order to decide whether to launch Slrn_NonX_Browser, or Slrn_X_Browser.
-dp
--
Daniel Price -- dp@nospam.cs.brown.edu
Technical Details
Message-ID:
<5qm549$p2l@cocoa.brown.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn5sn34c.8o.pardoz@io.com> <slrn5so9nt.1u.bjoff@bgnett.no> <slrn5spe55.26.pardoz@io.com>Show Full Headers
Complete Article Headers
Message-ID: <5qm549$p2l@cocoa.brown.edu> Subject: Re: [SLRN] Help w/macro please Date: Thu, 17 Jul 1997 00:00:00 +0000 From: dp@cs.brown.edu (Daniel Price) References: <slrn5sn34c.8o.pardoz@io.com> <slrn5so9nt.1u.bjoff@bgnett.no> <slrn5spe55.26.pardoz@io.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 257501090 Organization: Brown University Reply-To: dp@nospam.cs.brown.edu Newsgroups: news.software.readers