statically linked motif apps. & backspace

statically linked motif apps. & backspace

Post by Sven Gegg » Fri, 17 Feb 1995 07:09:55



Hello,

the subject line says all why is my BACKSPACE not working with
staticaly linked Motif programs like Mosaic and Xftp?
I probably just have to change recources ?

Thanks for hints

Sven

 
 
 

statically linked motif apps. & backspace

Post by Hunter Andreas Wa » Sun, 19 Feb 1995 23:34:27


        Please either post the response to this question, or
email me your answer also. thanx!
--
        "Pananoids are people, too; they have their own
        problems.  It's easy to criticize, but if           Hunter Ware

                                D. J. Hicks

 
 
 

statically linked motif apps. & backspace

Post by Pat Lyn » Wed, 22 Feb 1995 02:17:36


: Hello,

: the subject line says all why is my BACKSPACE not working with
: staticaly linked Motif programs like Mosaic and Xftp?
: I probably just have to change recources ?

: Thanks for hints

: Sven

Try:

  xmodmap -e "keycode 22 = BackSpace"

 
 
 

statically linked motif apps. & backspace

Post by Craig Groesch » Wed, 22 Feb 1995 05:21:42




>the subject line says all why is my BACKSPACE not working with
>staticaly linked Motif programs like Mosaic and Xftp?
>I probably just have to change recources ?

xmodmap -e "keycode 22 = BackSpace"

I found I had the same problem: The backspace key would not work
in text boxes; I had to use the arrow keys and the delete key
as a work around.  Here is how to debug and fix the problem:

First, run xev.  Move the pointer into the window,
and press backspace.  This is what I got:

KeyPress event, serial 13, synthetic NO, window 0x2c00001,
    root 0x29, subw 0x0, time 3380287211, (34,118), root:(284,168),
    state 0x0, keycode 22 (keysym 0xffff, Delete), same_screen YES,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    XLookupString gives 1 characters:  "

Note that the server is taking the keycode for the backspace key
and generating the Delete keysym.  To fix this I put the following line
in my ~/.Xmodmap file:

keycode 22 = BackSpace

To have this take effect immediately, run

xmodmap -e "keycode 22 = BackSpace"

(I also found I had to restart Mosaic.)
After doing this, xev reports this for the backspace:

KeyPress event, serial 13, synthetic NO, window 0x2c00001,
    root 0x29, subw 0x0, time 3380287211, (34,118), root:(284,168),
    state 0x0, keycode 22 (keysym 0xff08, BackSpace), same_screen YES,
    XLookupString gives 1 characters:  "

All this is explained better in Appendix D of the O'Reilly X Administrator's
Guide.
--

"Do not play this piece fast.  It is never right to play Ragtime fast." Joplin

 
 
 

statically linked motif apps. & backspace

Post by David Bo » Thu, 23 Feb 1995 04:50:23




>Hello,

>the subject line says all why is my BACKSPACE not working with
>staticaly linked Motif programs like Mosaic and Xftp?
>I probably just have to change recources ?

>Thanks for hints

>Sven

        I believe what you need is an XKeysymDB file with the
correct Motif keysyms defined. Here are the entries from the
XKeysymDB on my Sun at work and if I am remembering correctly
these should work under Linux as well.

osfCopy                 :1004FF02
osfCut                  :1004FF03
osfPaste                :1004FF04
osfBackTab              :1004FF07
osfBackSpace            :1004FF08
Backspace               :1004FF08
osfClear                :1004FF0B
osfEscape               :1004FF1B
osfAddMode              :1004FF31
osfPrimaryPaste         :1004FF32
osfQuickPaste           :1004FF33
osfPageLeft             :1004FF40
osfPageUp               :1004FF41
osfPageDown             :1004FF42
osfPageRight            :1004FF43
osfActivate             :1004FF44
osfMenuBar              :1004FF45
osfLeft                 :1004FF51
osfUp                   :1004FF52
osfRight                :1004FF53
osfDown                 :1004FF54
osfEndLine              :1004FF57
osfBeginLine            :1004FF58
osfEndData              :1004FF59
osfBeginData            :1004FF5A
osfPrevMenu             :1004FF5B
osfNextMenu             :1004FF5C
osfPrevField            :1004FF5D
osfNextField            :1004FF5E
osfSelect               :1004FF60
osfInsert               :1004FF63
osfUndo                 :1004FF65
osfMenu                 :1004FF67
osfCancel               :1004FF69
osfHelp                 :1004FF6A
osfSelectAll            :1004FF71
osfDeselectAll          :1004FF72
osfReselect             :1004FF73
osfExtend               :1004FF74
osfRestore              :1004FF78
osfDelete               :1004FFFF

--
David W. Boyd                UUCP:     uunet!sparky!dwb

1404 Ft. Crook Rd. South     Phone:    (402) 291-8300
Bellevue, NE. 68005-2969     FAX:      (402) 291-4362
I survived - Seoul Sea of Fire Tour 94

 
 
 

statically linked motif apps. & backspace

Post by Gerd Raus » Sat, 25 Feb 1995 01:15:13


    Craig> xmodmap -e "keycode 22 = BackSpace"

    Craig> I found I had the same problem: The backspace key would not work
    Craig> in text boxes; I had to use the arrow keys and the delete key
    Craig> as a work around.  Here is how to debug and fix the problem:

In case you don't want to map your key to BackSpace,
put the following into your ~/.motifbind file:
-----%<-----%<-----%<-----%<-----%<-----%<-----%<-----%<-----%<-----
osfCancel:<Key>Escape
osfLeft:<Key>Left
osfUp:<Key>Up
osfRight:<Key>Right
osfDown:<Key>Down
osfEndLine:<Key>End
osfBeginLine:<Key>Home
osfPageUp:<Key>Prior
osfPageDown:<Key>Next
osfBackSpace:<Key>Delete
#osfDelete:<Key>Delete
osfInsert:<Key>Insert
osfAddMode:Shift<Key>F8
osfHelp:<Key>F1
osfMenu:Shift<Key>F10
osfMenuBar:<Key>F10
osfSelect:<Key>Select
osfActivate:<Key>KP_Enter
osfClear:<Key>Clear
osfUndo:<Key>Undo
-----%<-----%<-----%<-----%<-----%<-----%<-----%<-----%<-----%<-----
--
Don't let the ".se" fool you

____/|  Gerd Rausch
\ o.O|
 =(_)=  voice: +49-2407-575-353