Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site spp2.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!sdcsvax!sdcrdcf!trwrb!trwspp!spp2!urban From: urban@spp2.UUCP Newsgroups: net.sources.bugs Subject: Public Domain Terminfo Stuff Message-ID: <352@spp2.UUCP> Date: Wed, 9-Jan-85 18:44:25 EST Article-I.D.: spp2.352 Posted: Wed Jan 9 18:44:25 1985 Date-Received: Sun, 13-Jan-85 06:38:05 EST Reply-To: urban@spp2.UUCP (Mike Urban) Organization: TRW, Redondo Beach CA Lines: 31 Attempting to port the public domain curses/terminfo stuff to the Pyramid 90x, I encountered the following problems: The sense of the comparison in read_entry for if (must_swap()) read(fd, ptr->Numbers, min(NUMCOUNT, header.num_count*2)); etc. appears to be backwards. This is a real bug that should be fixed in everyone's copy, since it will speed up the read_entry routine on machines that don't swap. In the same routine, the Pyramid C compiler seems to allocate 4-byte entries for the offset_buf array. I changed the declaration to an array of "short"s and used the "swap" definition in the relevant loop instead, which simplifies the appearance of the code anyway. The routines in lib_printw that attempt to pass a variable number of arguments have to be modified for the Pyramid so as to use the facilities inNow "mille" seems to be able to function almost right, but something still seems to be wrong somewhere. The cursor is being left in the wrong place after the first ">>>Move:" prompt is initially drawn and after a screen refresh. The result is that the command that first gets typed somehow stays on the screen in that wrong place (about two spaces to the right of where it should have been). Can anyone enlighten me? Mike