home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 19048 < prev    next >
Encoding:
Internet Message Format  |  1993-01-01  |  3.1 KB

  1. Path: sparky!uunet!wupost!spool.mu.edu!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: bane@vtx.ma.man.ac.uk (Michael!)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Re: a few dumb questions from a beginner
  5. Message-ID: <1993Jan2.041802.1892@sm.sony.co.jp>
  6. Date: 2 Jan 93 04:18:02 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: Magic Michael's Mushroom Factory.
  10. Lines: 72
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: 1 Jan 93 17:37:48 GMT
  14. Message-Id: <7104@m1.cs.man.ac.uk>
  15. Newsgroups: comp.windows.x
  16. References: <1992Dec30.183600.15291@linus.mitre.org>
  17. Sender: xpert-request@expo.lcs.mit.edu
  18.  
  19. In article <1992Dec30.183600.15291@linus.mitre.org>, jfjr@mbunix.mitre.org (Freedman) writes:
  20. |> 
  21. |>   Please excuse me if these questions are dumb (BTW I did RTFM but it
  22. |> was less than helpful. I am running X11R5 on Sun Sparcstations running
  23. |> SunOs 4.1.x.  According to the X-Window Users Guide Iam supposed to be
  24. |> able to issue a command like so:
  25. |> 
  26. |>   xterm -e "do_something & 
  27. |> 
  28. |>  This is supposed to fire up an xterm window in which to run said
  29. |> command and close up when its finished. It works on some other Suns I have
  30. |> access to but not the ones I care about. On those the window opens and
  31. |> a message appears "xterm: can't execvp do_something". I believe I have
  32. |> something configured wrong but I can't figure out what.
  33.  
  34.  
  35. It might depend on what u`re trying to do, what the default $PATH is and the shell
  36. that the xterm will execute. Also, why are you using  "? Finally, have you an
  37. .xtermrc and what are its contents?
  38.  
  39.  
  40.  
  41. |> 
  42. |> second question - what can I do to emacs so that it recognizes the
  43. |> arrow keys in an xterm window? This, I believe is another
  44. |> configuration question. 
  45.  
  46.  
  47. Placing the following in a file, say .Xresource, that I use xrdb -merge .Xresource,
  48. with then makes the arrows work okay for me:
  49.  
  50. *VT100.translations:         #override\
  51.             <Key>Help:        string("HELP? you must be kidding!")\n\
  52.       Ctrl       <Key>Delete:    string(0x1f)\n\
  53.           ~Meta <Key>Up:        string(0x10)\n\
  54.            Meta <Key>Up:        string(0x1B)string("<")\n\
  55.     ~Ctrl ~Meta <Key>Left:        string(0x02)\n\
  56.     ~Ctrl  Meta <Key>Left:        string(0x01)\n\
  57.      Ctrl ~Meta <Key>Left:        string(0x1b)string("b")\n\
  58.      Ctrl  Meta <Key>Left:        string(0x1b)string("a")\n\
  59.     ~Ctrl ~Meta <Key>Right:        string(0x06)\n\
  60.     ~Ctrl  Meta <Key>Right:        string(0x05)\n\
  61.      Ctrl ~Meta <Key>Right:        string(0x1b)string("f")\n\
  62.      Ctrl  Meta <Key>Right:        string(0x1b)string("e")\n\
  63.           ~Meta <Key>Down:        string(0x0E)\n\
  64.            Meta <Key>Down:        string(0x1B)string(">")\n\
  65.             <Key>R4:        string(0x1B)string("=")\n\
  66.             <Key>R5:        string(0x1B)string(".")\n\
  67.             <Key>KP_Multiply:    string(0x1B)string("*")\n\
  68.             <Key>KP_Add:    string(0x1B)string(0x1B)\n\
  69.             <Key>KP_Subtract:    string("cd -\n")\n\
  70.             <Key>R6:        string(0x1B)string("#")\n\
  71.             <Key>Break:        string(0x1B)string(" ")\n\
  72.             <Key>KP_Enter:    string(0x0F)\n\
  73.  
  74.  
  75. (actually there's other things here too!)
  76.  
  77. then I can enter:
  78. (neumann)WORK$ xterm -e emacs -nw
  79. and I get a new xterm window running emacs in which the arrow keys work
  80.  
  81.  
  82. E-mail me if you have any more problems.
  83.  
  84. Michael
  85.