01659@AECLCR.BITNET (Greg Csullog) (01/08/89)
By default, the Atari uses 1280, not 960, as the # of dots per line for a screen dump to a printer. This can be overridden by using the CONTROL.ACC settings but it requires having to have CONTROL.ACC resident. I want to use my Personal Pascal to write a short code to put in my auto folder to set the printer to 960 dots. I will have to use the following function: FUNCTION setprt (config : Short_Integer) : Short_Integer ; XBIOS(33); Because of incredible stupidity or something that has changed between version 1 and 2 of OSS Pascal, I have been unable to make a compilable code doing this one very simple function. I would dearly love it if someone could post a source for this rather trivial program. As I posted on the net before, I a more a user than a programmer and I feel foolish having to ask for help for such a simple matter. However, after hours of error messages, I am not too proud to ask for help.
leo@philmds.UUCP (Leo de Wit) (01/08/89)
In article <8901071651.AA03581@ucbvax.Berkeley.EDU> 01659@AECLCR.BITNET (Greg Csullog) writes: | |By default, the Atari uses 1280, not 960, as the # of dots per line for a |screen dump to a printer. This can be overridden by using the CONTROL.ACC |settings but it requires having to have CONTROL.ACC resident. | |I want to use my Personal Pascal to write a short code to put in my auto folder |to set the printer to 960 dots. I will have to use the following function: [rest omitted]... Unless I'm mistaken, you're asking for a way to default the "dots per line" to 960. This is easy enough. Set it to 960 in the ACCessory you're using, then click on 'Save Desktop' of 'Options'. This should do the trick (at least it did for me). A diff between two desktop.inf's revealed this: (with 1280 dots per line) #b000000 (with 960 dots per line) #b001000 so it seems that the printer info is stored in the #b slot. I don't know how it looks like if you have a different accessory configuration than mine, though. Probably the #<lcase char> lines are there one for each accessory. About the Personal Pascal question: I don't think I can help you with this, since it's already some years ago I switched to use C (and never regretted it). Leo.