Friday, November 8, 2013

Re: Backspace doesn't work with customized keyboard

On 08/11/13 12:31, Laurent Van Eesbeeck wrote:
> Hi all!
>
> My case is particular and probably unique:
> I'm on Linux Mint 14 and use a customized Dvorak keyboard layout
> and I've remapped Backspace to the TAB key and Tab to the 3 key.
> (see http://bepo.fr/wiki/Utilisateur:Lawrent#Disposition_compl.C3.A8te.2C_encore_en_cours_de_changements for my complete layout.)
> My keyboard is remapped with xkb.
>
> My problem is: when I press 3 to TAB a line,
> my TAB key doesn't react as a backspace anymore
> (pressing it has no effect anymore).
> This only happens in a terminal (i.e: with vim and not gvim).
>
> Does anyone know how to solve this?
>
If it only happens within a terminal, it could be at the level of how
your terminal interacts with the X server. In particular, some "strange"
keycodes are perhaps ignored by the terminal, or treated by it as
terminal control sequences, which (in the latter case) means that not
only they aren't passed to the program running in the terminal (Vim /en
l'occurence/), they additionally modify the terminal's behaviour.

IIUC, the data flow is as follows:

<keyboard> → <X11> → <terminal> → <program (Vim)> → <terminal> → <X11> →
<display>

and I suspect some weirdness near the second arrow from left in this
diagram.

Which terminal are you using, BTW? Do you see the same thing in a
different terminal? xterm, konsole, mlterm, gnome-terminal, /on n'a que
l'embarras du choix/… And of course, xkb modmaps have no effect on the
Linux text console (there are usually six of them usable for login;
reach them by Ctrl-Alt-F1 to Ctrl-Alt-F6; come back to X11 by Ctrl-Alt-F7).

And finally, the page with several sections each having its own separate
horizontal scrollbar is impractical to watch in the default "Bepo" skin
of that wiki. To overcome this problem, I recommend the following:
1. Create an account;
2. Go to the Preferences page;
3. Select a different skin (I chose "Standard").

This gives a much wider display space to the illustrations (in
particular, the keyboard layouts become visible without scrolling) and
allows scrolling the xkb map script with the browser's horizontal
scrollbar (which is never scrolled out of sight) rather than with the
script block's own horizontal scrollbar (which is).


Best regards,
Tony.
--
Really heard in court in the U.S.A.:
Q.: The younger man, the 20-year one, what's his age?
A.: 20, just like your I.Q.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: