Next Previous Contents

3.

, . , , , . , , .

Linux , . , , X Window. , .

3.1

, - . , : . , .

, "" Linux . , , . , , . .

Linux

Linux - . , . , kbd. Linux kbd .

kbd , .

kbd :

  1. , loadkeys. Redhat , . /usr/sbin/kbdconfig. loadkeys ~/.profile .
  2. . setfont. /usr/lib/kbd/consolefonts. : Linux, setfont X Windows . .

, , PC - ( Midnight Commander), Alt (console character map). , Alt , , KOI-8R Alt . , Alt .

, , .

loadkeys /usr/lib/kbd/keytables/ru.map
setfont /usr/lib/kbd/consolefonts/Cyr_a8x16
mapscrn /usr/lib/kbd/consoletrans/koi2alt
echo -ne "\033(K"              #  

, Control.

Alt . - . , , kbd.

, , Alt , , KOI8-R .

loadkeys /usr/lib/kbd/keytables/ru.map
setfont /usr/lib/kbd/consolefonts/koi8-8x16

, , .

, , . bash tcsh ( ), , Control. , . 'q' "", 'w' "", ..

, ( US) . :

loadkeys /usr/lib/kbd/keytables/defkeymap.map
setfont /usr/lib/kbd/consolefonts/default8x16

: , ( ), X Windows. , , X ( ), .

3.2 X Window

, X Windows . X Windows. .

X Windows.

, .

1995 X Window KOI8-R KOI8-R fonts, created by Cronyx. XFree86.

, X Windows . RedHat ( RedHat 5.2).

, . , , - , , :

  1. 'xlsfonts | grep koi8'. , X .
  2. ,
    find / -name crox\*.pcf\*
    
    . X , - .

, .

Cronyx ( ftp.kiae.su), , xrus ( xruskb, xrus. Xrus Xfree86 (38 68).

, vakufonts , X Windows. , . Vakufonts, , , . , Maple V Linux, vakufonts, "" .

, :

  1. ftp . XFree86 FTP , X Windows, , XFree86 FTP . Redhat, ftp.redhat.com, XFree86-cyrillic-fonts. , X Windows.
  2. , , . , , . , , /usr/lib/X11/fonts/cyrillic , .
  3. BDF (*.bdf ), . :
    bdftopcf -o <font>.pcf <font>.bdf
    
    X , compress ( XFree86 gzip):
    compress *.pcf ( gzip *.pcf)
    
    - , "" , fonts.alias , , .
  4. X , . fonts.dir. . , :
    cd <new font directory>
    mkfontdir .
    
  5. X . :
    xset +fp <  >
    xset fp rehash
    
    , '+fp'- , . , , , fixed, fixed font , . . fixed . - 6x13, , , Emacs/XEmacs . , - , .
  6. X Windows. , , , . , xfontsel(1x), .

X , X . , ~/.Xdefaults:

*font:         6x13

( 'xset q'), - , - , .

. X , , ( editres(1x)) , . :

$ xterm -font '-cronyx-*-bold-*-*-*-19-*-*-*-*-*-*-*'

... xterm ;

$ xfontsel -xrm '*quitButton.font: -*-times-*-*-*-*-13-*-*-*-*-*-koi8-*'

... Cyrillic Times Quit xfontsel.

TrueType

TrueType, Windows ( Mastdie :)), , X. TrueType .

, X Windows. TrueType XFSFT X (, TrueType XFree86).

- , , . , , , :

xfstt ... --encoding koi8-r,windows-1251,iso8859-1

, X Windows - , xfontsel ttf .

X (X11R61 ) "" : , xmodmap, , Xkb (X KeyBoard). , , Xkb !. "russian keyboard". , , keysymdef.h. . , , ASCII - ! , keysymdef.h 8 ASCII. , , KOI8-R. ( : - Xkb , KOI8-R XFree86. Redhat XFree86-3.3.3-1.)

Xkb, XF86Config Keyboard , , Xkb ( ). , :

XkbDisable

xmodmap . , .

xmodmap. . , , xmodmap, , -, , . XFree . , .

xmodmap, . . , xruskb, xmodmap. Redhat Linux RPM .

3.3 - shell

bash

, bash 8 , . ~/.inputrc. :

set meta-flag on
set convert-meta off
set output-meta on

csh/tcsh

.cshrc :

setenv LC_CTYPE iso_8859_5
stty pass8

POSIX stty ( Linux), :

stty -istrip cs8

ksh

public domain ksh - pdksh 5.1.3 , 8 vi . :

set -o vi

less

LESSCHARSET:

export LESSCHARSET=koi8-r

less KOI8-R, :

export LESSCHARSET=latin1

mc (The Midnight Commander)

, full 8 bits Options/Display .

, Linux .

off-topic: mc Xterm : COLORTERM:

COLORTERM= ; export COLORTERM

rlogin

, shell . rlogin , 'rlogin -8'.

zsh

, csh ( csh). - .zshrc /etc/zshrc.


Next Previous Contents