serial-read-name

serial-read-name is a compiled Lisp function in `term.el'.

(serial-read-name)

Read a serial port name from the user.
Try to be nice by providing useful defaults and history.
On Windows, prepend \.to the port name unless it already
contains a backslash. This handles the legacy ports COM1-COM9 as
well as the newer ports COM10 and higher.