Are you talking about a terminal emulator (eg. xterm, urxvt,etc.) or FreeBSD console?
For terminals like x11/rxvt-unicode you do that in ~/.Xresources. You should look for the particularities of the terminal you use.
Are you talking about a terminal emulator (eg. xterm, urxvt,etc.) or FreeBSD console?
kldload vesa
vidcontrol -i mode < /dev/console
vidcontrol -g 132×60 MODE_280 < /dev/console
allscreens_flags=”-g 132×60 MODE_280″
vesa_load=”YES”
kern.vty=vt
i915kms_load="YES"
Ok I appreciate that advicd as I'll need that soon ... but right now haven't installed X.
And even later their may be times when I work just from the command line on the console
rather than starting X....
I've looked at env and doesn't seem to be an ENVIRONMENT Variable that does this.
I don't know what video card you have so I'm gonna give you indications for VESA.
Code:kldload vesa
Next, you need to query the console to find out what modes are available, to do this type (as root):
Code:vidcontrol -i mode < /dev/console
This will output all the available modes for your card+monitor. (e.g. 280 (0x118) 0x0000001f G 1024x768x32 D 8×16 0xa0000 64k 64k 0xf3000000 3072k). Mode 280 is 1024 x 768 in 32-bit colour and uses a 8×16 font.
Let's just say that you want to use that mode (280) with an increased geometry from 80×25 to 132×60,
Code:vidcontrol -g 132×60 MODE_280 < /dev/console
If you want to use this as the default every boot, add the following line to your /etc/rc.conf file:
And also load the VESA driver on boot, by adding the following line to your /boot/loader.conf file:Code:allscreens_flags=”-g 132×60 MODE_280″
Code:vesa_load=”YES”
If the graphic card is from Intel (IvyBridge->newer) all you need to do is to add to /boot/loader.conf:
Code:kern.vty=vt i915kms_load="YES"
vidcontrol
to set console resolution is it only works with the old sc console driver. By default FreeBSD uses the newer vt console driver. You can change the driver by adding kernel.vty=sc in in the loader.conf file. Though doing that can give you problems with the video driver used in X, depends on the driver. In my case I use the nVidia blob which works fine with either console driver.