9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: presotto@closedmind.org
To: 9fans@cse.psu.edu
Subject: Re: [9fans] APE question
Date: Fri, 12 Oct 2001 10:14:38 -0400	[thread overview]
Message-ID: <20011012141439.7496419A89@mail.cse.psu.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 53 bytes --]

Put an fflush(stdout) twixt the printf and getchar?

[-- Attachment #2: Type: message/rfc822, Size: 1864 bytes --]

From: pac <cej@cejchan.gli.cas.cz>
To: 9fans@cse.psu.edu
Subject: [9fans] APE question
Date: Fri, 12 Oct 2001 16:21:26 +0200
Message-ID: <cej-1011012162124.A01246@cejchan.gli.cas.cz>

Friends,

under APE, the following part of code:

                printf("\nQuit [q], confirm [y], or change [menu] settings: ");               
                /* read one char */
                ch = getchar();
 
does not print out the message before waiting for a character input, unless it is flushed
e.g. by adding 
	printf("\n");
before line 3. Is this an intention? If so, could you tell me a better workaround than this with blank printf()?

Sorry fot ignorance,
--peter.

--
Peter A Cejchan
biologist
Acad. Sci., Prague, CZ
<cej at cejchan dot gli dot cas dot cz>

             reply	other threads:[~2001-10-12 14:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-12 14:14 presotto [this message]
2001-10-12 14:21 pac
2001-10-12 14:32 rog
2001-10-12 14:33 pac
2001-10-12 14:34 ` Boyd Roberts
2001-10-12 14:40 ` Laura Creighton
2001-10-12 14:45 ` Howard Trickey
2001-10-12 14:58   ` Howard Trickey
2001-10-15  4:20     ` pac
2001-10-15  9:11 ` Douglas A. Gwyn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011012141439.7496419A89@mail.cse.psu.edu \
    --to=presotto@closedmind.org \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).