tcsh - commandline editing does not go back to previous line!
Hi tcsh experts,
When my unix command grows more than one line, the terminal is not
allowing me to go back to 1st line with my left arrow key. It just goes
till the beginning of the 2nd line and stops. So it is very irritating
to see the cursor is stopped in one place inspite I am moving my left
arrow. This makes the life difficult if I have to modify something in
the beginning of my command. :(
I am using CDE on hpux11.0 / dtterm.
Xterm it works good... but I like dtterm better than xterm :)
thanks for any term related settings or tcsh settings one may give..
Manju
Re: tcsh - commandline editing does not go back to previous line!
try,
http://www.google.com/search?hl=en&lr=&safe=off&q=tcsh+comma nd+line+editing
Regards,
Nasir.
Re: tcsh - commandline editing does not go back to previous line!
also
http://unixhelp.ed.ac.uk/shell/cmd2.1.html
Regards,
Nasir.
Re: tcsh - commandline editing does not go back to previous line!
Manju wrote:
> Hi tcsh experts,
>
> When my unix command grows more than one line, the terminal is not
> allowing me to go back to 1st line with my left arrow key. It just goes
> till the beginning of the 2nd line and stops. So it is very irritating
> to see the cursor is stopped in one place inspite I am moving my left
> arrow. This makes the life difficult if I have to modify something in
> the beginning of my command. :(
>
> I am using CDE on hpux11.0 / dtterm.
> Xterm it works good... but I like dtterm better than xterm :)
>
> thanks for any term related settings or tcsh settings one may give..
>
> Manju
>
It works ok with Solaris dtterm and Solaris SUNWtcsh (tcsh 6.10.00).
Look for a Patch (CDE, dtterm, tcsh)!
--
Michael Tosch [at] hp : com
Re: tcsh - commandline editing does not go back to previous line!
"Manju" <amanjun [at] yahoo.com> writes:
> When my unix command grows more than one line, the terminal is not
> allowing me to go back to 1st line with my left arrow key. It just goes
> till the beginning of the 2nd line and stops. So it is very irritating
> to see the cursor is stopped in one place inspite I am moving my left
> arrow. This makes the life difficult if I have to modify something in
> the beginning of my command. :(
>
> I am using CDE on hpux11.0 / dtterm.
> Xterm it works good... but I like dtterm better than xterm :)
>
> thanks for any term related settings or tcsh settings one may give..
By "more than one line", I presume you mean longer than the width of
your terminal window.
My first thought was that you need to configure your terminal emulator
to enable reverse wraparound. However, as it happens I use tcsh in an
xterm window *without* reverse wraparound enabled, and I can move back
and forth just fine.
I think that tcsh's behavior depends on your termcap or terminfo
settings, which it gets through the $TERM environment variable. It
may be that your termcap or terminfo entry doesn't correctly describe
the way your terminal emulator behaves. (In my case, it probably
correctly indicates that it *doesn't* do reverse wraparound, so tcsh
uses other means to achieve the same thing.)
So you might try enabling (or disabling?) reverse wraparound in your
dtterm settings, *or* you might adjust your termcap or terminfo
settings.
The most obvious thing to try is "setenv TERM dtterm", if it isn't
already set that way.
If none of this works, typing control-R to redisplay the line might be
a good workaround.
--
Keith Thompson (The_Other_Keith) kst-u [at] mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.