On Fri, 14 Dec 2001, Jimmy Kaplowitz wrote: > On Sat, Dec 15, 2001 at 12:52:30AM +0330, Behdad Esfahbod wrote: > > 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. > > Well, I do know that with framebuffer the font at least does have to > be set for each tty, and doing it once doesn't work. That's why I > mentioned that I was using the framebuffer. I believe this is not true > for keymap at least. What would probably be the best thing for me to do > is put the following in my ~/.bash_profile or in /etc/profile:
Ok, I didn't know this just because I don't use framebuffer :-). > if [ test to see if I'm on the console ]; then > unicode_start > fi > > And something in the equivalent logout file to undo it. Can anyone > suggest the most appropriate test, and also the proper way to deal with > incoming ssh connections, which I make quite frequently? The best is to see if the output is going to tty or not, you can check your terminal with 'tty' command. > ... > Nope. You're thinking Red Hat, not Debian. /etc/init.d/keymap.sh sets > the keymap, and /etc/init.d/console-screen.sh sets the font. I don't > want to modify the system-provided scripts, so that upgrades of the > package that provides those files won't force me to merge the > differences by hand, when it's not strictly necessary. Therefore I can > add my own init.d script. Also, /sbin is for Debian to manage - I would > put local scripts of that nature in /usr/local/sbin (or I might package > them as Debian packages ... not so unlikely actually). Ok, I was thinking to make redhat 8.0 do that ;-), and debian's next release, ... > - Jimmy Kaplowitz > [EMAIL PROTECTED] / [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/
