![]() ![]() xterm also supports VT100 graphic character escape sequences, which can be set through the. I just wanted a more permanent solution so it would open at the right size with the right font size every time without me having to change it at runtime. This is useful for implementing legacy applications or slow displays. I hope someone finds this useful! It's saved me quite a bit of squinting from the couch trying to read things on the TV from the couchĪlso, if you'd like to temporarily change the font size in XTerm, you could also CTRL Right Click (hold right click) and you'll see a menu show up. On Ubuntu on WSL, it looks like 'DejaVuSansMono' is installed by default, and it's a nice fixed-width terminal-type font. You don't mention which distribution you are running, so I'm not sure what fonts you will have. So, my whole ~/.Xresources file looks like this: To set the font when starting xterm, first get a list of your installed fonts with: fc-list. Change the values to suit the size you'd like XTerm to open as. Where, in my example above, 127 is the number of characters wide that will be displayed and 37 is the number of lines that will be displayed. Now to set the size of the console itself, you would add this to the ~/.Xresources file: Where, in this example, Luxi Mono is the font I'm using - you can use any font from the TrueType list above and it should work just the same You'll use the name of the font you'd like to use exactly as it is from the list - copy/paste is easiest if you choose to use one. If you're interested in using a TrueType font, run this command:įc-list :fontformat=TrueType -f "%\n" | sort -u | less To change the size of the font add this to the ~/.Xresources file:ġ8 above is an example - but change the size to preference The language of the Xterm wiki page mentions adding options (for example in color) but I can only assume this is from within the first instance of xterm. I dont see anything in /.Xresources I recognize as options for initializing the program. In Debian, the file doesn't exist so I simply created it Theres nothing on the Xterm wiki page about setting startup options for xterm. and a bit of other searching as well allowed me to find how to set the default console size. This is very useful when you're using higher resolutions or a display that's further away This is purely informational and something I found useful so I thought others might as well - how to set the default font, font size, and console size in Linux: Debian, Ubuntu, etc.
0 Comments
Leave a Reply. |