tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Extend default value of tramp-shell-prompt-pattern?


From: Kai Großjohann
Subject: Extend default value of tramp-shell-prompt-pattern?
Date: Fri, 16 May 2003 16:30:54 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

In some German newsgroups, it has been suggested to extend the default
value of tramp-shell-prompt-pattern to allow an escape sequence at the
end.  And escape sequence appears to look like this usually:

    ESC [ <number> m

Maybe it would be useful to allow more general things, so the
following regexp (in Lisp string notation) might match what we need:

    "\e\\[[0-9;]*."

What do people think?  I know too little about terminal escape
sequences to be able to say.

I think the cleaner solution would be to tell people to frob their
shell init files such that they omit the escape sequences if $TERM is
dumb.  But that solution also requires work from the users, whereas
extending the regexp is something that can be done in the Lisp code
of Tramp.

A potential disadvantage of the regexp solution is that it might make
Tramp more fragile.

Opinions?
-- 
This line is not blank.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]