Function: tramp-action-terminal

tramp-action-terminal is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-action-terminal PROC VEC)

Documentation

Tell the remote host which terminal type to use.

The terminal type can be configured with tramp-terminal-type.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-action-terminal (_proc vec)
  "Tell the remote host which terminal type to use.
The terminal type can be configured with `tramp-terminal-type'."
  (tramp-message vec 5 "Setting `%s' as terminal type." tramp-terminal-type)
  (with-current-buffer (tramp-get-connection-buffer vec)
    (tramp-message vec 6 "\n%s" (buffer-string)))
  (tramp-send-string vec (concat tramp-terminal-type tramp-local-end-of-line))
  t)