Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is it possible to change the line spacing in Terminal, or is there some other app that allows it? I'm moving from the Mac, and its terminal app has this feature which allows line spacing to be changed independent of the font size.

E.g., here's Monaco on the Mac at 17pt, without any adjustments. My issue with it is that it's a jumble of text - the eye is drawn vertically as much as it is horizontally:

Monaco

And with "1.1" line spacing and slightly tighter character spacing. I do this so that my eye follows lines easier. It's a general rule of thumb in layout that space between lines should be larger than the space between words. This gets a little closer to that ideal:

Monaco with my custom changes

I'm wondering how to achieve this with Ubuntu. For now, my best workaround is to use Source Code Pro, which is designed with these ideas in mind, apparently:

Source Code Pro

share|improve this question
    
Hi i am off to my PC now . but i am sure either from General or scrolling TAB in that window you can get that . –  AgentCool Sep 29 '12 at 3:52
2  
Not sure what your screenshot is supposed to accomplish or show; looks like a normal terminal screen to me. Seems like you'd need at least two examples to show difference in line spacing, as different fonts have different spacing, depending on the height of the font. But I think we all know what line spacing is, even though the terminal doesn't have that setting. –  Marty Fried Sep 29 '12 at 4:21
    
I updated the screenshots to better illustrate my question. –  Dogweather Nov 13 '12 at 2:11

3 Answers 3

up vote 4 down vote accepted

There is one terminal emulator that has this feature.

urxvt

from man urxvt:

-lsp number
Compile frills: Lines (pixel height) to insert between each row of the display.      
Useful to work around font rendering problems; resource lineSpace.

urxvt is avalable in thease packages:

rxvt-unicode

rxvt-unicode-256color

rxvt-unicode-lite

share|improve this answer

To my knowledge this is not directly achievable. Nor would you want it to be. Having a space between lines would really mess up "text ui" based programs like nano, mail, and that little dialog that pops up when you run apt from the command line.

However, there is good news. You can just change the font. Some fonts have a kind of "padding" that will give you the same effect.

I recommend that you use Source Code Pro it's very readable, though it honestly doesn't give as much padding as you want.

Keep in mind that on Linux the terminal is different concept then it is on OS X. As someone that is migrating myself, I think the best advice I can give is to just use the defaults for a while then make a decision.

share|improve this answer
    
Actually, I've ended up independently using half of your advice. First, I believe that it is desirable: I realize my screenshot may not clearly show it, but that's Monaco being displayed with a slightly larger line spacing. I find that it helps the text on the lines stick together more. But yes, Source Code Pro does space its lines further apart, and that's what I'm using on Linux. –  Dogweather Nov 13 '12 at 1:51
    
You can also try out the font Ubuntu Mono. –  Paddy Landau Dec 30 '12 at 16:59

This isn't really a fix but you can add a blank line after every command with:

export PROMPT_COMMAND="echo"
share|improve this answer
3  
This will break a massive number of things. I don't suggest this. Plus this only works at the interpreter level (bash). The example above is command output, to address that you need to have line spacing on the emulator level. –  coteyr Nov 12 '12 at 15:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.