TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: All
from: Bob van der Poel 76510,2203
date: 1994-08-15 21:57:02
subject: #Screen & Ptyman

#: 20213 S12/OS9/68000 (OSK)
    15-Aug-94  21:57:02
Sb: #Screen & Ptyman
Fm: Bob van der Poel 76510,2203
To: All

A while ago there was some discussion about SCREEN running under the PTYMAN not
working properly. I think I have found the problem...when doing raw reads
(using OS9Read instead of OS9Readln) ptyman does not echo characters to the
screen. If a user program uses read() then stuff is not echoed and problems
such as discussed will probably appear. I noticed this in a program I was
writing. It did a setbuf(stdin, NULL) and stopped echoing. Using debug I
determined that the C i/o functions use raw read when this is set (guess that
makes sense).

I will see if I can add echoing under read() to ptyman later this week. In the
meantime, does anyone have any idea as to why this would not have been added by
the writer of the program. I assume that he just forgot, but the readln() stuff
is pretty explicit and I'm wondering if there is another reason....so, before I
start breaking things....


There is 1 Reply.

SOURCE: compuserve via textfiles.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™.