Article View: net.games.hack
Article #504Re: Spaces on input
From: ampe
Date: Thu, 25 Apr 1985 09:30
Date: Thu, 25 Apr 1985 09:30
19 lines
1200 bytes
1200 bytes
In article <275@tilt.FUN> kyrimis@tilt.FUN (Kriton Kyrimis) writes:
>The input routine in hack 1.0.2 does not seem to recognise spaces. ...
...
> Kriton Kyrimis (princeton!tilt!kyrimis)
The bug lies in the getlin() routine in hack.tty.c. This file includes
ctype.h, which defines isprint(). On some machines, isprint() answers
false to spaces, thus the error. A fix is to change line 127 of
hack.tty.c from:
} else if(isprint(c)) {
to:
} else if(isprint(c) || c == ' ') {
--John Ampe
UCLA
Technical Details
Message-ID:
<5008@ucla-cs.ARPA>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!harpo!decvax!ittvax!dcdwest!sdcsvax!sdcrdcf!trwrb!trwrba!cepu!ucla-cs!ampeReferences:
<275@tilt.FUN>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ucla-cs.ARPA Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!harpo!decvax!ittvax!dcdwest!sdcsvax!sdcrdcf!trwrb!trwrba!cepu!ucla-cs!ampe From: ampe@ucla-cs.UUCP Newsgroups: net.games.hack Subject: Re: Spaces on input Message-ID: <5008@ucla-cs.ARPA> Date: Thu, 25-Apr-85 04:30:55 EST Article-I.D.: ucla-cs.5008 Posted: Thu Apr 25 04:30:55 1985 Date-Received: Sat, 27-Apr-85 06:22:13 EST References: <275@tilt.FUN> Reply-To: ampe@ucla-cs.UUCP (John Ampe) Distribution: net Organization: UCLA Computer Science Department Lines: 19