On Fri, 14 Dec 2001, Jimmy Kaplowitz wrote: > On Fri, Dec 14, 2001 at 06:23:16PM +0330, Behdad Esfahbod wrote: > > > - What is the cleanest possible way to get the console (all of the > > > virtual consoles, not just the bootup one) into UTF-8 mode as early as > > > possible? If it matters, I'm using the Rage 128 framebuffer driver on > > > x86 Debian sid. > > > > Maybe putting a ESC%G sequence in your /etc/issue (?). > > This does almost everything necessary; however, it does not do the > equivalent of 'kbd_mode -u', which sets the keyboard to UTF-8 mode. I > could write a wrapper around getty that I call from /etc/inittab, but that > seems ugly...I may end up doing that though
Console utf-8 mode is the only one specific to each tty, the others (font, keymap, keyboard mode) are not set for all ttys, then the only thing you need to set for each one is just ESC%G, you can also put one in your command prompt (in /etc/bashrc, /etc/csh.cshrc, ...), because applications may alter console mode. > It might also be nice to get unicode going on from early in the bootup > process. Should I put something in the rcS.d directory that sets > everything up unicodely (kbd_mode -u plus ESC%G) ? I wonder if that > would work on all my consoles, or if I'd have to wrap getty as above. I > could also just put something in the /etc/profile, which would satisfy > me since I don't use tcsh.. It's just there, /etc/rc.d/init.d/keytable does these: loads the keyboard map, calls /sbin/setsysfont to load the fonts, then you just need to set keyboard in unicode mode there. Also maybe all keyboard material should go in something like /sbin/setsyskeyb, to allow one to run it to get system's default keyboard. > I guess I was just asking what the best was. > > Thank you for your suggestion, though; it's a good one. [snip] > - Jimmy Kaplowitz > [EMAIL PROTECTED] -- Behdad 24 Azar 1380, 2001 Dec 15 [Finger for Geek Code] -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
