Thank you for the replies, but I’m just not getting it. First of all,
what do you mean by “console??”
Can’t see “console” in the discussion. But in general the “console” is
the keyboard/monitor directly attached to the computer you’re using. BUT
it usually means when tht computer is in text mode, not running a GUI
Do you mean what monitor am I using?? Ordinary Dell monitor.
Thanks. But should be irrelevant.
Do you mean, where does the program output go?? Well, it goes to Idle. The Idle that came with Python. One Window in which to write code and another Window where the program output and error messages go. I assume that “Shell” will do whatever the code says.
Ok. IIRC, IDLE doesn’t entirely act like a normal terminal emulator.
Or does console mean something else altogether??
And I can’t figure out how to use “flush.”
Here’s what I’ve tried:
print ('HOO', sys.stdout.flush (), '\r')
#sys.stdout.flush () <- Commented this line out.
# print string, end the "line" with a \r, and get print to flush the
# output immediately
print ('HOO', end='\r', flush=True)
# print string, end the "line" with a \r
print ('HOO', end='\r')
# flush the output now instead of asking print to do it
The latter form is seen when you do a bunch of prints and a single flsh
at the end, when it is necessary to ensure the output has gone to the
Guys, I appreciate your help and I am embarrassed to be so stupid.
You’re not stupid, you’re just new to this.
Cameron Simpson firstname.lastname@example.org