Difference between revisions of "User:Thisoldman"

From ArchWiki
Jump to: navigation, search
Line 1: Line 1:
===Console (Virtual Terminals)===
+
=Console Fonts=
 +
<!-- Introduction -->
 +
The default font for consoles, that is, terminals with no ''X'' windows, uses the ASCII character set. This font and character set can easily be changed by the user.
  
<!-- should be a list instead of explaining configuration. to merge with Fonts Configuration. -->
+
 
The default font used in the console and in virtual terminals uses the ASCII character set. To use other fonts change the {{Codeline|CONSOLEFONT<nowiki>=</nowiki>}} and {{Codeline|CONSOLEMAP<nowiki>=</nowiki>}} settings in {{Filename|/etc/rc.conf}}. Different fonts can be found in {{Filename|/usr/share/kbd/consolefonts/}} directory and keymaps can be found in the subdirectories of {{Filename|/usr/share/kbd/keymaps/}}.
+
Console fonts are found in {{Filename|/usr/share/kbd/consolefonts/}}. The console display is limited to either 256 characters and 16 available colors or 512 characters and 8 available colors. The "bright" terminal colors aren't available when using the larger set of characters.
 +
 
 +
== Previewing and testing ==
 +
 
 +
No organized library of console font images is available. The user can, however, use {{Codeline|setfont}} to temporarily change the font. The user can then work as usual at the command line to determine if the font is suitable. A table of all the available ''glyphs'' or letters in the font can also be viewed with the command {{Codeline|showconsolefont}}.  
 +
 
 +
If the font is not suitable, a return to the default font can then be made by issuing the command {{Codeline|setfont}}, without any arguments. If the console display is totally unreadable, this command will still work—the user just types in the command "blind."
 +
 
 +
Note that {{Codeline|setfont}} only works on the active console. Any other consoles, active or inactive, remain unaffected.
 +
 
 +
=== Examples ===
 +
 
 +
Change the font. This one is distinctive:
 +
$ setfont gr737b-9x16-medieval.psfu.gz
 +
 
 +
Or change the font to one with 512 glyphs and the ISO 8859-3 character set:
 +
$ setfont
 +
 
 +
Issue commands that send text to the display:
 +
$ cat somefile
 +
$ man man
 +
 
 +
View the table of glyphs:
 +
$ showconsolefont
 +
 
 +
 
 +
 
 +
 
 +
To use other fonts change the {{Codeline|CONSOLEFONT<nowiki>=</nowiki>}} and {{Codeline|CONSOLEMAP<nowiki>=</nowiki>}} settings in {{Filename|/etc/rc.conf}}. Different fonts can be found in {{Filename|/usr/share/kbd/consolefonts/}} directory and keymaps can be found in the subdirectories of {{Filename|/usr/share/kbd/keymaps/}}.
  
 
===Example===
 
===Example===

Revision as of 04:29, 22 November 2009

Console Fonts

The default font for consoles, that is, terminals with no X windows, uses the ASCII character set. This font and character set can easily be changed by the user.


Console fonts are found in Template:Filename. The console display is limited to either 256 characters and 16 available colors or 512 characters and 8 available colors. The "bright" terminal colors aren't available when using the larger set of characters.

Previewing and testing

No organized library of console font images is available. The user can, however, use Template:Codeline to temporarily change the font. The user can then work as usual at the command line to determine if the font is suitable. A table of all the available glyphs or letters in the font can also be viewed with the command Template:Codeline.

If the font is not suitable, a return to the default font can then be made by issuing the command Template:Codeline, without any arguments. If the console display is totally unreadable, this command will still work—the user just types in the command "blind."

Note that Template:Codeline only works on the active console. Any other consoles, active or inactive, remain unaffected.

Examples

Change the font. This one is distinctive:

$ setfont gr737b-9x16-medieval.psfu.gz

Or change the font to one with 512 glyphs and the ISO 8859-3 character set:

$ setfont 

Issue commands that send text to the display:

$ cat somefile
$ man man

View the table of glyphs:

$ showconsolefont



To use other fonts change the Template:Codeline and Template:Codeline settings in Template:Filename. Different fonts can be found in Template:Filename directory and keymaps can be found in the subdirectories of Template:Filename.

Example

For displaying characters such as č, ć, ž, đ, or š, use the font Template:Filename:

CONSOLEFONT="lat2-16.psfu.gz"

And set the proper keymap, in this case:

CONSOLEMAP="8859-2"

To use the specified font in early userspace (early in the bootup process), add the Template:Codeline hook to Template:Filename:

HOOKS="base udev autodetect pata scsi sata filesystems keymap"

Then rebuild the image:

# mkinitcpio -p kernel26
Note: Repeat if you have more than one kernel package installed and want the same behavior for each kernel.

See: Mkinitcpio: Configuring the HOOKS