Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I understand to create a new xterm with 1000 buffer size I can do xterm -sl 1000 &. How would I do this by default for all xterms? If this cannot be done, how do I do it for the current xterm? It looks like I need to use XTerm*saveLines: 1000 in a file, but which file do I use and do I need to do anything after writing that file?

edit: I have tried XTerm*saveLines: 5000 in .Xresources and .Xdefaults (and at the same time in both files), but no change in behaviour. Do I need to resource or restart anything? I am running on a VNC if that changes anything.

share|improve this question

1 Answer 1

Defaults

Edit you're ~/.Xresources File

Arch has some pretty good documentation on Xterm and X resources

Xterm*vt100*geometry: 80x50
Edit: whoops you didn't ask for size

share|improve this answer
    
update question with your suggestion –  Stuart Sep 4 '13 at 17:46
    
Just for some context, what is your Desktop environment / Window Manager? The Arch Wiki mentions making a change in an xterm, i.e. typing the XTerm*saveLines: 5000 and then merging your resources like so: xrdb -merge ~/.Xresources –  thisguy123 Sep 5 '13 at 0:03
    
I'm not actually sure. I use VNC to access a server, which I think is CentOS/GNOME. XTerm*saveLines: 5000 returns XTerm*saveLines:: Too many arguments. –  Stuart Sep 5 '13 at 20:20
    
Hrmm this is probably why you didn't see a change when adding to .XdefaultsI'd say read through the XTerm manpage and once you figure out the proper syntax of the size command and can get it to be accepted in a live terminal, just add that to your .Xdefaults –  thisguy123 Sep 5 '13 at 22:26
    
Makes sense. I made my .Xdefaults file myself. Are there any other necessary lines in there, or can it be blank except for the line I am trying to add? –  Stuart Sep 6 '13 at 23:01

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.