Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 15029  / 3 Years ago, mon, october 18, 2021, 12:20:44

Is there any way to keep the settings of XTerm that I've applied so that it opens with these settings when I reopen it (e.g. text size, set by Ctrl+RightClick)?


More From » xterm

 Answers
5

You can either launch xterm with the relevant option (see man xterm) or create an ~/.Xresource file with the setting there. Try running this command:



echo "xterm*font: *-fixed-*-*-*-12-*" >> ~/.Xresources


That will append xterm*font: *-fixed-*-*-*-12-* to your ~/.Xresources file (creating it if it doesn't exist), which is read by xterm when it starts. If you now log out and log in again, (or just run xrdb -merge .Xresources) your xterm will have its font size set to 12. For the various other options you might want to set, see man xterm and add them to the ~/.Xresources file.






NOTE: This works as expected on my Debian and I used this approach for many years and on many distributions to set the various settings for xterm (and aterm which you might want to check out by the way). For some reason, I can't get it to work on my Ubuntu virtual machine but I am hoping that this is specific to my setup. I'd be very surprised if it doesn't work on Ubuntu.


[#24971] Tuesday, October 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
epypian

Total Points: 130
Total Questions: 111
Total Answers: 113

Location: Romania
Member since Mon, Jun 6, 2022
2 Years ago
epypian questions
Sat, Jul 31, 21, 18:35, 3 Years ago
Sun, Oct 24, 21, 23:28, 3 Years ago
Sun, Dec 26, 21, 12:08, 2 Years ago
Tue, May 9, 23, 21:23, 1 Year ago
;