diff options
Diffstat (limited to 'chapter07/console.xml')
-rw-r--r-- | chapter07/console.xml | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/chapter07/console.xml b/chapter07/console.xml index 3db1f955a..553f27473 100644 --- a/chapter07/console.xml +++ b/chapter07/console.xml @@ -38,23 +38,24 @@ arguments for these programs. Once you decided, create the configuration file with the following command:</para> -<screen><userinput>cat >/etc/sysconfig/console <<"EOF"</userinput> -KEYMAP="<emphasis>arguments for loadkeys</emphasis>" -FONT="<emphasis>arguments for setfont</emphasis>" -<userinput>EOF</userinput></screen> +<screen><userinput>cat >/etc/sysconfig/console <<"EOF" +KEYMAP="<replaceable>[arguments for loadkeys]</replaceable>" +FONT="<replaceable>[arguments for setfont]</replaceable>" +EOF</userinput></screen> <para>E.g., for Spanish users who also want to use the Euro character (accessible by pressing Alt+E), the following settings are correct:</para> -<screen><userinput>cat >/etc/sysconfig/console <<"EOF"</userinput> +<screen><userinput>cat >/etc/sysconfig/console <<"EOF" KEYMAP="es euro" FONT="lat9-16 -u iso01" -<userinput>EOF</userinput></screen> +EOF</userinput></screen> <note><para>The FONT line above is correct only for the ISO-8859-15 character set. If you prefer ISO-8859-1 and therefore use a pound sign instead of Euro, the correct FONT line is:</para> + <screen><userinput>FONT="lat1-16"</userinput></screen></note> <para>If the KEYMAP or FONT variable is not set, the @@ -63,17 +64,17 @@ program.</para> <para>In some keymaps, the Backspace and Delete keys send characters different form ones in the default keymap built into the kernel. -This confuses some applications, e.g. <application>Emacs</application> +This confuses some applications, e.g., <application>Emacs</application> displays its help (instead of erasing the character before the cursor) when you press Backspace. To check if your keymap is affected (this works only for i386 keymaps):</para> -<screen><userinput>zgrep '\W14\W' /path/to/your/keymap</userinput></screen> +<screen><userinput>zgrep '\W14\W' <replaceable>[/path/to/your/keymap]</replaceable></userinput></screen> <para>If you see that keycode 14 is Backspace and not Delete, create the following keymap snippet to fix this issue:</para> -<screen><userinput>mkdir -p /etc/kbd & & cat >/etc/kbd/bs-sends-del <<"EOF"</userinput> +<screen><userinput>mkdir -p /etc/kbd & & cat >/etc/kbd/bs-sends-del <<"EOF" keycode 14 = Delete Delete Delete Delete alt keycode 14 = Meta_Delete altgr alt keycode 14 = Meta_Delete @@ -81,14 +82,14 @@ altgr alt keycode 14 = Meta_Delete altgr control keycode 111 = Boot control alt keycode 111 = Boot altgr control alt keycode 111 = Boot -<userinput>EOF</userinput></screen> +EOF</userinput></screen> <para>Then tell the <command>console</command> script to load this snippet after the main keymap:</para> -<screen><userinput>cat >>/etc/sysconfig/console <<"EOF"</userinput> +<screen><userinput>cat >>/etc/sysconfig/console <<"EOF" KEYMAP_CORRECTION="/etc/kbd/bs-sends-del" -<userinput>EOF</userinput></screen> +EOF</userinput></screen> <para>If you decided to compile your keymap directly into the kernel later on in <xref |