• Home
  • Raw
  • Download

Lines Matching +full:escape +full:- +full:string +full:- +full:regexp

11 This module can be executed to get a list of ports (``python -m
32 USB devices (e.g. the :attr:`ListPortInfo.hwid` string contains `VID:PID`,
39 will include ``LINK`` in their ``hwid`` string. This implies that the same
49 .. function:: grep(regexp, include_links=False)
51 :param regexp: regular expression (see stdlib :mod:`re`)
60 generates, but includes only those entries that match the regexp.
100 USB serial number as a string.
104 USB device location string ("<bus>-<port>[-<port>]...")
108 USB manufacturer string, as reported by device.
112 USB product string, as reported by device.
126 Help for ``python -m serial.tools.list_ports``::
128 usage: list_ports.py [-h] [-v] [-q] [-n N] [-s] [regexp]
133 regexp only show ports that match this regex
136 -h, --help show this help message and exit
137 -v, --verbose show more messages
138 -q, --quiet suppress all messages
139 -n N only output the N-th entry
140 -s, --include-links include entries that are symlinks to real devices
145 - List all ports with details::
147 $ python -m serial.tools.list_ports -v
153 hwid: USB VID:PID=10C4:EA60 SER=0001 LOCATION=2-1.6
157 - List the 2nd port matching a USB VID:PID pattern::
159 $ python -m serial.tools.list_ports 1234:5678 -q -n 2
176 For example on GNU/Linux running from an xterm it will support the escape
180 The default is to filter terminal control characters, see ``--filter`` for
185 --- Miniterm on /dev/ttyS0: 9600,8,N,1 ---
186 --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
195 Command line options ``python -m serial.tools.miniterm -h``::
197 usage: miniterm.py [-h] [--parity {N,E,O,S,M}] [--rtscts] [--xonxoff]
198 [--rts RTS] [--dtr DTR] [-e] [--encoding CODEC] [-f NAME]
199 [--eol {CR,LF,CRLF}] [--raw] [--exit-char NUM]
200 [--menu-char NUM] [-q] [--develop]
203 Miniterm - A simple terminal program for the serial port.
210 -h, --help show this help message and exit
213 --parity {N,E,O,S,M} set parity, one of {N E O S M}, default: N
214 --rtscts enable RTS/CTS flow control (default off)
215 --xonxoff enable software flow control (default off)
216 --rts RTS set initial RTS line state (possible values: 0, 1)
217 --dtr DTR set initial DTR line state (possible values: 0, 1)
218 --ask ask again for port when open fails
221 -e, --echo enable local echo (default off)
222 --encoding CODEC set the encoding for the serial port (e.g. hexlify,
223 Latin1, UTF-8), default: UTF-8
224 -f NAME, --filter NAME
226 --eol {CR,LF,CRLF} end of line mode
227 --raw Do no apply any encodings/transformations
230 --exit-char NUM Unicode of special character that is used to exit the
232 --menu-char NUM Unicode code of special character that is used to
236 -q, --quiet suppress non-error messages
237 --develop show Python traceback on error
240 Available filters (``--filter`` option):
242 - ``colorize``: Apply different colors for received and echo
243 - ``debug``: Print what is sent and received
244 - ``default``: remove typical terminal control codes from input
245 - ``direct``: do-nothing: forward all data unchanged
246 - ``nocontrol``: Remove all control codes, incl. ``CR+LF``
247 - ``printable``: Show decimal code for all non-ASCII characters and replace most control codes
253 --- pySerial (3.0a) - miniterm - help
254 ---
255 --- Ctrl+] Exit program
256 --- Ctrl+T Menu escape key, followed by:
257 --- Menu keys:
258 --- Ctrl+T Send the menu character itself to remote
259 --- Ctrl+] Send the exit character itself to remote
260 --- Ctrl+I Show info
261 --- Ctrl+U Upload file (prompt will be shown)
262 --- Ctrl+A encoding
263 --- Ctrl+F edit filters
264 --- Toggles:
265 --- Ctrl+R RTS Ctrl+D DTR Ctrl+B BREAK
266 --- Ctrl+E echo Ctrl+L EOL
267 ---
268 --- Port settings (Ctrl+T followed by the following):
269 --- p change port
270 --- 7 8 set data bits
271 --- N E O S M change parity (None, Even, Odd, Space, Mark)
272 --- 1 2 3 set stop bits (1, 2, 1.5)
273 --- b change baud rate
274 --- x X disable/enable software flow control
275 --- r R disable/enable hardware flow control
289 Added ``--ask`` option.
291 Enable escape code handling on Windows 10 console.