Nicholas Shaff | 4 Nov 2010 15:12
Gravatar

Re: Re: Nano scrolling only refreshes half of the window

Thanks for the replies and sorry about my delayed response. I seem to have it working well now. See below:

On Fri, Oct 29, 2010 at 11:19 AM, Chris Allegretta <chrisa <at> asty.org> wrote:
On 10/29/10, Eitan Adler <lists <at> eitanadler.com> wrote:
> On Thu, Oct 28, 2010 at 3:54 PM, Nick Shaff <nick <at> shadedreammedia.com>
> wrote:
>> Figures... literally seconds after I throw up my hands and give up I
>> realized it's because I changed my terminal to xterm instead of the
>> default xterm-color. The reason I did this is a server I SSH into commonly
>> for work has a version of nano installed that complains and wont run with
>> xterm-color. Any suggestions as to a work around for this that might let
>> them both play nice (preferably with my local terminal still set to
>> xterm-color)?

Thanks for the report Nick.  So, you're saying that on OS X 10.6 with
nano 2.2.5 when you scroll the screen up or down using the arrow key
the screen does not fully refresh?  Can you please confirm the new
version of nano that you used? I assume this is with the defaut
terminal app.

The terminal in OS X defaults to xterm-color and it appears the nano included is compiled in such a way that doesn't work properly if the TERM is set to xterm (produces the scrolling weirdness I've mentioned). I compiled the latest version of nano on the machine (2.2.5, the default was 2.0.6) and that behaved in the same way. The server Im working with is a Solaris box (not sure of the version) and says it doesn't recognize xterm-color when I try to start nano, so this is why I had my OS X Terminal app set to xterm which caused the whole problem on my machine.
 

> Can you set TERMINAL in the remote shell's init files?
>
> alternatively can you do something like:
> alias nano="TERMINAL=xterm nano"

I think this should be "TERM=xterm nano"

Adding a setenv TERM xterm to my .cshrc file on the server fixed the problems I was having. I appreciate the help!
_______________________________________________
Help-nano mailing list
Help-nano <at> gnu.org
http://lists.gnu.org/mailman/listinfo/help-nano
chrisa | 11 Nov 2010 09:45

nano questions

l.s.
as a professional user of nano I have a few questions:

1. how can I put the editor in overstrike mode?
2. using the suspend function in nano with the Linux bg command does not seem to work in my Linux?
3. how do I perform a matching bracket search?

your help is much appreciated

Gijs Haarlem

_______________________________________________
Help-nano mailing list
Help-nano <at> gnu.org
http://lists.gnu.org/mailman/listinfo/help-nano
Chris Allegretta | 15 Nov 2010 18:56

Re: Nano on Windows, where should nanorc go?

Hi Jeremy,

After finally getting my win32 system in working state again, I have
uploaded the 2.2.5 version of nano for win32, and have updated the FAQ
to talk about the rc file for those systems:

http://www.nano-editor.org/dist/v2.2/faq.html#3.9.1

Can you take a look and provide any feedback you might have on it (as
well as whether it even works :-)

On 11/8/10, Jeremy Cowgar <jeremy <at> cowgar.com> wrote:
> I am trying to use nano on Windows but I've tried every place I could
> think of to put my .nanorc and cannot seem to find a place that nano
> reads it.
>
> Any thoughts?
>
> Jeremy Cowgar
>
Jeremy Cowgar | 15 Nov 2010 19:22
Gravatar

Re: Nano on Windows, where should nanorc go?

On 11/15/2010 12:56 PM, Chris Allegretta wrote:
> Hi Jeremy,
> 
> After finally getting my win32 system in working state again, I have
> uploaded the 2.2.5 version of nano for win32, and have updated the FAQ
> to talk about the rc file for those systems:
> 
> http://www.nano-editor.org/dist/v2.2/faq.html#3.9.1
> 
> Can you take a look and provide any feedback you might have on it (as
> well as whether it even works :-)
> 

Oh, BTW... for syntax highlighting I simply grabbed the 2.2.5.tar.gz
file, copied the doc/syntax to my install directory of Nano
(C:\Development\Tools\nano) and then added to my nano.rc file:

include "C:/Development/Tools/nano/syntax/c.nanorc"
include "C:/Development/Tools/nano/syntax/nanorc.nanorc"
#.... etc ...

I only added the ones I was interested in.

Thanks!

Jeremy
Jeremy Cowgar | 15 Nov 2010 19:17
Gravatar

Re: Nano on Windows, where should nanorc go?

On 11/15/2010 12:56 PM, Chris Allegretta wrote:
> Hi Jeremy,
> 
> After finally getting my win32 system in working state again, I have
> uploaded the 2.2.5 version of nano for win32, and have updated the FAQ
> to talk about the rc file for those systems:
> 
> http://www.nano-editor.org/dist/v2.2/faq.html#3.9.1
> 
> Can you take a look and provide any feedback you might have on it (as
> well as whether it even works :-)

Great! It works!

However, if I can, may I suggest instead of requiring the user to set
the HOME environment variable, looking to see if HOMEDRIVE and HOMEPATH
exists? That should be set on everyone's windows box. For example, mine is:

HOMEDRIVE=C:
HOMEPATH=\Users\Jeremy

This, however, might introduce problems with spaces in the file name if
not properly handled. Some could have HOMEPATH as "\Documents and
Settings\Jeremy"...

I tried to get nano 2.5 to compile on my Windows box but failed with
dependency problems. Not knowing CygWin very well, I gave up, but I was
going to submit a patch with the above suggestion.

Jeremy

Gmane