Questions tagged [nano]

GNU nano is an open source, curses-based text editor for Unix systems. It is a clone of [tag:pico], the proprietary Pine e-mail client editor.

Nano is a simple, small, lightweight text editor for written in . It was created in 1999 under the name TIP ("this isn't pico"). It was renamed to avoid conflit with the tip command in 2000 and officially joined the GNU project in 2001.

Nowadays, nano supports interaction through mouse, syntax highlight, -based search, customization of key bindings and (experimental) undo/redo support. More about it can be read in its homepage.

295 questions
0
votes
1 answer

nano freezes on django deploy git pull

I followed these instructions for writing a deploy script with fabric http://www.yaconiello.com/blog/deploying-django-site-fabric/ THe problem is that when it does the 'git pull origin master' through ssh it tries to open nano and ask me to save the…
Joff
  • 11,247
  • 16
  • 60
  • 103
0
votes
0 answers

Textmate now requires my password?

I'm following Kevin Skoglund's "Php using MySQL" tutorials on lynda.com. In the installation he uses sudo a lot to configure stuff and open files. All of this is on the terminal for Macintosh computers. He starts the apache server using sudo…
xoshi827
  • 1
  • 3
0
votes
0 answers

Why did Nano just mangle my code?

Using VM VirtualBox I'm running a copy of 32bit Linux which is itself running a VM for an ARM environment. This entire setup is needed to have an environment that lets me do buffer overflows for a class. Twice now, I've come back to my code in Nano…
OneManRiot
  • 941
  • 3
  • 8
  • 22
0
votes
2 answers

Nano, writing lines

In Nano, when my text hits the end of the window, it starts a new line instead of continuing on the line I'm writing in. How can I change this? Example: This is a test, writing next line This is what I want: This is a test, writing $next line
0
votes
1 answer

nano will not work in chroot folder

I run a chroot on a /var/www/ everything is OK but nano wont work I copied it's binary to /var/www/bin and libreries to /var/www/lib but when nano some file i got this error : Error opening terminal: xterm. What should I do
esxzawq
  • 65
  • 1
  • 10
0
votes
2 answers

Reading binary .SAVE files?

I was wondering how to open or read a binary file that has been saved in octave, with the extension .SAVE? I have tried opening it with MATLAB, using the 'load' function in octave, but nothing seems to be working. I'm trying to understand someone…
Siavosh Mahboubian
  • 403
  • 1
  • 3
  • 6
0
votes
2 answers

Write and save a file with nano using subprocess

how can I write/append to a file by calling nano using subprocess and get it saved automatically .For example I have a file and I want to open it and append something at the end of it so I write >>> import tempfile >>> file =…
saurabh
  • 293
  • 2
  • 7
  • 19
0
votes
1 answer

What can possibly have broken all the lowercase letters (but not caps) in my terminal?

Look at this incredible screenshot. I’m editing a commit message in Nano, within iTerm (an OS X terminal). I had just pulled changes from the master branch at git@github.com:Compass/compass.git Please note how all the capital letters display fine,…
Alan H.
  • 16,219
  • 17
  • 80
  • 113
0
votes
2 answers

Shortcut in nano editor for adding quotation marks to every word beginning with $ in a bash script?

I am new to writing in bash and I just finished this long script but I made the mistake of not adding quotation marks to all the variables beginning with the unary operator $. Adding all the quotation marks by hand is going to take a while. Is there…
Lucas Alanis
  • 1,208
  • 3
  • 15
  • 30
0
votes
1 answer

Why should I switch to an IDE?

I've been programming in python and C for a little less than a year, now. I switched from OSX to Ubuntu about a month ago. I'm learning C++, and most specific (non-beginner, I.E.: an SFML tutorial I'm using) tutorials that I've seen talk as if I use…
mckryall
  • 27
  • 1
  • 9
0
votes
3 answers

Read response and if then else loop

I have this piece of rudementary code in my .bash_profile that loads on login, but I can't get it working. Probably some easy fix, but I', staring my self blind on it right now. The code: # Simple backup when editing files with nano function bu() { …
b0red
  • 47
  • 7
0
votes
1 answer

Nano unresponsive to kb commands with commiting with Git

Having a problem with Nano on Ubuntu 12.04 when initiating a git commit command. When I launch a commit (e.g., git commit -a -m "some text") it brings up Nano which is completely unresponsive to any kb commands including the ctrl- commands on the…
webdev
  • 741
  • 5
  • 16
0
votes
3 answers

Vexing Python syntax error

I am writing a python script using version 2.7.3. In the script a line is toolsDir = 'tools/' When I run this in terminal I get SyntaxError: invalid syntax on the last character in the string 'r'. I've tried renaming the string, using " as opposed…
KDEx
  • 3,505
  • 4
  • 31
  • 39
0
votes
1 answer

Set Ctrl + as shortcut in nano

In virtually any text area on computers nowadays, if you use the combination ctrl + arrowkeys it will move through text by words(left and right) or paragraphs(up and down), and ctrl + shift + arrowkeys will highlight chunks successively. Even this …
Swashy
  • 177
  • 3
  • 6
0
votes
1 answer

Page switching algorithm from Nano editor

I'm writing Nano like editor in javascript and have problem with calculating cursor position and file offset for display: I have two variables _rows and settings.verticalMoveOffset (which is default set to 9 like in Nano) when you move cursor in…
jcubic
  • 61,973
  • 54
  • 229
  • 402