LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-25-2016, 05:21 PM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Rep: Reputation: Disabled
nano keeps leaving green spaces


I have noticed this only with Slackware, whenever I use nano, many times I hit space bar and a green box occupies the space and actually messes up .sh files whenever those green boxes are there. Another problem that occurs after the green box is that instead of keeping a continuous line the line will get jumped to the second line. Why does this happen? This is occurring when I SSH mostly either from an arch linux or ubuntu client, it doesn't matter. No other distro has had these weird green text boxes showing up or spacing messed up with nano. is there a setting for me to change somewhere?
 
Old 06-25-2016, 05:25 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
/etc/nanorc should be where to look.
 
Old 06-25-2016, 05:58 PM   #3
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 15.0 running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
http://stackoverflow.com/questions/2...paces-and-tabs
 
Old 08-06-2016, 05:58 PM   #4
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Sorry but that does not help. I tried looking for trailing whitespace in /etc/nanorc but I did not find anything.
 
Old 08-06-2016, 09:52 PM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
The green boxes at the end of lines show the presence of trailing space characters. They are a consequence of syntax highlighting in nano. In /etc/nanorc, there is
Code:
## To include all existing syntax definitions, you can do:
include "/usr/share/nano/*.nanorc"
If you run the command
Code:
grep -A1 '# Trailing whitespace' /usr/share/nano/*.nanorc
you will see the entries.
The trailing space characters are generally inconsequential, and do not indicate corruption of your file.

The second issue you have is that nano is automatically breaking long lines.

From the nano internal help
Quote:
M-Y Color syntax highlighting enable/disable
...
M-L Hard wrapping of overlong lines enable/disable
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change light green text color to dark green of xterm ? cola Slackware 13 01-03-2010 09:07 AM
LXer: 5 Ways to Save Green by going Green LXer Syndicated Linux News 0 05-15-2009 11:31 PM
Spaces and escaped spaces pslacerda Linux - Newbie 13 12-20-2008 09:03 AM
LXer: The Green Penguin: Going Green With Google LXer Syndicated Linux News 0 10-08-2008 04:00 PM
Leaving X... arioch Linux - General 2 10-04-2003 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration