TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: Mike Haaland 72300,1433 (X)
from: LARRY OLSON 72227,3467
date: 1993-03-15 01:16:04
subject: #17717-C help

#: 17727 S12/OS9/68000 (OSK)
    15-Mar-93  01:16:04
Sb: #17717-C help
Fm: LARRY OLSON 72227,3467
To: Mike Haaland 72300,1433 (X)

Mike,
  I have been mainly using gets(), but how do you handle a case where for
example you open a box with 3 lines by 15 characters, where the user is asked
to enter a 10 character maximum name. The user starts entering characters and
doesn't stop at 10 but enters 16, which promptly scrolls the top line out of
the window. The program doesn't have any way of knowing what characters or how
many have been entered, until the return key is pressed.
  I want to change the routines I have now, so I can get 1 character at a time
and then act on what is being entered.

larry

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™.