home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / 20688 < prev    next >
Encoding:
Internet Message Format  |  1993-01-01  |  2.9 KB

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