[Comm] Кириллица в xterm

Владимир Гусев =?iso-8859-1?q?vova1971_=CE=C1_narod=2Eru?=
Вт Ноя 7 13:03:56 MSK 2006


On Tue, 07 Nov 2006 12:41:32 +0300, Alexey Sidorov <alex на reutman.ru> wrote:

> Перевел систему с utf-8 на cp1251
> Но xterm по прежнему работает в koi8-r (кстати, почему не в utf-8?)
> Как исправить?

Поищите секцию xterm в ниже приведенном файле ~/.Xdefaults и сделайте по  
аналогии (размеры и тип шрифта  - за вами).. Закомментаренные строчки тут  
- с восклиц. знаком в начале строки.

[v_gusev на edu-gusev v_gusev]$ cat .Xdefaults

! Parts (C) 1996 By Greg J. Badros <gjb на cs.duke.edu>
! Modification for Linux-Mandrake by Chmouel Boudjnah  
<chmouel на mandraksoft.com>
! Modification for Mandrake RE by AEN <aen на logic.ru>
! Modifications for ALT Linux by ALT Linux Team.
! You may use this file as specified under the GNU General Public License

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!*defaultGUIFontSpec: -*-terminus-medium-r-*--12-*-*-*-*-*-iso10646-1
*defaultGUIFontSpec:-*-verdana-medium-r-*--11-*-*-*-*-*-iso10646-1
!*defaultGUIFontSpec: -*-dejavu lgc sans  
mono-medium-r-*--12-*-*-*-*-*-iso10646-1
!*defaultFontList: -*-terminus-medium-r-normal--12-*-*-*-*-*-iso10646-1
*defaultFontList:-*-verdana-medium-r-*--11-*-*-*-*-*-iso10646-1
!*defaultFontList: -*-dejavu lgc sans  
mono-medium-r-*--12-*-*-*-*-*-iso10646-1
!*fontList: -*-terminus-medium-r-normal--12-*-*-*-*-*-iso10646-1
*fontList:-*-verdana-medium-r-*--11-*-*-*-*-*-iso10646-1
!*fontList:-*-dejavu lgc sans mono-medium-r-*--12-*-*-*-*-*-iso10646-1
!*font: -*-terminus-medium-r-normal--12-*-*-*-*-*-iso10646-1
*font:-*-verdana-medium-r-*--11-*-*-*-*-*-iso10646-1
!*font:-*-dejavu lgc sans mono-medium-r-*--12-*-*-*-*-*-iso10646-1


! Emacs, xEmacs
! We do not need any special settings : GNU Emacs 21.2-alt14 will find the
! right font itself if it is available. This is what we used to set:
!Emacs*font: -misc-fixed-medium-r-normal--15-*-*-*-*-*-iso10646-1
!Emacs*font: -*-*-medium-r-*--12-*-*-*-*-*-iso10646-1
Emacs*font: -*-andale mono-medium-r-*--12-*-*-*-*-*-iso10646-1

Emacs.Foreground: #000000
!Emacs.Background: #bdd9d9
!Emacs.Background: #000071
Emacs.Background: honeydew
!Emacs.Background: #e2e4eb
Emacs.mode-line.attributeForeground: red
Emacs.mode-line.attributeBackground: lemon chiffon
Emacs.bold-italic.attributeForeground: blue
Emacs*pointerColor: Orchid
Emacs*cursorColor: Orchid
Emacs*bitmapIcon: on

!Emacs.default.attributeFamily: fixed
Emacs.default.attributeFamily: monospace

! Some Emacs examples:
! Use similar lines in your ~/.Xdefaults
! to override the colour everywhere in Emacs:
!Emacs*background: green
!Emacs*foreground: red
! Set another window sizes for Emacs:
Emacs.geometry: 90x35
!Emacs.geometry: 75x67

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! xterm (and friends)

!*VT100*foreground: #6495ED
*VT100*foreground: gray
*VT100*cursorColor: red
*VT100*background: black

!*VT100*foreground: gray
!*VT100*cursorColor: red
!*VT100*background: gray20
*VT100*geometry: 90x25

!*VT100*color0: #000000
!*VT100*color0:#6495ED
*VT100*color0: #1E90FF
!*VT100*color1: #f72c2c
  *VT100*color1: #87CEFA
*VT100*color2: #50c96c
*VT100*color3: #EDD536
!цвет фона
*VT100*color4: #00008B
!!*VT100*color4: #666699
!*VT100*color5: magneta3
*VT100*color5: #B0C4DE
*VT100*color6: #483D8B
!*VT100*color7: grey80
!*VT100*color8: #cac9c9
*VT100*color9: #ff6339
*VT100*color10: #8cda49

!цвет названий колонок
!*VT100*color11: #fffd35
*VT100*color11: #FFD700

*VT100*color12: #4aa6f7
*VT100*color13: #e271e8
*VT100*color14: #71d6e8
!*VT100*color15: grey10


!XTerm*VT100*font: -*-courier-medium-r-normal--12-*-*-*-*-*-*
!XTerm*VT100*font: -*-andale mono-medium-r-normal-*-12-*-*-*-*-*-koi8-r
!XTerm*VT100*font:  
-rfx-serenetypewriter-medium-r-normal-*-12-*-*-*-*-*-koi8-r
*VT100*font: -monotype-andale mono-medium-r-*--12-*-*-*-*-*-iso10646-1
!*VT100*font: -*-dejavu lgc sans mono-medium-r-*-*-11-*-*-*-*-*-iso10646-1
!XTerm*VT100*font: -*-courier new-medium-r-*--12-*-*-*-*-*-koi8-r
!XTerm*VT100*font: -*-lucida console-*-r-*-*-12-*-*-*-*-*-koi8-r
!XTerm*VT100*font: -*-bitstream vera sans mono-*-r-*-*-14-*-*-*-*-*-*-*
!XTerm*VT100*font: -*-*-medium-r-*--11-*-*-*-*-*-koi8-*
!XTerm*VT100*font: -misc-fixed-medium-r-normal--12-*-*-*-*-*-koi8-r
!XTerm*VT100*font: -*-terminus-medium-r-*--14-*-*-*-*-*-koi8-*

!Aterm*font: -*-*-medium-r-*--12-*-*-*-*-*-koi8-r
!Aterm*font: -monotype-andale mono-medium-r-*--12-*-*-*-*-*-koi8-*
Aterm*font: -*-lucida console-medium-r-*--12-*-*-*-*-*-iso10646-1
Aterm*foreground: grey
Aterm*cursorColor: red
Aterm*background: black
Aterm*geometry: 80x30

Eterm*font: -*-lucida console-medium-r-*--12-*-*-*-*-*-iso10646-1

lynx*font: -*-andale mono-medium-r-normal-*-12-*-*-*-*-*-koi8-r

!mrxvt some preferences

mrxvt*multichar_encoding: KOI8-R
mrxvt*mfont: -*-lucida console-*-*-*--12-*-*-*-*-*-iso10646-1
mrxvt*boldFont: -*-lucida console-bold-*-*--12-*-*-*-*-*-iso10646-1
mrxvt*font: -*-lucida console-*-*-*--12-*-*-*-*-*-iso10646-1
mrxvt*foreground: black
mrxvt*background: white
mrxvt*cursorColor: red
mrxvt*geometry:80x30
mrxvt*hideButtons:true
!mrxvt*menu:/home/vova/rxvt.menu
!mrxvt*showMenu:False
mrxvt*transparent:      False
mrxvt*transparentScrollbar:False
mrxvt*transparentTabbar:False
mrxvt*transparentMenubar:False
mrxvt*scrollbarStyle:next
!mrxvt*windowsSwitch:False
mrxvt*saveLines:9999
mrxvt*tabForeground:blue
mrxvt*itabForeground:gray
!mrxvt*tabBackground:yellow
mrxvt*tabPixmap:        False

mrxvt*xft: false
mrxvt*xftSlowOutput: false
mrxvt*xftFont: Lucida Console
mrxvt*xftmFont: Lucida Console
mrxvt*xftNomFont: false
mrxvt*xftAntialias: true
mrxvt*xftSlant: roman
mrxvt*xftHinting: true
mrxvt*xftAutoHint: rue
mrxvt*xftGlobalAdvance: true
mrxvt*xftWeidth: medium
mrxvt*xftWidth: normal
mrxvt*xftRGBA: rgb
mrxvt*xftSize: 11

Rxvt*font: -misc-fixed-medium-r-normal--15-*-*-*-*-*-iso10646-1

! If true, overrides the mapping of C1 controls (codes 128-159) to make
! them be treated as if they were printable characters.  Although this
! corresponds to no particular standard, some users insist it is a VT100.
! The default is "false".
*VT100.allowC1Printable: true

! Specifies whether or not recognition of ANSI (ISO 6429) color change
! escape sequences should be enabled.
! The default is "true".
!*VT100*colorMode:      true

! Specifies  whether characters with the bold attribute should be
! displayed in color or as bold characters.   Note  that  setting
! colorMode off disables all colors, including bold.
*VT100*colorBDMode:     true

! This specifies the color to use to display bold characters if the
! "colorBDMode" resource is enabled.
*VT100*colorBD:         blue

! Specifies whether characters with the underline attribute should be
! displayed in color or as underlined characters.  Note that setting
! colorMode off disables all colors, including underlining.
*VT100*colorULMode:     true

! This specifies the color to use to display underlined characters if the
! "colorULMode" resource is enabled.
*VT100*colorUL:         magenta

! Specifies whether or not escape sequences to change colors assigned to
! different attributes are recognized.
*VT100*dynamicColors:   true

! If "true", Meta characters input from the keyboard are presented as
! a single character with the eighth bit turned on.  The terminal is
! put into 8-bit mode.  If "false", Meta characters are converted into
! a two-character sequence with the character itself preceded by ESC.
! The terminal is put into 7-bit mode.  The metaSendsEscape resource may
! override this.
! The default is "true".
*VT100.eightBitInput:   false

*VT100*fontMenu*fontdefault*Label:Default

! If "false", selecting with the mouse highlights all positions on the
! screen between the beginning of the selection and the current position.
! If "true", xterm highlights only the positions that contain text that
! can be selected.
! The default is "false".
*VT100*highlightSelection:      true

! Specifies the number of lines to save beyond the top of the screen when
! a scrollbar is turned on.  The default is 64.
*VT100*saveLines:       9999
Aterm*saveLines:        9999
Rxvt*saveLines:         9999

! Specifies whether or not the scrollbar should be displayed.
! The default is "false".

*VT100*scrollBar:       false
Aterm*scrollBar:        true
Rxvt*scrollBar:         true

! Specifies whether or not pressing a key should automatically cause the
! scrollbar to go to the bottom of the scrolling region.
! The default is "false".
*VT100*scrollKey:       true
Aterm*scrollKey:        true
Rxvt*scrollKey:         true

! Specifies whether or not output to the terminal should automatically
! cause the scrollbar to go to the bottom of the scrolling region.
! The default is "true".
*VT100*scrollTtyOutput: false
Aterm*scrollTtyOutput:  false
Rxvt*scrollTtyOutput:   false

! This resource specifies whether or not to ignore the 'alternate screen'
! of applications such as less and vi.  When it is off, these applications
! will restore the contents of the screen when they are exited to what they
! were before they were started.  When it is on, the contents of view will
! remain on the screen after the program is quit.
*VT100*titeInhibit:     false
Aterm*titeInhibit:      false
Rxvt*titeInhibit:       false

! This specifies whether or not text with the underline attribute should
! be underlined.  It may be desirable to disable underlining when color
! is being used for the underline attribute.
*VT100*underLine:       false

! Specifies whether or not a visible bell (i.e., flashing) should be used
! instead of an audible bell when Control-G is received.
! The default is "false".
*VT100*visualBell:      false

! Specifies whether or not reverse-wraparound should be enabled.
! The default is "false".
*VT100*reverseWrap:     true

!mc colors
!*VT100*color4: grey20
!*VT100*color6: grey50
!*VT100*color0: black

! Suppr support.
*VT100.Translations: #override \
<Key>BackSpace: string(0x7F)\n\
<Key>Delete: string("\033[3~")\n\
<Key>Home: string("\033[1~")\n\
<Key>End: string("\033[4~")

!Nedit some preferences

nedit*foreground: black
nedit*background: lightgray
nedit*font: -*-terminus-medium-r-normal--12-*-*-*-*-*-iso10646-1
nedit*geometry: 90x35

! xedit some preferences

!.xedit.paned.hpane.vpane.editWindow.background: darkblue
!.xedit.paned.hpane.vpane.formWindow.labelWindow.background: darkgray
!.xedit.paned.hpane.vpane.formWindow.labelWindow.foreground: lightyellow
!.xedit.paned.messageWindow.background: black
!.xedit.paned.bc_label.unknown: darkgray
!.xedit.paned.bc_label.background: darkgray
!.xedit.paned.bc_label.foreground: lightyellow
!.xedit.paned.hpane.vpane.formWindow.positionWindow.background: gray
!.xedit.paned.buttons.filename.background: gray
!.xedit.paned.buttons.load.background: orange
!.xedit.paned.buttons.save.background: green
!.xedit.paned.buttons.quit.unknown: red
!.xedit.paned.buttons.quit.background: red
!.xedit.paned.hpane.vpane.editWindow.borderColor: darkgray
!.xedit.paned.hpane.vpane.viewport.dirwindow.background: darkblue
!.xedit.paned.hpane.vpane.viewport.dirwindow.foreground: lightblue
!.xedit.paned.hpane.vpane.dirlabel.background: darkgray
!.xedit.paned.hpane.vpane.dirlabel.foreground: lightyellow
!.xedit.paned.hpane.vpane.dirlabel.font:  
-*-verdana-medium-r-*--12-*-*-*-*-*-iso10646-1
!.xedit.paned.bc_label.font: -*-verdana-medium-r-*--12-*-*-*-*-*-iso10646-1
!.xedit.paned.buttons.load.font:  
-*-verdana-medium-r-*--11-*-*-*-*-*-iso10646-1
!.xedit.paned.buttons.save.font:  
-*-verdana-medium-r-*--11-*-*-*-*-*-iso10646-1
!.xedit.paned.buttons.save.allowResize: y
!.xedit.paned.buttons.quit.font:  
-*-verdana-medium-r-*--11-*-*-*-*-*-iso10646-1
!.xedit.paned.hpane.vpane.editWindow.textSink.foreground: lightblue
!.xedit.paned.hpane.vpane.formWindow.labelWindow.font:  
-*-verdana-medium-r-*--12-*-*-*-*-*-iso10646-1
!.xedit.paned.buttons.filename.textSink.font:  
-*-verdana-medium-r-*--12-*-*-*-*-*-iso10646-1
!.xedit.paned.grip.pointerColor: red
!.xedit.paned.grip.pointerColorBackground: red
!.xedit.paned.grip.borderColor: red
!.xedit.paned.grip.borderColor:
!.xedit.paned.buttons.save.justify: true
!.xedit.paned.buttons.save.resize: true
!.xedit.paned.buttons.save.internalWidth:
!.xedit.paned.buttons.filename.textSink.font:  
-*-verdana-medium-r-*--11-*-*-*-*-*-iso10646-1
!.xedit.paned.messageWindow.textSink.foreground: gray

!xpdf some prefs

xpdf*defaultGUIFontSpec:-*-verdana-medium-r-*--11-*-*-*-*-*-iso10646-1
xpdf*defaultFontList:-*-verdana-medium-r-*--11-*-*-*-*-*-iso10646-1
xpdf*fontList:-*-verdana-medium-r-*--11-*-*-*-*-*-iso10646-1
xpdf*font:-*-verdana-medium-r-*--11-*-*-*-*-*-iso10646-1


! GVim great Colors.

Vim*geometry:   80x35
Vim*background: black
Vim*foreground: lightyellow
!Vim*font: -monotype-courier new-medium-r-normal--12-*-*-*-*-*-koi8-*
!Vim*font: -*-*-medium-r-*--11-*-*-*-*-*-*-*
Vim*font: -*-andale mono-medium-r-normal--9-*-*-*-*-*-koi8-*
Vim*menuBackground: black
Vim*menuForeground: moccasin

!Acrobat some settings
!acroread*defaultGUIFontSpec:-*-verdana-medium-r-*--11-*-*-*-*-*-*-*
!acroread*defaultFontList:-*-verdana-medium-r-*--11-*-*-*-*-*-*-*
!acroread*fontList:-*-verdana-medium-r-*--11-*-*-*-*-*-*-*
!acroread*font:-*-verdana-medium-r-*--11-*-*-*-*-*-*-*

fbrun*font: -*-verdana-medium-r-*--11-*-*-*-*-*-*-*


! Wheel mouse support for netscape.
Netscape*globalTranslations: #override\
         <Btn5Up>: LineDown()\n\
         <Btn4Up>: LineUp()

Scrollbar.JumpCursor:   true

! Default Xcursor theme
Xcursor.theme:  jimmac

#include "/etc/X11/Xresources-site.ru_RU.KOI8-R"

-- 
С уважением, Владимир Гусев



Подробная информация о списке рассылки community