delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/06/11:09:36

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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=y4Ktkd4mpg6+RO/CwynIoPwAxWPKlYnOxEXe58Kwy8zhfAwbBde5k
gj+gd8LmIS+PciYOUsISJeYcDO+SWgbO+9S2HjUr/t0RHk8MJCPoVBdmUZeP4e72
MwVXjq2JZ2gmFz0zrRPuIXmAigtddDaJaBaJJy9SDeKhx3TkBNWKOA=
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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=pB1PLCkFMymGZMBb+KMPbqHM3mg=; b=aOB7T5BLmLAUkWi5oYwFmAD47l7G
qZScOlxgLvCTkHwKLi9jcfFjb2G/xODebRd6Rp40PtfdvRFbqZ3WDKu2csn+umOX
cGy6EaEWrQ34HyGk02mEZocR2yVg+AASyRR9N8BIfqxNnpScOxlPHSq8e+v11vzo
DMwZBL7p5aT3fO0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
To: cygwin AT cygwin DOT com
From: Achim Gratz <Stromeko AT NexGo DOT DE>
Subject: Re: stty icrnl
Date: Mon, 6 Jun 2016 15:08:57 +0000 (UTC)
Lines: 30
Message-ID: <loom.20160606T170515-528@post.gmane.org>
References: <loom DOT 20160606T135902-517 AT post DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Achim Gratz <Stromeko <at> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019