Bonsoir à tous !
J’aimerais augmenter la taille de police de mes xterm.
Existe-t-il un fichier de conf qui garderait les paramètres du genre xterm -fa "Monospace" -fs 11 -lc
définitivement ?
Merci d’avance et bonne soirée
Bonsoir à tous !
J’aimerais augmenter la taille de police de mes xterm.
Existe-t-il un fichier de conf qui garderait les paramètres du genre xterm -fa "Monospace" -fs 11 -lc
définitivement ?
Merci d’avance et bonne soirée
Il me semble que ça se fait dans /etc/X11/Xressources, il faut voir le man
OK, je regarde et je dépose la solution ici…
Merci
J’y arrive pas
J’ai trouvé un fichier /etc/X11/app-defaults/Xterm dans lequel figure plusieurs tailles de police et j’ai beau le modifier, l’enregistrer et lancer un xterm: rien ne change.
En voici le contenu:
[code]! $XTermId: XTerm.ad,v 1.85 2007/11/26 18:42:37 tom Exp $
*saveLines: 1024
SimpleMenuBackingStore: NotUseful
SimpleMenumenuLabel.font: -adobe-helvetica-bold-r-normal–-120-----iso8859-
SimpleMenumenuLabel.vertSpace: 100
SimpleMenuHorizontalMargins: 16
SimpleMenuSme.height: 16
SimpleMenuCursor: left_ptr
mainMenu.Label: Main Options
mainMenutoolbarLabel: Toolbar
mainMenusecurekbdLabel: Secure Keyboard
mainMenuallowsendsLabel: Allow SendEvents
mainMenuredrawLabel: Redraw Window
mainMenuloggingLabel: Log to File
mainMenuprintLabel: Print Window
mainMenuprint-redirLabel: Redirect to Printer
mainMenu8-bit controlLabel: 8-Bit Controls
mainMenubackarrow keyLabel: Backarrow Key (BS/DEL)
mainMenunum-lockLabel: Alt/NumLock Modifiers
mainMenualt-escLabel: Alt Sends Escape
mainMenumeta-escLabel: Meta Sends Escape
mainMenudelete-is-delLabel: Delete is DEL
mainMenuoldFunctionKeysLabel: Old Function-Keys
mainMenusunFunctionKeysLabel: Sun Function-Keys
mainMenusunKeyboardLabel: VT220 Keyboard
mainMenuhpFunctionKeysLabel: HP Function-Keys
mainMenuscoFunctionKeysLabel: SCO Function-Keys
mainMenutcapFunctionKeysLabel: Termcap Function-Keys
mainMenususpendLabel: Send STOP Signal
mainMenucontinueLabel: Send CONT Signal
mainMenuinterruptLabel: Send INT Signal
mainMenuhangupLabel: Send HUP Signal
mainMenuterminateLabel: Send TERM Signal
mainMenukillLabel: Send KILL Signal
mainMenuquit*Label: Quit
vtMenu.Label: VT Options
vtMenuscrollbarLabel: Enable Scrollbar
vtMenujumpscrollLabel: Enable Jump Scroll
vtMenureversevideoLabel: Enable Reverse Video
vtMenuautowrapLabel: Enable Auto Wraparound
vtMenureversewrapLabel: Enable Reverse Wraparound
vtMenuautolinefeedLabel: Enable Auto Linefeed
vtMenuappcursorLabel: Enable Application Cursor Keys
vtMenuappkeypadLabel: Enable Application Keypad
vtMenuscrollkeyLabel: Scroll to Bottom on Key Press
vtMenuscrollttyoutputLabel: Scroll to Bottom on Tty Output
vtMenuallow132Label: Allow 80/132 Column Switching
vtMenukeepSelectionLabel: Keep Selection
vtMenuselectToClipboardLabel: Select to Clipboard
vtMenucursesemulLabel: Enable Curses Emulation
vtMenuvisualbellLabel: Enable Visual Bell
vtMenubellIsUrgentLabel: Enable Bell Urgency
vtMenupoponbellLabel: Enable Pop on Bell
vtMenucursorblinkLabel: Enable Blinking Cursor
vtMenutiteInhibitLabel: Enable Alternate Screen Switching
vtMenuactiveiconLabel: Enable Active Icon
vtMenusoftresetLabel: Do Soft Reset
vtMenuhardresetLabel: Do Full Reset
vtMenuclearsavedlinesLabel: Reset and Clear Saved Lines
vtMenutekshowLabel: Show Tek Window
vtMenutekmodeLabel: Switch to Tek Mode
vtMenuvthideLabel: Hide VT Window
vtMenualtscreenLabel: Show Alternate Screen
fontMenu.Label: VT Fonts
fontMenufontdefaultLabel: Default
fontMenufont1Label: Unreadable
VT100.font1: nil2
IconFont: nil2
fontMenufont2Label: Tiny
VT100.font2: 5x7
fontMenufont3Label: Small
VT100.font3: 6x10
fontMenufont4Label: Medium
VT100.font4: 7x13
fontMenufont5Label: Large
VT100.font5: 9x15
fontMenufont6Label: Huge
VT100.font6: 10x20
fontMenufontescapeLabel: Escape Sequence
fontMenufontselLabel: Selection
!fontescape and fontsel overridden by application
fontMenufont-linedrawingLabel: Line-Drawing Characters
fontMenufont-doublesizeLabel: Doublesized Characters
fontMenufont-loadableLabel: VT220 Soft Fonts
fontMenurender-fontLabel: TrueType Fonts
fontMenuutf8-modeLabel: UTF-8
fontMenuutf8-title*Label: UTF-8 Titles
*VT100.utf8Fonts.font2: -misc-fixed-medium-r-normal–8-80-75-75-c-50-iso10646-1
*VT100.utf8Fonts.font: -misc-fixed-medium-r-semicondensed–13-120-75-75-c-60-iso10646-1
*VT100.utf8Fonts.font3: -misc-fixed-medium-r-normal–14-130-75-75-c-70-iso10646-1
*VT100.utf8Fonts.font4: -misc-fixed-medium-r-normal–13-120-75-75-c-80-iso10646-1
*VT100.utf8Fonts.font5: -misc-fixed-medium-r-normal–18-120-100-100-c-90-iso10646-1
*VT100.utf8Fonts.font6: -misc-fixed-medium-r-normal–20-200-75-75-c-100-iso10646-1
tekMenu.Label: Tek Options
tekMenutektextlargeLabel: Large Characters
tekMenutektext2Label: #2 Size Characters
tekMenutektext3Label: #3 Size Characters
tekMenutektextsmallLabel: Small Characters
tekMenutekpageLabel: PAGE
tekMenutekresetLabel: RESET
tekMenutekcopyLabel: COPY
tekMenuvtshowLabel: Show VT Window
tekMenuvtmodeLabel: Switch to VT Mode
tekMenutekhide*Label: Hide Tek Window
tek4014fontLarge: 9x15
tek4014font2: 8x13
tek4014font3: 6x13
tek4014fontSmall: 6x10
! Debian package customizations follow.
*backarrowKeyIsErase: true
*ptyInitialErase: true
! If xterm is built with a toolbar, the widget hierarchy looks like this,
! showing widget name / class names. The complete menu hierarchy is built
! at startup because it is needed to make the layout work for the menubar:
!
! xterm/XTerm
! form/Form
! menubar/Box
! mainMenuButton/MenuButton
! mainMenu/SimpleMenu
! menuLabel/SmeBSB
! toolbar/SmeBSB
! …
! vtMenu/SimpleMenu
! menuLabel/SmeBSB
! scrollbar/SmeBSB
! …
! fontMenu/SimpleMenu
! menuLabel/SmeBSB
! fontdefault/SmeBSB
! …
! tekMenu/SimpleMenu
! menuLabel/SmeBSB
! fontdefault/SmeBSB
! …
! vt100/VT100
! tektronix/TopLevelShell
! shellext/VendorShellExt
! tek4014/Tek4014
!
! If built without a toolbar, the widget hierarchy is simpler, because there
! is no form, and the popup menu widgets are created only when they are first
! used.
!
! xterm/XTerm
! shellext/VendorShellExt
! mainMenu/SimpleMenu
! menuLabel/SmeBSB
! …
! …
! vt100/VT100
! tektronix/TopLevelShell
! shellext/VendorShellExt
! tek4014/Tek4014
!
! A more complete list of the widget/class names can be obtained using editres
! to dump a file. Some widget names are not available until the corresponding
! menu has been created.
! These resources reduce space around the menubar, by eliminating padding in
! the enclosing form (Thickness) and the border of the Box which represents
! the menubar widget.
*form.Thickness: 0
*menubar.borderWidth: 0
! If we wanted to eliminate the border of the popup menus, we could do this
! instead, since they are children of the menubar:
!menubarborderWidth: 0
! Eliminate the border of the buttons in the menubar, so the only line around
! the text is for the highlighted button:
MenuButtonborderWidth: 0
! Set a border for the menus to make them simpler to distinguish against the
! vt100 widget:
SimpleMenuborderWidth: 2
! Here is a pattern that is useful for double-clicking on a URL:
!*charClass: 33:48,35:48,37-38:48,43-47:48,58:48,61:48,63-64:48,95:48,126:48
!
! Alternatively,
!*on2Clicks: regex [[:alpha:]]+://([[:alnum:]!#+,./=?@_~-]|(%[[:xdigit:]][[:xdigit:]]))+[/code]
Une idée ?
p’tit up…
Pourquoi ne pas modifier simplement la manière dont tu lances xterm. Par exemple si tu utilises un raccourci clavier, tu lui passes les paramètres adéquats.
Exemple sous fluxbox:
poiuy@debian:~$ grep xterm .fluxbox/keys
Mod1 x :ExecCommand xterm -fa "Monospace" -fs 11 -lc
Salut!
Les grands esprits se rencontrent…
J’ai en effet modifié mon .awesomerc en passant les bons paramètres à la commande de lancement de xterm.
J’ai aussi modifié le bashrc en créant un alias pour qu’il me lance xterm avec les mêmes paramètres.
Mais à vrai dire, je trouve que ce n’est pas très propre et j’aurais bien voulu jouer directement sur la config de xterm pour qu’il garde la bonne taille de caractères peu importe d’où je le lance…
Enfin, c’est pas trop grave, je passe le sujet en “contourné”.
Merci pour ta suggestion
Utilises
$ xterm -fi
pour tester
et
$ xfontsel
pour choisir ta fonte. Puis après tu modifies les lignes
*VT100.utf8Fonts.font2: -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
*VT100.utf8Fonts.font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
*VT100.utf8Fonts.font3: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
*VT100.utf8Fonts.font4: -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1
*VT100.utf8Fonts.font5: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
*VT100.utf8Fonts.font6: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1
du fichier XTerm
Merci fran.b
J’avais essayé xfontsel, mais j’ai pas compris que c’était juste une aide au choix de police
Je suppose que je peux changer uniquement la ligne :
et que c’est celle qui est prise par défaut à l’ouverture d’un xterm ?!
Dès que je rentre de mon cours du soir, j’essaye ça et je vous tiens au courant.