DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th April 2020
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default Question about spleen - the default console font

Running OpenBSD 6.6 on an old ThinkPad X220.

If I do Control+Alt+F2 and start using Newsboat to read RSS feeds, certain chacacters (specifically apostrophes and quotation marks) show as the letter a under ^.

If spleen is the default font shouldn't these characters show correctly or is this a problem with newsboat ad has nothing to do with spleen?

Thanks
Reply With Quote
  #2   (View Single Post)  
Old 27th April 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

I have an X220 and am not seeing this problem. It could be because I'm running -current, or it could be because I've booted via EFI/GPT which uses the efifb(4) frame buffer in console mode, or it could be because my environment has LC_CTYPE=en_US.UTF-8

Last edited by jggimi; 27th April 2020 at 04:39 PM. Reason: added LC_CTYPE
Reply With Quote
  #3   (View Single Post)  
Old 27th April 2020
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default

I'm running -release. I think -current is beyond my capabilities at the moment.

I've got LC_CTYPE=en_US-UTF-8 in ~/.kshrc.
BiOS gives me a choice of UEFI or legacy; I have it set to UEFI

Doing dmesg | grep efifb:

efifb at mainbus0 not configured.

Could my problem be related to inteldrm and if so is there any work-around?

Thanks
Reply With Quote
  #4   (View Single Post)  
Old 27th April 2020
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Quote:
Originally Posted by stanl View Post
I've got LC_CTYPE=en_US-UTF-8 in ~/.kshrc.
I notice this has a dash '-' after US whereas I think it should be a dot '.' as indicated by jggimi. I mention this on the off chance it's not a typo in your post, and might be the problem.
Reply With Quote
  #5   (View Single Post)  
Old 28th April 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Quote:
Originally Posted by stanl View Post
I'm running -release. I think -current is beyond my capabilities at the moment.
6.7-release is expected on or about May 1.
Quote:
Doing dmesg | grep efifb:

efifb at mainbus0 not configured.
Same as me.
Quote:
Could my problem be related to inteldrm and if so is there any work-around?
You can configure the kernel to disable the inteldrm driver, but I doubt you would be pleased with the results. Most likely, if your LC_CTYPE is incorrectly provisioned as IdOp noted, correcting it should solve the problem.
Reply With Quote
  #6   (View Single Post)  
Old 28th April 2020
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default

LC_CTYPE error was just a typo. It is correct in ~/.kshrc.

I will upgrade when 6.7 comes out and see if anything changes.
Thanks to both of you for taking the time to reply. I do appreciate it.
Reply With Quote
  #7   (View Single Post)  
Old 28th April 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Here's how to experiment with a disabled inteldrm(4) driver:
  1. At the boot> prompt, enter "-c" to enter the User Kernel Configurator during boot.
  2. At the first UKC> prompt, enter "disable inteldrm"
  3. At the second UKC> prompt, enter "quit". The OS boot will continue without the inteldrm(4) driver provisioned.
If you like the results, you can make them permanent. See the KERNEL MODIFICATION section of the config(8) man page. Note that this will disable kernel reordering, and will need to be performed again after any future upgrades or any kernel patches installed via syspatch(8).
Reply With Quote
  #8   (View Single Post)  
Old 28th April 2020
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 305
Default

I have the opposite scenario.

I do not have LC_CTYPE set to en_US.UTF-8 on the console and it displays correctly.

If I do set LC_CTYPE, that's when it shows the same incorrect characters as the OP.

I don't set that varible until I start X.
Reply With Quote
  #9   (View Single Post)  
Old 30th April 2020
ip6ix's Avatar
ip6ix ip6ix is offline
Fdisk Soldier
 
Join Date: Sep 2017
Posts: 66
Default

What is the value of the $TERM environment variable?

I had the same problem. Setting $TERM to wsvt25 solved the problem for me:

Code:
$ TERM=wsvt25; export TERM
(For some reason it was originally set to vt220).
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'
Reply With Quote
Old 30th April 2020
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default

Setting TERM to wsvt25 gives me color in the console. It does nothing for my original problem unfortunately.
Reply With Quote
Old 2nd May 2020
Prevet Prevet is offline
Shell Scout
 
Join Date: Oct 2017
Posts: 84
Default

This worked for me with tmux. tmux was displaying '?' instead of vertical lines. It also gives me color.

In my .xsession I have this:
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_ALL=en_US.UTF-8
export LANG LC_CTYPE LC_ALL

My TERM variable was set so I commented it out. I think this change fixed the man pages where they would get messed up if I pressed page up/page down.

And I followed this advice from eduol to fix the question mark issue:

https://www.reddit.com/r/openbsd/com..._console_font/

"Edit /etc/ttys replacing vt220 by pccon0 and reboot to solve the question marks problem."

His sed command didn't work (perhaps it is a GNU sed command). So use your favorite editor, and back up the old file in case.

I have a question if you don't mind. Is it possible to go back to X Windows after switching to the console with Control+Alt+F2, or do you have to reboot? Perhaps I should just type cwm.

Last edited by Prevet; 2nd May 2020 at 06:56 AM.
Reply With Quote
Old 2nd May 2020
ip6ix's Avatar
ip6ix ip6ix is offline
Fdisk Soldier
 
Join Date: Sep 2017
Posts: 66
Default

Quote:
Originally Posted by Prevet View Post
I have a question if you don't mind. Is it possible to go back to X Windows after switching to the console with Control+Alt+F2, or do you have to reboot? Perhaps I should just type cwm.
No don't do that. Usually X11 runs on vt05 (see the setting in /etc/X11/xenodm/Xservers).
Simply press Control+Alt+F5 to get back to X.
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
spleen as console font stanl OpenBSD General 7 29th October 2019 03:13 AM
How To: Terminus font in console Mike-Sanders FreeBSD General 5 7th July 2015 03:06 PM
Gnome Default Font woomia FreeBSD General 1 8th April 2011 05:09 PM
What is the default font for terminal? guitarscn OpenBSD General 4 28th December 2010 06:38 PM
change default font of the X rex FreeBSD General 2 26th October 2008 05:54 PM


All times are GMT. The time now is 10:03 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick