NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Accented characters console/shell



Hi All,
     I hope to have carefully follow the instruction but I get
alway the following messages when I try to start mlterm-fb:

Apr  8 12:01:12[949] Load /usr/X11R7/lib/X11/fonts/misc/8x16.pcf.gz (id 61)
Apr  8 12:01:12[949] Failed to open pty
Apr  8 12:01:12[949] Unable to open screen.

Do you have an idea of the reason?

best regards,

----------------------/etc/wsconf-------------------------------------------
localhost# cat /etc/wscons.conf

#       $NetBSD: wscons.conf,v 1.19 2011/07/22 19:06:23 christos Exp $
#
# workstation console configuration

# fonts to load
#       name    width   height  enc     file
#font   ibm     -       8       ibm     /usr/share/wscons/fonts/vt220l.808

# Note: "pcvt" encoded fonts are only useful with the "*bf" screen types
#  of the "vga" driver. The kernel must be compiled with the option
#  "WSCONS_SUPPORT_PCVTFONTS" turned on. See vga(4).
#font   pcvt    -       -       pcvt    /usr/share/wscons/fonts/vt220h.816
#font   pcvt    -       8       pcvt    /usr/share/wscons/fonts/vt220h.808

# Font for central european languages (ISO 8859-2).
#  Uncomment to load. Needs to be explicitly enabled (see below).
#font   latin2  -       16      iso     /usr/share/wscons/fonts/latin2.816

# screens to create
#       idx     screen  emul
# Screen 0 is already configured as console in most cases.
#  Uncomment if a serial console is used.
#screen 0       -       vt100
screen  1       -       vt100
screen  2       -       vt100
screen  3       -       vt100
screen  4       -       -
screen  5       -       -
#screen 4       80x25bf vt100
# Note: You must uncomment the 'font    ibm' line above to get a useful
#       font for any 50 line screens.
#screen 5       80x50   vt100

#keyboard       auto

# Select a kernel builtin keyboard map by uncommenting the following line and
# altering the country code to your requirements
# (choose from user, us, uk, be, cz, dk, nl, fi, fr, de, gr, hu, it, jp, no,
# pl, pt, ru, es, sv, sf, sg, ua)
# See wsconsctl(8), pckbd(4), ukbd(4) etc. for more details.
encoding sf
#encoding us.swapctrlcaps

# Redefine individual keys from a file containing "keysym" and/or "keycode"
# entries.
# See wsconsctl(8) and /usr/share/wscons/keymaps for more details.
#mapfile /usr/share/wscons/keymaps/pckbd.sv.svascii

# Set arbitrary wscons variable using specified control device
#       ctldev  var             value
#setvar ttyE0   font            ibm
#setvar ttyE1   font            ibm

# Uncomment for ISO 8859-2 support
#setvar ttyE0   font            latin2
#setvar ttyE1   font            latin2
#setvar ttyE2   font            latin2
#setvar ttyE3   font            latin2

# Change keyboard repeat speed to faster settings.
#setvar wskbd   repeat.del1     250
#setvar wskbd   repeat.deln     30
localhost#

-----------------------------------------/etc/ttys----------------------------------
localhost# cat /etc/ttys


#
#       from: @(#)ttys  5.1 (Berkeley) 4/17/89
#       $NetBSD: ttys,v 1.6.36.1 2019/10/28 18:38:36 martin Exp $
#
# name  getty                           type    status          comments
#
console "/usr/libexec/getty Pc"         wsvt25  off secure
constty "/usr/libexec/getty Pc"         wsvt25  off secure
ttyE0   "/usr/libexec/getty Pc"         wsvt25  on secure
ttyE1   "/usr/libexec/getty Pc"         wsvt25  on secure
ttyE2   "/usr/libexec/getty Pc"         wsvt25  on secure
ttyE3   "/usr/libexec/getty Pc"         wsvt25  on secure
ttyE4   "/usr/libexec/getty Pc"         wsvt25  off secure
tty00   "/usr/libexec/getty std.9600"   unknown off secure
tty01   "/usr/libexec/getty std.9600"   unknown off secure
tty02   "/usr/libexec/getty std.9600"   unknown off secure
tty03   "/usr/libexec/getty std.9600"   unknown off secure
tty04   "/usr/libexec/getty std.9600"   unknown off secure
tty05   "/usr/libexec/getty std.9600"   unknown off secure
tty06   "/usr/libexec/getty std.9600"   unknown off secure
tty07   "/usr/libexec/getty std.9600"   unknown off secure
localhost#

On Sun, 5 Apr 2020 11:56:31 +0200
Piotr Meyer <aniou%smutek.pl@localhost> wrote:

> On Sun, Apr 05, 2020 at 11:48:24AM +0200, Martin Husemann wrote:
> > On Sun, Apr 05, 2020 at 11:26:32AM +0200, Pierre Dupond wrote:
> > >       - set the environment variable LANG to iso8859-1 code page (instead of UTF8)
> >
> > Setting LC_CTYPE to something like fr_FR.ISO8859-15 should do it (see
> > /usr/share/locale/ for a list of valid names).
> >
> > Unfortunately the wscons terminal emulation does not do UTF8.
>
> But You can use mlterm for that - there is a short howto available:
> https://www.mail-archive.com/netbsd-users%netbsd.org@localhost/msg10136.html
>
> BTW: I think that search engine on mail-index.netbsd.org has a bug,
> I wasn't able to find mentioned post using them and it wasn't a first
> case.
>
> --
> Piotr 'aniou' Meyer


--
Pierre Dupond <76nemo76%gmx.ch@localhost>


Home | Main Index | Thread Index | Old Index