You are not logged in.

#1 2016-12-10 16:12:09

bobhund
Member
Registered: 2016-10-25
Posts: 67

padding on the shell

Hi I would like to give the command shell a bit of padding on the left. I been trying to google it with no succes. Anybody else done this?

Offline

#2 2016-12-10 16:40:02

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: padding on the shell

You won't be able to control it on the shell level itself as the shell does not transform any command output unto itself. You need terminal emulator support for this to get a consistent result. URxvt has the internal border resource which you can set in xresources/Xdefaults:

! 4px padding
URxvt*internalBorder: 4

The xterm man page suggests that all vt100-compliant emulators should support this property:

-b number
               This option specifies the size of the inner border (the distance between the outer edge of the characters and the window border) in pixels.
               That is the vt100 internalBorder resource.  The default is “2”.

so you can also set

*internalBorder: 4

to get padding in both xterm and urxvt. I do not know whether terminator's libvte (also used in GNOME terminal and others) respects this particular X resource or has a different setting, or none at all.

Offline

#3 2016-12-13 01:40:27

bobhund
Member
Registered: 2016-10-25
Posts: 67

Re: padding on the shell

I went to the places .Xresources in the menu, and added the line but seemingly with no effect. Is there a terminal I can install where the above would work?

Last edited by bobhund (2016-12-13 02:43:21)

Offline

#4 2016-12-13 07:45:13

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: padding on the shell

I recommend rxvt-unicode-256color smile

When combined with tmux, it offers all the features of terminator (and more besides) with much greater speed and a much lower overhead.

https://forums.bunsenlabs.org/viewtopic.php?id=206

Offline

#5 2016-12-15 19:34:03

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: padding on the shell

bobhund wrote:

I went to the places .Xresources in the menu, and added the line but seemingly with no effect. Is there a terminal I can install where the above would work?

that was either for xterm or urxvt, if i understood correctly.
are you using xterm or urxvt?
also, settings in .Xresources don't come into effect automatically, you have to

xrdb -merge ~/.Xresources

Offline

#6 2016-12-15 20:21:07

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: padding on the shell

ohnonot wrote:

settings in .Xresources don't come into effect automatically, you have to

xrdb -merge ~/.Xresources

Actually, ~/.Xresources is sourced automatically in BunsenLabs as long as LightDM is used to login.

It took me ages to figure out why my ~/.Xdefaults wasn't being picked up by urxvt...

:8

Offline

Board footer

Powered by FluxBB