[SOLVED] xterm throw errors with latest terminus-font in latest -current
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! These resources will, as much as possible, configure xterm to look
! like a linux console.
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
XTerm.termName: xterm-new
! Use the more featureful 'xterm-new' terminfo entry.
XTerm.locale: true
! Enable conversion between the locale and utf-8 if necessary.
!XTerm.ptyInitialErase: false
! Set the tty erase setting to match the terminfo/cap definition for
! this terminal type.
!XTerm.backarrowKeyIsErase: true
! Send the erase character when the backarrow key (a.k.a. backspace)
! is pressed.
XTerm.vt100.metaSendsEscape: true
! Send meta-characters as a two-byte sequence prefixed with ESCAPE.
! "XTerm.vt100.eightBitInput: false" is an alternative approach
! but metaSendsEscape has a menu option in the ctrl-button1
! popup menu, allowing the user to turn it off if need be. The
! Linux console and most other terminal emulators do this by default.
XTerm.vt100.bellIsUrgent: true
! Enable urgency hit for Window managers.
XTerm.vt100.renderFont: false
! Use bitmap fonts by default.User can switch to ttyfonts from menu,
! if required.
XTerm.vt100.font: -*-terminus-bold-r-normal-*-20-*-*-*-*-*-iso10646-1
XTerm.vt100.font1: -*-terminus-bold-r-normal-*-12-*-*-*-*-*-iso10646-1
XTerm.vt100.font2: -*-terminus-bold-r-normal-*-14-*-*-*-*-*-iso10646-1
XTerm.vt100.font3: -*-terminus-bold-r-normal-*-16-*-*-*-*-*-iso10646-1
XTerm.vt100.font4: -*-terminus-bold-r-normal-*-20-*-*-*-*-*-iso10646-1
XTerm.vt100.font5: -*-terminus-bold-r-normal-*-24-*-*-*-*-*-iso10646-1
XTerm.vt100.font6: -*-terminus-bold-r-normal-*-32-*-*-*-*-*-iso10646-1
XTerm.vt100.faceName: monospace
XTerm.vt100.faceSize: 14.0
XTerm*Background: rgb:00/00/00
XTerm*Foreground: rgb:aa/aa/aa
XTerm*cursorUnderLine: true
XTerm*cursorBlink: true
XTerm*boldMode: false
XTerm*colorULMode: true
XTerm*colorUL: rgb:00/aa/aa
XTerm*colorBDMode: true
XTerm*colorBD: rgb:ff/ff/ff
! CGA 16-colour palatte:
XTerm*color0: rgb:00/00/00
XTerm*color1: rgb:aa/00/00
XTerm*color2: rgb:00/aa/00
XTerm*color3: rgb:aa/55/00
XTerm*color4: rgb:00/00/aa
XTerm*color5: rgb:aa/00/aa
XTerm*color6: rgb:00/aa/aa
XTerm*color7: rgb:aa/aa/aa
XTerm*color8: rgb:55/55/55
XTerm*color9: rgb:ff/55/55
XTerm*color10: rgb:55/ff/55
XTerm*color11: rgb:ff/ff/55
XTerm*color12: rgb:55/55/ff
XTerm*color13: rgb:ff/55/ff
XTerm*color14: rgb:55/ff/ff
XTerm*color15: rgb:ff/ff/ff
XTerm*charClass: 45-47:48,58:48,64:48
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I just realize than the problem was the encoding setting: in my first post, the Xdefault does not have the encoding setting and in this new Xdefault, the encoding ISO8859-1 does not work and throw the error I posted, but after I changed it to ISO10646 xterm runs again, so maybe there is a problem with new XTerm version and the ISO8859-1 encoding. In my other computer running Slackware64 14.2, XTerm does not have this problem (XTerm version is 325-x86_64-1 and terminus-font version is 4.40-noarch-1) and my previous Xdefaults works fine.
I can confirm I had this problem too. After upgrading current yesterday I couldn't launch xterm or uxterm. The issue was indeed the font settings which I had defined in my .Xresources file.
Quote:
Originally Posted by GazL
Working here, using these settings
GazL, thanks for posting your settings - they worked for me, and I adapted them to my setup. Plus you really captured the classic look.
++
I haven't had a chance to root out the problem, but it seems that using old-school XLFD font settings sorted things out, at least in the case of terminus font.
terminus is a bit-mapped font, so I'm not sure there's much point in trying to render it through the freetype engine. Plus, xterm supports DECDHL (double width/height lines) when using bit-mapped fonts, which is the main reason I configure it the way I do.
After Mon Dec 31 21:33:54 UTC 2018 (xterm-341-x86_64-2.txz) I get "xterm: cannot load font "-*-terminus-bold-r-normal-*-20-*-*-*-*-*-iso10646-1"
" and very small fonts when launching xterm on a Slackware-current box. I don't think I have terminus fonts on cygwin (on windows 10) where my X server runs. mv /etc/X11/app-defaults/XTerm.upstream.default /etc/X11/app-defaults/XTerm fixed it.
maybe try running xfontsel and make sure you have the line for xterm*font set correctly, i have a 1080x1900 monitor which is rather large so i set my fonts large, you might want to set your fonts to a comfortable size for your viewing pleasure
I think that only makes a difference with more recent versions of the Terminus font. BTW, that renaming of the font family is why I've stayed away from those versions for now. There's no noticeable advantage that I can see to them, and it messes up everyone's existing settings.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.