Re: FVWM: Motif osfCopy in fvwm 2.4.15

From: Dan Espen <dane_at_mk.telcordia.com>
Date: Tue, 11 Feb 2003 21:34:36 -0500

Charles Gagnon <charlesg_at_unixrealm.com> writes:
> I think it is fvwm but maybe I'm explaining wrong.
>
> That application remaps the entire keyboard and mouse functions. So
> inside the application, the Cut/Copy/Paste keys work fine. The
> problem starts when I'm trying to Cut/Copy/Paste from outside (say,
> from an Xterm) to that app.
>
> In normal CDE, the Cut/Copy/Paste keys are mapped to osfCut, osfCopy
> and osfPaste functions. So I select some text somewhere and hit the
> Copy button, I can than go inside the app and hit the paste button
> and it works fine.
>
> When running fvww, those keys are not mapped to anything so of
> course, it doesn't work.
>
> And since the app remaps the entire keyboard layout and mouse
> functions, the middle-mouse-button pasts function does NOT work.
>
> Any ideas?

I'm not sure I understand. Maybe this will help.

The copy key, like any key generates a key code.
Thats a number.

X associates the key code with a keysym.
You can see the key code and the keysym by using
/usr/openwin/demo/xev

just start it up, move the pointer into the window and press the
key.

Motif apps, for some crazy reason, have their own names for
the keys, thats the name "osfCopy", etc.

As far as I know, most Motif apps have a KEYSYMDB that they
use to understand keys.

Heres one line from one of the many KEYSYMDB files on my system:

osfCopy :1004FF02

I think what this is doing is telling the Motif app how to
convert the scan code to the Motif name "osfCopy".

"Normal" x application just use the keysym.

If you are trying to get an XTerm to understand the copy/paste keys,
you need to find out what X resources have been set for the xterm.
Try this in CDE:

appres XTerm

This might show some translations that have been set up so that
XTerm knows how to use a keysym to do a copy.
Look for something like this:

*VT100.Translations: #override ...
        <Key>F16: start-extend() select-end(PRIMARY, CUT_BUFFER0, CLIPBOARD) \n\
        <Key>F18: insert-selection(PRIMARY, CLIPBOARD) \n\

You can put those translations in a file and use
xrdb to load them when you start fvwm.


> On Mon, Feb 10, 2003 at 01:00:05PM -0500, Dan Espen wrote:
> > Charles Gagnon <charlesg_at_unixrealm.com> writes:
> > > It there a way to map the Motif osfCopy and osfPaste functions on
> > > myh keyboard somewhere using fvwm 2.4.15.
> > >
> > > I run fvwm on a Sun running Solaris 8. I have a commercial
> > > application that uses those two funtions. Using dtwm, those
> > > functions are normally mapped to the Copy and Paste key of the Sun
> > > keyboard.
> > >
> > > I'd like to reproduce this in fvwm2. Any ideas?
> >
> > This doesn't have anything to do with Fvwm.
> >
> > Under CDE take a look at the environment variable
> > XKEYSYMDB. Make sure you set it to point at the same file
> > when running Fvwm.
> >
> > I'm pretty sure that will do it for you.
> >
> > --
> > Dan Espen E-mail: dane_at_mk.telcordia.com
>
> --
> Charles Gagnon | My views are my views and they
> http://unixrealm.com | do not represent those of anybody
> charlesg_at_unixrealm.com | but me.
>
> What was the best thing BEFORE sliced bread?
> -- Dennis Miller
> --
> Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
> To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
> message to majordomo_at_fvwm.org.
> To report problems, send mail to fvwm-owner_at_fvwm.org.

-- 
Dan Espen                           E-mail: dane_at_mk.telcordia.com
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue Feb 11 2003 - 20:41:09 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:54 BST