tramp-devel
[Top][All Lists]
Advanced

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

Re: Tramp mosh method


From: Ted Zlatanov
Subject: Re: Tramp mosh method
Date: Mon, 19 Nov 2012 10:37:23 -0500
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

On Mon, 19 Nov 2012 16:14:19 +0100 Michael Albinus <address@hidden> wrote: 

>> What can we do?  Could the escape sequence be filtered out?

MA> Maybe using term-mode or comint-mode (which filters ansi colors) in the
MA> connection buffer. I haven't started yet an implementation, but it could
MA> also fix some problems we have with colorized prompts and alike on the
MA> remote side, which are reported on the tramp-devel list from time to time.

MA> Would you like to work on this?

Yes, but last time I tried to grok tramp's internals, it took me a long
time.  Can you give me a function stub, which I will fill in, to do
generic filtering of process data before Tramp's handlers see it?  If
it's a simple pipe function, I can write the code to filter ANSI
sequences out.  I think it should simply be

(defun tramp-io-filter data &optional term &rest options)

Where DATA is the string, and TERM defaults to something minimal like
vt100.

I'd rather not rely on external code for this because we need to be very
flexible, handling unexpected sequences and terminal bugs in the
future.  I hope you agree.

Ted



reply via email to

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