atari-sources-request@daisy.UUCP (10/28/87)
Submitted by: umix!hyc (Howard Chu) comp.sources.atari.st: Volume 0, Issue 33 Archive-name: termcap/Part03 +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ [Editor's Note] I deserve to be flamed for this, I have taken much too long to test this and get it posted mostly because I failed to READ the directions before testing, I encourage you to read them first, especially the parts regarding the placement of termcap and the setenv TERM st52 command. I have hacked the makefile to work under gulam with the MWC compiler. If you have megamax or dri, you will have to create your own makefile. and now here's the checksums...... bytes = 31299( 31799) cksm = 763 termcap.uaa bytes = 31302( 31802) cksm = 388 termcap.uab bytes = 9506( 9662) cksm = 148 termcap.uac +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ Howdy. I'm uucp'ing my copy of termcap for the ST to you. I stole this from the PC Larn package, ported from Unix to MSDOS by Don G. Kneller. Apparently the termcap code was written by Fred Fish. I made very minor changes to get it to compile under Mark Williams C, version 2.0. I'm going to commence porting Larn as well, but I thought you might post this to the sources group or something, just to let people know the newsgroup is still alive. Also included in the package is the source for worms, which I got off mod.sources a long time ago. i made a few changes to that also, to get it to compile under MWC. These were: a) change max worm length to 64, from 256 - otherwise an array would be too large for addressibility. b) call setbuf to unbuffer stdout - makes the output appear smoother. c) declare getenv() as (char *). On most unix systems teh declaration is omitted since int's are the same size as pointers, but that doesn't work here! It doesn't do too much, and it seems to have a bug or two in it, but it does show off the termcap code. There is, of course, a set of termcap entries that I wrote, in the file 'termcap' - this should be moved to \etc\termcap, and you should 'setenv TERM=st52' to use it. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [Ed.] I've only used this with the MWC micro-shell, so I don't know how it will behave with a different shell. Maybe what we need is a small GEM application that will set environment variables from the desktop. table !"#$%&'()*+,-./0123456789:;<=>? @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