Function: serial-port-is-file-p

serial-port-is-file-p is a byte-compiled function defined in term.el.gz.

Signature

(serial-port-is-file-p)

Documentation

Guess whether serial ports are files on this system.

Return t if this is a Unix-based system, where serial ports are files, such as /dev/ttyS0. Return nil if this is Windows or DOS, where serial ports have special identifiers such as COM1.

Source Code

;; Defined in /usr/src/emacs/lisp/term.el.gz
;;; Serial terminals
;; ===========================================================================
(defun serial-port-is-file-p ()
  "Guess whether serial ports are files on this system.
Return t if this is a Unix-based system, where serial ports are
files, such as /dev/ttyS0.
Return nil if this is Windows or DOS, where serial ports have
special identifiers such as COM1."
  (not (memq system-type '(windows-nt cygwin ms-dos))))