From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35955 invoked by alias); 9 Jun 2016 22:49:53 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 35944 invoked by uid 89); 9 Jun 2016 22:49:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=BAYES_20,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,SPF_PASS autolearn=no version=3.3.2 spammy=H*UA:Internet, Hx-spam-relays-external:sk:ec2-52-, H*RU:sk:ec2-52-, H*x:Internet X-HELO: sneak2.sneakemail.com Received: from sneak2.sneakemail.com (HELO sneak2.sneakemail.com) (64.46.156.55) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 09 Jun 2016 22:49:42 +0000 Received: from sneakemail.com (ec2-52-71-31-68.compute-1.amazonaws.com [52.71.31.68]) by sneak2.localdomain (Postfix) with ESMTP id 3AE5BA9614C for ; Thu, 9 Jun 2016 18:49:40 -0400 (EDT) Received: from localhost.localdomain (ip-172-17-0-2.ec2.internal [172.17.0.2]) by 0f398942f909.localdomain (Postfix) with ESMTP id 88D3A6000B for ; Thu, 9 Jun 2016 22:48:36 +0000 (UTC) Received: from 206.168.13.214 by mail.sneakemail.com with SMTP; 9 Jun 2016 22:48:36 -0000 Received: (sneakemail censored 3714-1465512516-93510 #2); 9 Jun 2016 22:48:36 -0000 Received: (sneakemail censored 3714-1465512516-93510 #1); 9 Jun 2016 22:48:36 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <3714-1465512516-93510@sneakemail.com> Date: Thu, 09 Jun 2016 22:49:00 -0000 From: "John Hein" <3fbmqnhaz4@snkmail.com> To: cygwin@cygwin.com Subject: Re: stty icrnl In-Reply-To: <72EAE5BB-D905-4394-BEB4-5303ED8879A4@etr-usa.com> References: <72EAE5BB-D905-4394-BEB4-5303ED8879A4@etr-usa.com> X-SW-Source: 2016-06/txt/msg00145.txt.bz2 Warren Young wrote at 12:34 -0600 on Jun 9, 2016: > On Jun 7, 2016, at 6:05 PM, Brian Inglis wrote: > >=20 > >=20 > > cu is the normal Unixy way of using a remote USB->serial line, but I c= an't > > find it in Cygwin packages >=20 > Taylor UUCP builds out of the box on Cygwin: >=20 > $ wget ftp://ftp.gnu.org/pub/gnu/uucp/uucp-1.07.tar.gz > $ tar xf uucp-1.07.tar.gz > $ cd uucp-1.07 > $ configure && make -j11 > $ ./cu --version > cu (Taylor UUCP) 1.07 > Copyright (C) 1991, 92, 93, 94, 1995, 2002 Ian Lance Taylor > This program is free software; you may redistribute it under the terms= of > the GNU General Public LIcense. This program has ABSOLUTELY NO WARRAN= TY. >=20 > > searching for \, and cu spews too many hits.=20 >=20 > When searching on the Cygwin package search page, adding .exe to executa= bles narrows the results considerably. >=20 > As it happens, there is a Cygwin package shipping *cu.exe, but it is not= the cu(1) you are looking for. Move along. >=20 > Adding a leading slash fixes that: >=20 > Found 0 matches for /cu.exe >=20 > If you were searching elsewhere (e.g. Google) then, yes, =E2=80=9Ccu=E2= =80=9D is a bad search term. But if you knew that cu comes from the UUCP p= ackage, =E2=80=9Ccu uucp=E2=80=9D leads you right to Taylor UUCP. >=20 > See, I *knew* there was a reason I was spending my days on amber VT220s = hacking Unix back when I could have been out making Vitamin D! miniterm.py is a nice cross-platform (pure python) serial program that is CLI (like tip/cu). It's part of the pyserial package. In the past, it (pyserial) has not been in the cygwin repo, but it may be now. If not, just install python-setuptools and do 'easy_install pyserial'. I've used 'pip install pyserial' as well (but probably had to 'easy_install pip' since pip also isn't cygwin-packagified either). I always meant to package pyserial for cygwin but never got around to it. A nice feature is the ability to toggle dynamically between different settings including presentation modes (raw, escaped control characters, hex), baud rate, flow ctrl or not, cr/lf line endings. Plus it's easy to write little python scripts using the pyserial API to twiddle things on the serial port (http://pythonhosted.org/pyserial/). Here's the live help screen: --- pySerial (2.7) - miniterm - help --- --- Ctrl+] Exit program --- Ctrl+T Menu escape key, followed by: --- Menu keys: --- Ctrl+T Send the menu character itself to remote --- Ctrl+] Send the exit character itself to remote --- Ctrl+I Show info --- Ctrl+U Upload file (prompt will be shown) --- Toggles: --- Ctrl+R RTS Ctrl+E local echo --- Ctrl+D DTR Ctrl+B BREAK --- Ctrl+L line feed Ctrl+A Cycle repr mode --- --- Port settings (Ctrl+T followed by the following): --- p change port --- 7 8 set data bits --- n e o s m change parity (None, Even, Odd, Space, Mark) --- 1 2 3 set stop bits (1, 2, 1.5) --- b change baud rate --- x X disable/enable software flow control --- r R disable/enable hardware flow control and --help: miniterm.py --help Usage: miniterm.py [options] [port [baudrate]] Miniterm - A simple terminal program for the serial port. Options: -h, --help show this help message and exit Port settings: -p PORT, --port=3DPORT port, a number or a device name. (deprecated option, use parameter instead) -b BAUDRATE, --baud=3DBAUDRATE set baud rate, default 9600 --parity=3DPARITY set parity, one of [N, E, O, S, M], default=3DN --rtscts enable RTS/CTS flow control (default off) --xonxoff enable software flow control (default off) --rts=3DRTS_STATE set initial RTS line state (possible values: 0, 1) --dtr=3DDTR_STATE set initial DTR line state (possible values: 0, 1) Data handling: -e, --echo enable local echo (default off) --cr do not send CR+LF, send CR only --lf do not send CR+LF, send LF only -D, --debug debug received data (escape non-printable chars) --debug can be given multiple times: 0: just print what is received 1: escape non-printable characters, do newlines as unusual 2: escape non-printable characters, newlines too 3: hex dump everything Hotkeys: --exit-char=3DEXIT_CHAR ASCII code of special character that is used to exit the application --menu-char=3DMENU_CHAR ASCII code of special character that is used to control miniterm (menu) Diagnostics: -q, --quiet suppress non-error messages -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple