TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Andrew Grillet
from: Richard Hasty
date: 1995-03-20 01:18:00
subject: Flush Buffers

AG> AFAICT, there is a problem when it writes a prompt to the user -
AG> the buffer is not flushed after the write, so the user never sees
AG> the prompt.
AG> 
AG> I want a solution which will not mean 50,000 edits to 12 source
AG> files if possible. I did not write the app, and have no idea which
AG> places in the code are potential problems. 

The problem is, os/2 doesn't flush the buffer until a newline char is
sent. The only way around it is to call ffluch(stdout); after each
prompt, unless you want to re-write printf to call fflush afterwards.

AG> Also, does anyone know what values the command line switches take.
AG> I can't find any documentation on this. 

They are just like they are in dos.

Richard Hasty
Team OS/2

   
 ~ KWQ/2 1.2g ~ OS/2 - Half its OS tied behind its back... just to make it fair.
 
--- LoraBBS-OS/2 v2.40b4 (Eval.)
* Origin: The Silver Thorn (1:284/73.0)
SEEN-BY: 105/42 620/243 624/50 711/401 409 410 413 430 807 808 809 934 955
SEEN-BY: 712/407 515 628 704 713/888 800/1 7877/2809
@PATH: 284/73 29 3615/50 396/1 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.