From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90777 invoked by alias); 6 Jun 2016 15:09:17 -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 90768 invoked by uid 89); 6 Jun 2016 15:09:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_50,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=cooked, Stromeko, stromeko, icrnl X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 06 Jun 2016 15:09:06 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b9w9G-0003mA-Ua for cygwin@cygwin.com; Mon, 06 Jun 2016 17:09:03 +0200 Received: from 217.10.52.10 ([217.10.52.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Jun 2016 17:09:02 +0200 Received: from Stromeko by 217.10.52.10 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Jun 2016 17:09:02 +0200 To: cygwin@cygwin.com From: Achim Gratz Subject: Re: stty icrnl Date: Mon, 06 Jun 2016 15:09:00 -0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes X-SW-Source: 2016-06/txt/msg00068.txt.bz2 Achim Gratz NexGo.DE> writes: > Is there some other terminal emulator/program that would let me use this > board anyway via Cygwin until Cygwin learns cooked mode for terminals? The following script does almost what I want, save for some ickyness with the echo of the input that I might attempt to deal with later: -----------8<----------- #!/bin/dash cleanup () { kill $cpid exec 6>&- } tty=$1; shift baud=$1; shift /bin/stty -F $tty $baud exec 6<> $tty 0<&6 /bin/stdbuf -i0 -o0 -e0 tr "\r" "\n" & cpid=$? trap cleanup HUP KILL INT 1>&6 /bin/stdbuf -i0 -o0 -e0 tr "\n" "\r" cleanup -----------8<----------- Anyway, I can communicate with the board and don't need to leave tmux anymore when doing so. :-) Regards, Achim. -- 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