Re: getchar implementation without GNUishms

Liste des GroupesRevenir à cl awk 
Sujet : Re: getchar implementation without GNUishms
De : gazelle (at) *nospam* shell.xmission.com (Kenny McCormack)
Groupes : comp.lang.awk
Date : 26. Mar 2025, 06:48:06
Autres entêtes
Organisation : The official candy of the new Millennium
Message-ID : <vs04em$nf97$1@news.xmission.com>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <vs0258$ncqh$1@news.xmission.com>,
Kenny McCormack <gazelle@shell.xmission.com> wrote:
...
This also works for me:

--- Cut Here ---
BEGIN {
    cmd = "exec bash -c 'while :;do read -rsn1 < /dev/tty;echo $REPLY;done'"
    while (cmd |& getline)
print "Result:",$0
    }
--- Cut Here ---

--
The randomly chosen signature file that would have appeared here is more than 4
lines long.  As such, it violates one or more Usenet RFCs.  In order to remain
in compliance with said RFCs, the actual sig can be found at the following URL:
http://user.xmission.com/~gazelle/Sigs/Voltaire

Date Sujet#  Auteur
25 Mar 25 * getchar implementation without GNUishms8anthk
25 Mar 25 `* Re: getchar implementation without GNUishms7Janis Papanagnou
26 Mar 25  `* Re: getchar implementation without GNUishms6Arti F. Idiot
26 Mar 25   +* Re: getchar implementation without GNUishms2Kenny McCormack
26 Mar 25   i`- Re: getchar implementation without GNUishms1Kenny McCormack
26 Mar 25   `* Re: getchar implementation without GNUishms3Janis Papanagnou
26 Mar 25    `* What is getchar? (Was: getchar implementation without GNUishms)2Kenny McCormack
26 Mar 25     `- Re: What is getchar? (Was: getchar implementation without GNUishms)1Kaz Kylheku

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal