maeder@ethz.UUCP (Roman Maeder) (04/05/86)
Screen- and Printercontrol from dBaseIII under MS-DOS If you know answers to the following questions, please mail them to me: - How do you send escape sequences to the screen? Even after loading ANSI.SYS, in escape sequences, like ? chr(27)+'[5m' for blinking text, the control character (ESC) appears on the screen as one of those funny symbols in the IBM-PC charset. This is on an Olivetti M24 and dBaseIII Version 1.1. How can you arrange for the escape sequence to be *interpreted*? - How do you send control-chars to the printer? Some of the control characters are interpreted by dBase and not output 'as is'. E.g. the TAB (chr(9)) is replaced by some spaces, chr(0) is swallowed. On my printer (Gemini Star 10X) underlining is ESC+CHR(0), which I tried to produce like this: set print on ? chr(27)+chr(0) set print off But the chr(0) never makes it to the printer. Any help is greatly appreciated. -- Roman Maeder It is now pitch dark. If you proceed you are likely to be eaten by a grue.
reintom@rocky2.UUCP (Tom Reingold) (04/22/86)
If you have got more that 256K of RAM in your computer, you can use the RUN command to invoke a DOS application from withing dBase III. You can create a program in Pascal, C, Basic, or whatever your favorite language is, to send the required characters to the screen or printer. For example, you could have a printer control program that sends an ESC-E to your printer that turns on Emphasized print. The program could be a file called EMPH.COM. The command from dBase to set Emphasized print on would be RUN EMPH Is this the sort of thing you were looking for? Tom Reingold Rockefeller University New York City {seismo|ihnp4}!cmcl2!rna!rocky2!reintom
flip@osu-cgrg.UUCP (Flip Phillips) (04/25/86)
> If you have got more that 256K of RAM in your computer, you can use > the RUN command to invoke a DOS application from withing dBase III. > You can create a program in Pascal, C, Basic, or whatever your > favorite language is, to send the required characters to the screen > or printer. > > For example, you could have a printer control program that sends an > ESC-E to your printer that turns on Emphasized print. The program > could be a file called EMPH.COM. The command from dBase to set > Emphasized print on would be > > RUN EMPH > > Tom Reingold > {seismo|ihnp4}!cmcl2!rna!rocky2!reintom *** REPLACE THIS solution WITH YOUR solution *** why not just: set device to print @0,0 say chr(#)+chr(#2) where '#' is the ASCII val for whatever you want to set... in your case: if you didnt want the printer head to move or the thing to feed say set device to print @prow(),pcol() say chr(23)+chr(69) .... flip -- Flip Phillips {ucbvax,decvax}!cbosg!osu-cgrg!flip Computer Graphics Research Group, The Ohio State University