X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:content-type :content-transfer-encoding:in-reply-to:references:date :message-id:mime-version; q=dns; s=default; b=GHJmMO/HYxsxWUbkgs gV+zcrpVdjPAmw1XLXvjG3KKMWE28zMBRhw+5eLWOOR3cFV/iYK6XI560zHCFvB/ cm31aJBQyC6+hKoxh5H9Kon48y33ezx18WRZwck7BJIXBOxjNSeMSlyVD94MJyHI LJI3y2mA5pJKubn3CzSzUYRzo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:content-type :content-transfer-encoding:in-reply-to:references:date :message-id:mime-version; s=default; bh=9gMTS4hQ4mG6xux9ZuDftyCf cbg=; b=r4y9mdRz571J4PlRBdstsU7pNsxS3RTNcPjf71SWulm4MquBzOYM0Uzw FETxuXkGLDi04KwD3k6RosDpbc+7ptFZPr1HDbLnaFMdXSNcAW1iOrd/MqSC81GJ fnYG26MegS9Zh5miCmERjdYuwXNONx47aDuzw5YbOJqTbmndnCI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Delivered-To: corinna-cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=BAYES_40,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=lc, HCc:D*cygwin.com, H*i:sk:2016061, H*f:sk:2016061 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mailout.ish.de X-Abuse-ID: hremUFXL0y-8240 AT umkbw DOT customer Anomaly-Results: submit.unitybox.de; rate=0% Dubio-Filter: Adamant Filter v2016.04.1 submit.unitybox.de 3rQwfJ6rDlz7t8X From: Helmut Karlowski To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Subject: Re: stty icrnl Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit In-Reply-To: <20160610083111.GC15058@calimero.vinschen.de> References: <87fusm6mog DOT fsf AT Rainer DOT invalid> <20160610083111 DOT GC15058 AT calimero DOT vinschen DOT de> Date: Fri, 10 Jun 2016 10:42:32 +0200 Message-Id: <20160610104232.488C0330.helmut.karlowski@ish.de> MIME-Version: 1.0 X-IsSubscribed: yes --------------------------------------------------- > Ideally by somebody who knows how this dreaded Windows serial line API > works... Wouldn't someting like this work: term=$'\r' l= while true; do read -N1 c [ "$c" == $'\4' ] && break [ "$c" == $term ] && { echo "<$l>"; l=; } || l="$l$c" done ? -Helmut -- 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