LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 04-04-2006, 11:44 AM   #1
degoor
LQ Newbie
 
Registered: Apr 2006
Posts: 12

Rep: Reputation: 0
How to compile a NetBSD kernel with a non-standard console font support?


Hello, friends!

I am learning NetBSD 3.0 and I have met with a problem concerning my console's font and encoding.

I need to use Bulgarian CP1251 font in a console. For that I need to compile a kernel with cp1251 console font support.

Can you help me on the matter?

B.T.W. I use a Pentium III 650 Mhz machine.
 
Old 04-05-2006, 03:32 PM   #2
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by degoor
Hello, friends!

I am learning NetBSD 3.0 and I have met with a problem concerning my console's font and encoding.

I need to use Bulgarian CP1251 font in a console. For that I need to compile a kernel with cp1251 console font support.

Can you help me on the matter?

B.T.W. I use a Pentium III 650 Mhz machine.
Have you tried to use wsfontload ?
You don't need to compile the kernel with any support.

Just try:
Code:
wsfontload -N myfont  font.file
wsconsctl -dw font=myfont
This will load the font named "myfont" in the first virtual console ttyE0
 
Old 04-07-2006, 07:11 AM   #3
degoor
LQ Newbie
 
Registered: Apr 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Imitheos, thank you very much!

Code:
wsfontload -N myfont  font.file
wsconsctl -dw font=myfont
That works just fine. The text is displayed correctly with the "cat" command.

Perhaps some adjustments should be made concerning the "vi" editor, because the text is seen in the form of "\x030\x031...". Or is there another tool that makes console editing of non-English text more convenient?
 
Old 04-08-2006, 09:52 AM   #4
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by degoor
Imitheos, thank you very much!

Code:
wsfontload -N myfont  font.file
wsconsctl -dw font=myfont
That works just fine. The text is displayed correctly with the "cat" command.

Perhaps some adjustments should be made concerning the "vi" editor, because the text is seen in the form of "\x030\x031...". Or is there another tool that makes console editing of non-English text more convenient?
Yes I have noticed the same with Greek characters which is the same case as yours.
/usr/bin/vi doesn't work, but elvis,vim work fine. Maybe vi has only 7bit support for compatibility, or maybe it
has an option that changes its behaviour. I haven't searched it because i use elvis.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Font size problem after new kernel compile tgo Slackware 2 01-05-2006 02:21 AM
Kernel 2.6.15-Stable doesn't support 132x60 console? oxleyk Slackware 3 01-04-2006 05:45 PM
Kernel 2.6.5 - how do I get this thing to support higher res console text? xanas3712 Linux - Newbie 4 05-10-2004 02:41 PM
kernel compile ----unable to open console masand Linux - General 3 04-17-2004 10:20 AM
console display problems after kernel compile Mugatu Linux - Software 0 02-26-2004 08:36 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 12:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration