yary <not....@gmail.com> writes:

> ...you can pass information in the TERM environment variable, which is
> always copied (there may be a length limit however). You'll still have
> to make sure that the remote shell doesn't restrict the TERM variable
> to designate a known terminal type. Pass the -t option to ssh if
> you're not starting a remote interactive shell.
>
> env TERM="extra information:$TERM" ssh -t server.example.com 
> 'MYVAR=${TERM%:*}; TERM=${TERM##*:}; export MYVAR; mycommand'

Why shall one do this? Tramp sets the remote TERM environment variable
to "dumb", so you could check it.

If you dislike this value, set variable `tramp-terminal-type' to
whatever you want, at your own risk.

--8<---------------cut here---------------start------------->8---
(let ((tramp-terminal-type "whatever")
      (default-directory "/ssh::"))
  (shell-command-to-string "echo $TERM"))
--8<---------------cut here---------------end--------------->8---

> -y

Best regards, Michael.

_______________________________________________
Tramp-devel mailing list
Tramp-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to