Package: console-cyrillic
Version: 0.9-8
Severity: normal
Tags: patch
I use 512 unicode font. After boot first console is good, but other don't
worked properly. They think they have 256 font (as showed by displayfont).
Simple workaround - open console before changing font. In patch I place
sending ESC sequence before setting font, all work fine.
-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-9-amd64-k8
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Versions of packages console-cyrillic depends on:
ii console-terminus 4.12-1 Fixed-width fonts for fast reading
ii console-tools 1:0.2.3dbs-56 Linux console and font utilities
ii debconf 1.4.30.13 Debian configuration management sy
ii perl-base 5.8.4-8 The Pathologically Eclectic Rubbis
-- debconf information:
* console-cyrillic/switch: No temporary switch
console-cyrillic/abusing_debconf:
* console-cyrillic/fontstyle: Terminus Unicode Normal
* console-cyrillic/ttys: /dev/tty[1-6]
console-cyrillic/change_config: true
* console-cyrillic/fontsize: 14
* console-cyrillic/encoding: UNICODE
* console-cyrillic/bootsetup: true
* console-cyrillic/toggle: Caps Lock
* console-cyrillic/kbdtype: Russian Winkeys
--- /usr/bin/cyr.orig 2005-05-18 15:46:33.180743914 +0400
+++ /usr/bin/cyr 2005-05-18 15:50:17.940842519 +0400
@@ -275,6 +275,23 @@
elsif(/^4$/) {$STYLE = "arab";}
}
+if($VTTYS eq "") {
+ $VTTYS = `tty`;
+}
+
+for my $console (glob $VTTYS) {
+ if (-w $console) {
+ open CONSOLE, ">$console";
+ print CONSOLE "\x{1b}(K";
+ if ($ENCODING eq "unicode") {
+ print CONSOLE "\x{1b}%G";
+ } else {
+ print CONSOLE "\x{1b}%@";
+ }
+ close CONSOLE;
+ }
+}
+
if ($FONTFILE eq "") {
&stylesize($STYLE, $SIZE);
} else {
@@ -292,29 +309,12 @@
" $verbose");
}
-if($VTTYS eq "") {
- $VTTYS = `tty`;
-}
-
if ($ENCODING eq "unicode") {
&execute ("kbd_mode -u");
} else {
&execute ("kbd_mode -a");
}
-for my $console (glob $VTTYS) {
- if (-w $console) {
- open CONSOLE, ">$console";
- print CONSOLE "\x{1b}(K";
- if ($ENCODING eq "unicode") {
- print CONSOLE "\x{1b}%G";
- } else {
- print CONSOLE "\x{1b}%@";
- }
- close CONSOLE;
- }
-}
-
&execute ("loadkeys ${KEYMAPDIR}/$LAYOUT-$ENCODING.kmap $verbose");
if ("$OPTIONS" ne "") {
&execute ("loadkeys ${KEYMAPDIR}/option-clear.kmap $verbose");