Article View: news.software.nn
Article #5090Re: Cursor positioning using nn with U. of Washington's pico editor?
From: David Halliwell
Date: Mon, 22 Nov 1993 23:17
Date: Mon, 22 Nov 1993 23:17
59 lines
2644 bytes
2644 bytes
kimc@w8hd.org (Kim Culhan) writes:
>How can the entry in aux.sh be configured to teach nn to position the
>cursor when using the University of Washington's pico text editor?
>Since the cursor positioning info for pico is not included in the
>normal nn aux script, that info must be included in a file aux.sh.
>Any info on this is greatly appreciated.
I have been using nn 9.4.16 with pico from release 3.07 of pine. I set
up aux.sh as follows to get nn to use pico with cursor positioning. It
doesn't always seem to get the position exactly correct, but it is an
improvment. The -t option sets pico to automatically save the file on
exit: otherwise it will give a "Modified buffer - save before leaving?"
message. Anyone can use pico by setting their environment string EDITOR to
"pico". Hope it helps.
Oh: I think you have to recompile the script to impliment it. I can't
remeber exactly what I did, but I think I was in the process of rebuilding
nn when I made the change. Not sure how to make just this modification.
------- editor section of aux.sh ---------
# call editor to enter at line $ED_LINE of work file
case `basename "${EDITOR-vi}"` in
vi|emacs|emacsclient )
# Berkeley vi display editor
# GNU emacs disply editor
${EDITOR-vi} +${ED_LINE} $WORK
;;
ded )
# QMC ded display editor
$EDITOR -l${ED_LINE} $WORK
;;
uemacs )
# micro emacs
$EDITOR -g${ED_LINE} $WORK
;;
pico )
#pico version 1.8 from pine 3.07 distribution
#added by D. Halliwell, 3/9/93
$EDITOR +${ED_LINE} -t $WORK
;;
* )
# Unknown editor
$EDITOR $WORK
;;
esac
--
Dave Halliwell
Department of Geography
University of Alberta
Edmonton, Alberta
Technical Details
Message-ID:
<dhalliwe.754010257@shadow>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!xlink.net!sol.ctr.columbia.edu!destroyer!nntp.cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!shadow.geog.ualberta.ca!dhalliweReferences:
<2cm520$p02@w8hd.w8hd.org>Show Full Headers
Complete Article Headers
Message-ID: <dhalliwe.754010257@shadow> Subject: Re: Cursor positioning using nn with U. of Washington's pico editor? Date: Mon, 22 Nov 1993 23:17:37 GMT From: dhalliwe@shadow.geog.ualberta.ca (David Halliwell) References: <2cm520$p02@w8hd.w8hd.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!xlink.net!sol.ctr.columbia.edu!destroyer!nntp.cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!shadow.geog.ualberta.ca!dhalliwe Newsgroups: news.software.nn Keywords: pico cursor aux.sh Sender: news@kakwa.ucs.ualberta.ca Nntp-Posting-Host: shadow.geog.ualberta.ca Organization: University Of Alberta, Edmonton Canada Lines: 59