Thread View: news.software.nn
5 messages
5 total messages
Started by James Miller
Tue, 20 Jul 1993 23:27
Using PICO as nn's editor...
Author: James Miller
Date: Tue, 20 Jul 1993 23:27
Date: Tue, 20 Jul 1993 23:27
15 lines
1214 bytes
1214 bytes
I know this has been asked before, but I did not see it in the recently posted FAQ, so I'll ask it again. I would like to use pico as my editor for nn. I have set the variable "editor" to /usr/local/bin/pico -t but when I go to post two "syntax error" lines appear (not sure if it is nn or pico reporting these), and the cursor is not positioned correctly when pico is started. Pico does support vi-style +linenumber command line cursor positioning. Any ideas on how to make this work better, or have I already got it working as well as its going to? Thanks, James
Re: Using PICO as nn's editor...
Author: David Kramer
Date: Wed, 21 Jul 1993 01:32
Date: Wed, 21 Jul 1993 01:32
17 lines
1461 bytes
1461 bytes
jmiller@halcyon.com (James Miller) writes: >I would like to use pico as my editor for nn. I have set the variable >"editor" to /usr/local/bin/pico -t but when I go to post two "syntax >error" lines appear (not sure if it is nn or pico reporting these), and >the cursor is not positioned correctly when pico is started. Pico does >support vi-style +linenumber command line cursor positioning. >Any ideas on how to make this work better, or have I already got it >working as well as its going to? I use pico as my editor for nn without problems. The only thing that is different for me is the option "-t". In the man pages for (my version) of pico, "-t" isn't even listed as a valid option. Mine is just set to "/usr/local/bin/pico" -- no options. What does "-t" do? -David Kramer
Re: Using PICO as nn's editor...
Author: James Miller
Date: Wed, 21 Jul 1993 07:28
Date: Wed, 21 Jul 1993 07:28
24 lines
1840 bytes
1840 bytes
>I wrote: >>I would like to use pico as my editor for nn. I have set the variable >>"editor" to /usr/local/bin/pico -t but when I go to post two "syntax >>error" lines appear (not sure if it is nn or pico reporting these), and >>the cursor is not positioned correctly when pico is started. Pico does >>support vi-style +linenumber command line cursor positioning. In <davekCAHqy6.CAH@netcom.com> davek@netcom.com (David Kramer) writes: >I use pico as my editor for nn without problems. The only thing that is >different for me is the option "-t". In the man pages for (my version) of >pico, "-t" isn't even listed as a valid option. Mine is just set to >"/usr/local/bin/pico" -- no options. What does "-t" do? In Pico 1.8, (which came with PINE 3.07), the -t option means "tool", which makes pico work like an integrated editor--small changes such as when you hit ^X it automatically saves the datafile and returns you to the host program (no questions). Does the cursor end up in the proper position (Directly below the blank line after the news headers) for you? What version of pico do you use? -James >-David Kramer
Re: Using PICO as nn's editor...
Author: David Kramer
Date: Wed, 21 Jul 1993 19:46
Date: Wed, 21 Jul 1993 19:46
16 lines
1428 bytes
1428 bytes
jmiller@halcyon.com (James Miller) writes: >In Pico 1.8, (which came with PINE 3.07), the -t option means "tool", >which makes pico work like an integrated editor--small changes such as >when you hit ^X it automatically saves the datafile and returns you to the >host program (no questions). >Does the cursor end up in the proper position (Directly below the blank >line after the news headers) for you? What version of pico do you use? I'm using the version of Pico that came with Pine 3.0... It doesn't have the -t option, and no, it doesn't place the cursor after the header. So, I guess I really can't say what the problem might be (the syntax error). Sorry! -David Kramer
Re: Using PICO as nn's editor...
Author: Lachlan Cranswick
Date: Thu, 22 Jul 1993 03:03
Date: Thu, 22 Jul 1993 03:03
60 lines
3390 bytes
3390 bytes
jmiller@halcyon.com (James Miller) writes: >>I wrote: >>>I would like to use pico as my editor for nn. I have set the variable >>>"editor" to /usr/local/bin/pico -t but when I go to post two "syntax >>>error" lines appear (not sure if it is nn or pico reporting these), and >>>the cursor is not positioned correctly when pico is started. Pico does >>>support vi-style +linenumber command line cursor positioning. >In <davekCAHqy6.CAH@netcom.com> davek@netcom.com (David Kramer) writes: >>I use pico as my editor for nn without problems. The only thing that is >>different for me is the option "-t". In the man pages for (my version) of >>pico, "-t" isn't even listed as a valid option. Mine is just set to >>"/usr/local/bin/pico" -- no options. What does "-t" do? >In Pico 1.8, (which came with PINE 3.07), the -t option means "tool", >which makes pico work like an integrated editor--small changes such as >when you hit ^X it automatically saves the datafile and returns you to the >host program (no questions). >Does the cursor end up in the proper position (Directly below the blank >line after the news headers) for you? What version of pico do you use? The command to get pico working as your default editor is in the .cshrc file - put the line (case sensitive) setenv EDITOR /usr/local/bin/pico Pico 1.7 uses the -t option as well (this is the version we have), but you have to be wary of it because the setenv works for all pico sessions. Most users here don't enable the -t option for nn as [ctrl] X now always saves on exit - even when editing files from the command line. To use the -t option always, put the following in .cshrc file:- setenv EDITOR '/usr/local/bin/pico -t' (red roses to Barbara in the USA for originally helping me with this problem ages ago) What are the differences between pico 1.7 and pico 1.8 - is it worth the bother of ftping and recompiling? We use nn version 6.4.16 Kim F. Storm, 1991. Is there anyway to restrict the -t option to only work with nn. The man page implies the setenv EDITOR has to be set globally to apply to nn. Hope this helps? Lachlan. Disclaimer :- No flames please - I use vi - but that doesn't mean everyone else is sick in the head and has to!! -- Lachlan Cranswick - CSIRO _--_|\ lachlan@dmp.CSIRO.AU "Blessed Division of Mineral Products / \ tel +61 3 647 0367 are the PO Box 124, Port Melbourne \_.--._/ fax +61 3 646 3223 Cheesemakers" 3207 AUSTRALIA v "Eat Judge Boot!" - J. Dredd.
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