home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.open-look
- 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
- From: etxmesa@eos.ericsson.se (Michael Salmon)
- Subject: Re: cmdtool, shelltool, and korn shell
- Message-ID: <1992Nov18.075950.13770@ericsson.se>
- Sender: news@ericsson.se
- Nntp-Posting-Host: eos6c02.ericsson.se
- Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
- Organization: Ericsson Telecom AB
- References: <1ebeu0INNiaf@transfer.stratus.com>
- Date: Wed, 18 Nov 1992 07:59:50 GMT
- Lines: 57
-
- In article <1ebeu0INNiaf@transfer.stratus.com>, waisnor@norland.diag.stratus.com (Robert Waisnor) writes:
- |> I wonder if someone could tell me why my korn shell command line editor will
- |> not function while running in a cmdtool window. I've got VI and VISUAL set
- |> right. But the escape key is not being interpreted by the shell. A shelltool
- |> window works ok. Also, can I change the title bar dynamically (display my
- |> current working directory)?????
-
- Both the questions are familiar to tcsh users, this is from the faq for
- tcsh:
-
- 6. I am using SunView/OpenWindows and editing is screwed up. In
- particular my arrow keys and backspace don't work right. What
- am I doing wrong?
-
- Well, cmdtool tries to do its own command line editing and the
- effect you get is one of using an editor inside an editor. Both
- try to interpret the arrow key sequences and cmdtool wins since
- it gets them first. The solutions are in my order of preference:
-
- 1 Don't use suntools
- 2 Use shelltool instead of cmdtool.
- 3 Unset edit in tcsh.
-
- I also recomend using xterm, IMHO superior in every way. As for the
- setting of the title bar, here is a cat -e f my .cshrc, I believe that
- you will need to convert the aliases, the precmd alias is executed
- before every command and the $? construct is true if the variable is
- defined:
-
- if ( $?term ) then$
- switch ( $term )$
- case xterm :$
- alias precmd 'echo -n "^[]2;$PWD^G^[]1;${HOST}:${cwd:t}^G"'$
- alias Header 'echo -n "^[]2;\!*^G"'$
- alias Iheader 'echo -n "^[]1;\!*^G"'$
- breaksw$
- case sun-cmd :$
- alias precmd 'echo -n "^[]l$PWD^[\^[]L${HOST}:${cwd:t}^[\"'$
- alias Header 'echo -n "^[]l\!*^[\"'$
- alias Iheader 'echo -n "^[]L\!*^[\"'$
- breaksw$
- default:$
- unalias precmd$
- breaksw$
- endsw$
- endif$
-
- --
-
- Michael Salmon
-
- #include <standard.disclaimer>
- #include <witty.saying>
- #include <fancy.pseudo.graphics>
-
- Ericsson Telecom AB
- Stockholm
-