Re: FVWM: Strange problems with xterm and fvwm2

From: Vikas Agnihotri <VikasA_at_att.com>
Date: Tue, 14 Jul 1998 10:40:26 -0400

On Tue, Jul 14, 1998 at 09:59:09AM +0100, Pete Forman wrote:

> > Is this not clear? Me thinks Fvwm2 is "resetting the prefix".

> One point that I was trying to put across is that this ought
> controlled by the xterm. It is receiving an event when a key is
> pressed and is responsible for translating that into an action.

Thats what I thought too.

> Is there a problem when iconifying with the mouse rather than F8?
No.

> Is there a problem if the xterm is started with -iconic?
Well, when I de-iconify it and F8 to iconify it again, the problem appears.

> Do other window managers behave the same?
No.

Aaaargh! Just hit me. I think I have too "strict" a set of translations.
Gotta relax them some.

I have the following as part of the VT100 translation table:

     !Ctrl<Key>Right: string(0x1b) string("Oc") \n\
     None<Key>Right: string(0x1b) string("OC") \n\

Frankly, I dont completely understand this. I think what this is saying is:

1. When the Ctrl modifier ONLY and the <Right> key is pressed, send ^[Oc
2. When the <Right> key and NO modifiers are pressed, send ^[OC

My Fvwm2 command is
Key F8 A N2 Iconify 1
which says
"when the F8 key is pressed anywhere and either no modifiers or Modifier2
(NumLock in my case) are active, iconify the window"

The reason I gave the Key command as I did is that I frequently have the
Numlock key pressed since I use the numeric keypad. So, I wanted the
Iconify to work if either No modifiers **or** the numLock was active.
Actually, I dont really care about the other modifiers also. So, I guess I
need to give 'A' for 'any modifier', right? (instead of N2).

So, when the NumLock is active, my VT100 translation table has no entry for
<Right> and hence it defaults to ^[[C.

Questions:


How do I specify the translation line to say what the 'Key' line says i.e.

 (None OR NumLock) + <Key> Right: .......

more generally, what is the syntax for this translation line? Where can I
read more about this? I read all the man pages, but they dont talk about
the syntax for this line.

Surprisingly, the mouse is still screwed up. Consider:

o Turn off NumLock
o vim
o <F1> for help
o Click somewhere and the cursor moves there. Fine.
o Turn on NumLock
o Mouse clicks no longer move the cursor!

Thanks for staying with me, Pete.

Vikas
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Tue Jul 14 1998 - 09:42:18 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST