Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!lll-lcc!well!ptsfa!pttesac!vanam From: vanam@pttesac.UUCP (Marnix van Ammers) Newsgroups: net.micro.amiga Subject: Re: VT100 terminal emulator (V2.0 DBW 860823) Part 1 of 2 Message-ID: <269@pttesac.UUCP> Date: Thu, 28-Aug-86 11:01:45 EDT Article-I.D.: pttesac.269 Posted: Thu Aug 28 11:01:45 1986 Date-Received: Fri, 29-Aug-86 21:31:12 EDT References: <4992@decwrl.DEC.COM> Organization: Pacific Bell ESAC, San Francisco Lines: 74 Summary: Missing escapes in vt100.h and window.c Great program! I am absolutely delighted with it. I liked the first version, but this is getting really good. Here are my notes from last night. There were errors in the shar file. When I unshared, it I got complaints about vt100.h and window.c . Everything compiled just fine, but the PF and arrow keys didn't work as they should have. It later turned out that both vt100.h and window.c were missing escape characters from some character definitions. In vt100.h look for the definitions of the PF keys. Set the first character in those strings to "\033". It should be on line 173 which now looks like: "OP","OQ","OR","OS", Change it to look like: "\033OP","\033OQ","\033OR","\033OS", In window.c wherever you see sendstring(, (I show them on lines 276 through 293), put an escape character at the beginning of each string. So, for instance line 290 which now looks like: case 0x4c: c=0; sendstring("[A"); break; should look like: case 0x4c: c=0; sendstring("\033[A"); break; Undoubtedly these escapes were at one time in the program but were accidentally stripped out by an editor or through some transfer process. Putting them in there with the octal number method (\033) helps prevent such accidents. The vt100.doc file says that the program looks for 3 initfiles, the first one being "initfile". Not True, program only looks for "vt100.init" and for "c:vt100.init". When I first noticed that my vt100 arrow keys and PF keys weren't working right, I tried to set them in the init file but somehow that didn't work. I was able to set the other variables in my init file (except for cursor color which always remained blue). I looked in init.c and couldn't see the problem. I did see that there are several instances where there was a constant integer 0 where a constant character '\0' should have been. Changing that didn't fix the problem with setting the function keys however. Perhaps I'm doing something wrong or misunderstanding the documentation. I did want to get this out early to spare any of you the troubles I had with those escapes. I used Xmodem to receive a file successfully. I didn't try sending and I didn't try KERMIT. I used 48 lines successfully. By setting the background to 000 and the foreground to 888 I could make the interlace flicker almost unnoticeable. I did have a little trouble with the go-away gadget while in interlace mode. It seems that the tip of my mouse pointer would have to be somewhere beyond the center of the gadget. Usually I use the tip of my pointer, but in this case, I had to point with the center of my pointer. I also did have to fiddle with the screen and window drag bars a bit to get the bottom line fully on the screen. Still haven't tried the script capabilities. For me this is the best free program I've ever had. Now if Matt will just hurry up with that new shell ... Marnix