🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #119770

slang pcre module available (was: Re: [slrn] Importing pgp keys)

#119770
From: da... John E. Davis
Date: Wed, 05 Feb 2003 06:51
42 lines
2414 bytes
On Tue, 4 Feb 2003 21:21:11 +0000 (UTC), Thomas Schultz <tst...@gmx.de>
wrote:
>If you find the time, please do so. Thank you :-)

You can find the pcre module in

   ftp://space.mit.edu/pub/davis/misc/modules-1.4.8.tar.gz

You should untar this into the top of the slang-1.4.8 source code tree
so that the files (listed below) will replace those in the
slang-1.4.8/modules directory.  Here are the contents of the tar file:

    modules/
    modules/Makefile.in
    modules/README
    modules/pcre-module.c
    modules/grep
    modules/newt-module.c
    modules/newt.sl
    modules/smg-module.c
    modules/smg.sl
    modules/termios-module.c
    modules/select-module.c
    modules/fcntl-module.c
    modules/varray-module.c
    modules/varray.sl

The pcre-specific ones are "pcre-module.c" and "grep". The latter is a
script that illustrates how the module may be used to implement a
simple highlighting grep program.

The documentation for the module is in the source code and may be
extracted using the sl2tm and tm2txt programs distributed with slang
in the doc/tm/tools directory:

     cat pcre-module.c | sl2tm | tm2txt > pcre-module.doc

Let me know if the module has any shortcomings.

Thanks,
--John
Technical Details
Message-ID: <slrnb41d3f.9qo.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.utk.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail
References: <slrnb3nfim.88m.bilbono@bilbo.balings> <slrnb3okmo.33s.zefram@wolverine.lohacker.net> <slrnb3pooo.mm.bilbono@bilbo.balings> <slrnb3q3ga.4ij.zefram@wolverine.lohacker.net> <slrnb3r01j.tdc.davis@aluche.mit.edu> <slrnb40bm7.65l.tststs@moonlight.tststs.ddns.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnb41d3f.9qo.davis@aluche.mit.edu>
Subject: slang pcre module available (was: Re: [slrn] Importing pgp keys)
Date: Wed, 05 Feb 2003 06:51:26 +0000
From: da...@space.mit.edu (John E. Davis)
References: <slrnb3nfim.88m.bilbono@bilbo.balings> <slrnb3okmo.33s.zefram@wolverine.lohacker.net> <slrnb3pooo.mm.bilbono@bilbo.balings> <slrnb3q3ga.4ij.zefram@wolverine.lohacker.net> <slrnb3r01j.tdc.davis@aluche.mit.edu> <slrnb40bm7.65l.tststs@moonlight.tststs.ddns.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.utk.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail
Newsgroups: news.software.readers,alt.lang.s-lang
Organization: Center for Space Research
Reply-To: da...@space.mit.edu
Followup-To: alt.lang.s-lang
User-Agent: slrn/0.9.6.4 (Linux)
Lines: 41
NNTP-Posting-Host: ALUCHE.MIT.EDU
X-Trace: 1044427886 senator-bedfellow.mit.edu 3926 18.75.2.45