[slightly off] xterm left margin

701 views
Skip to first unread message

Fetchinson .

unread,
Dec 3, 2014, 10:01:18 AM12/3/14
to vim_use
Hi all,

This is not strictly vim related but don't know where to post it (is
there an xterm list somewhere?) and thought that people here might be
knowledgeable on xterm too not only vim.

I'm using xterm (without any wrappers like gnome-terminal, etc) and
would like to set a left margin, i.e. I'd like to prevent the first
character to be immediately at the left side of the window. For
example one empty character on the left side would be great (this is
especially useful and comforting to my eyes when I use xterm in full
screen mode).

I can't find anything that I could set in .Xdefaults or .Xresources
and also can't find a suitable command line option in the manual.

Does anyone know if this is possible at all?

Cheers,
Daniel


--
Psss, psss, put it down! - http://www.cafepress.com/putitdown

Nathan Schwarz

unread,
Dec 3, 2014, 11:17:23 AM12/3/14
to vim...@googlegroups.com
`man xterm | less +/border` gives:
> -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, for the .Xresources:
'xterm.internalBorder: $howManyPixelsYouWant'

- Nathan

--
/"\ ASCII Ribbon Campaign
\ / - against HTML emails
X - against proprietory attachments
/ \ http://en.wikipedia.org/wiki/ASCII_Ribbon_Campaign

Fetchinson .

unread,
Dec 3, 2014, 11:27:36 AM12/3/14
to vim_use
>> This is not strictly vim related but don't know where to post it (is
>> there an xterm list somewhere?) and thought that people here might be
>> knowledgeable on xterm too not only vim.
>>
>> I'm using xterm (without any wrappers like gnome-terminal, etc) and
>> would like to set a left margin, i.e. I'd like to prevent the first
>> character to be immediately at the left side of the window. For
>> example one empty character on the left side would be great (this is
>> especially useful and comforting to my eyes when I use xterm in full
>> screen mode).
>>
>> I can't find anything that I could set in .Xdefaults or .Xresources
>> and also can't find a suitable command line option in the manual.
>>
>> Does anyone know if this is possible at all?
>>
>> Cheers,
>> Daniel
>
> `man xterm | less +/border` gives:
>> -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, for the .Xresources:
> 'xterm.internalBorder: $howManyPixelsYouWant'

Great, thanks a million!

Apparently my problem was that I was
googling/searching/manualreading/etc for the wrong term, I looked for
"margin" and "padding" when it is actually "border" :)

Cheers,
Daniel


> - Nathan
>
> --
> /"\ ASCII Ribbon Campaign
> \ / - against HTML emails
> X - against proprietory attachments
> / \ http://en.wikipedia.org/wiki/ASCII_Ribbon_Campaign
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vim_use+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages