home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / openloo / 4552 < prev    next >
Encoding:
Text File  |  1992-11-17  |  2.6 KB  |  71 lines

  1. Newsgroups: comp.windows.open-look
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
  3. From: etxmesa@eos.ericsson.se (Michael Salmon)
  4. Subject: Re: cmdtool, shelltool, and korn shell
  5. Message-ID: <1992Nov18.075950.13770@ericsson.se>
  6. Sender: news@ericsson.se
  7. Nntp-Posting-Host: eos6c02.ericsson.se
  8. Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
  9. Organization: Ericsson Telecom AB
  10. References:  <1ebeu0INNiaf@transfer.stratus.com>
  11. Date: Wed, 18 Nov 1992 07:59:50 GMT
  12. Lines: 57
  13.  
  14. In article <1ebeu0INNiaf@transfer.stratus.com>, waisnor@norland.diag.stratus.com (Robert Waisnor) writes:
  15. |> I wonder if someone could tell me why my korn shell command line editor will
  16. |> not function while running in a cmdtool window.  I've got VI and VISUAL set
  17. |> right.  But the escape key is not being interpreted by the shell.  A shelltool
  18. |> window works ok.  Also, can I change the title bar dynamically (display my 
  19. |> current working directory)?????
  20.  
  21. Both the questions are familiar to tcsh users, this is from the faq for
  22. tcsh:
  23.  
  24. 6.  I am using SunView/OpenWindows and editing is screwed up. In 
  25.     particular my arrow keys and backspace don't work right. What 
  26.     am I doing wrong?
  27.  
  28.     Well, cmdtool tries to do its own command line editing and the
  29.     effect you get is one of using an editor inside an editor. Both
  30.     try to interpret the arrow key sequences and cmdtool wins since
  31.     it gets them first. The solutions are in my order of preference:
  32.  
  33.         1 Don't use suntools
  34.         2 Use shelltool instead of cmdtool.
  35.         3 Unset edit in tcsh.
  36.  
  37. I also recomend using xterm, IMHO superior in every way. As for the
  38. setting of the title bar, here is a cat -e f my .cshrc, I believe that
  39. you will need to convert the aliases, the precmd alias is executed
  40. before every command and the $? construct is true if the variable is
  41. defined:
  42.  
  43. if ( $?term ) then$
  44.     switch ( $term )$
  45.         case xterm :$
  46.             alias precmd    'echo -n "^[]2;$PWD^G^[]1;${HOST}:${cwd:t}^G"'$
  47.             alias Header    'echo -n "^[]2;\!*^G"'$
  48.             alias Iheader   'echo -n "^[]1;\!*^G"'$
  49.             breaksw$
  50.         case sun-cmd :$
  51.             alias precmd    'echo -n "^[]l$PWD^[\^[]L${HOST}:${cwd:t}^[\"'$
  52.             alias Header    'echo -n "^[]l\!*^[\"'$
  53.             alias Iheader   'echo -n "^[]L\!*^[\"'$
  54.             breaksw$
  55.         default:$
  56.             unalias precmd$
  57.             breaksw$
  58.     endsw$
  59. endif$
  60.  
  61. -- 
  62.  
  63. Michael Salmon
  64.  
  65. #include    <standard.disclaimer>
  66. #include    <witty.saying>
  67. #include    <fancy.pseudo.graphics>
  68.  
  69. Ericsson Telecom AB
  70. Stockholm
  71.