LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   How to compile a NetBSD kernel with a non-standard console font support? (https://www.linuxquestions.org/questions/%2Absd-17/how-to-compile-a-netbsd-kernel-with-a-non-standard-console-font-support-431641/)

degoor 04-04-2006 11:44 AM

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.

imitheos 04-05-2006 03:32 PM

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

degoor 04-07-2006 07:11 AM

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?

imitheos 04-08-2006 09:52 AM

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.


All times are GMT -5. The time now is 06:37 AM.