"Dan Mahoney, System Admin" <[email protected]> writes: > Hey all, I've currently got my prompt set like so: > > if ($TERM == "screen") then > #alias precmd 'printf "\033%s%s %s\033\\" "k" "tcsh" "[$HOST]"' > set prompt="%{\ek%}tcsh [$HOST] %{\e\\%}\%" > alias postcmd 'printf "\033%s%s %s %s\033\\" "k" "\!#:0" "\!#:$" > "[$HOST]"' > endif > > what I notice, however, is that there's some "oddness" that the screen > manpage makes vague allusions to. Specifically, when I backspace, > everything gets corrupted, but only some of the time.
This is because the shell assumes that the prompt is as long on-screen as it is in the string. You can fix it with \[ and \] within the prompt string, when using bash. I don't know about tcsh. _______________________________________________ screen-users mailing list [email protected] http://lists.gnu.org/mailman/listinfo/screen-users
