T.R | Title | User | Personal Name | Date | Lines |
---|
2470.1 | Another way | AYOV28::ATHOMSON | C'mon, git aff! /The Kelty Clippie | Wed Apr 12 1989 05:20 | 12 |
| Try it another way,
bold$ = CHR$(27)+"[7m"
offbold$ = CHR$(27)+"[0m"
lprint bold$
lprint "This text should be bolded."
lprint offbold$
Remembering of course to substitute your printer's character sequences
in place of the [7m and [0m
Alan T.
|
2470.2 | I hope I didn't put a muddy shoe in my mouth | MQOFS::DESROSIERS | Lets procrastinate....tomorrow | Wed Apr 12 1989 13:28 | 9 |
| I tried to print <esc> sequences from Amiga basic, but they were
striped from one of the software layers. I didn't persue that route,
but I think that you could sent the stuff to a file and then copy
the file to the printer like so: COPY file to PAR: this should pass
the <esc>sequences. I didn't try all this but it seems that short
of writing your program in C or M2, that is all you can do.
Jean
|
2470.3 | not a lot of sucess - but still trying... | NZOV01::MCKENZIE | Support your right to arm bears | Wed Apr 12 1989 19:35 | 9 |
| The printer manual however actually uses basic commands with its
esc sequences in examples....so i would have thought it wouldnt
be too hard...
I have started reading my manual all over again - mabye theres a
dip switch set wrong or printer is in wrong mode or something
re .-2 I tried what you suggested - no luck - but thanks anyway
re .-1 I will try this format also - thank you...
|
2470.4 | it gets crazier!!! | NZOV01::MCKENZIE | Help STOP the greenhouse effect! | Thu Apr 13 1989 17:35 | 28 |
| Well - I've had some sucess - as per the manual the statement
LPRINT CHR$(14) does indeed turn on Double width printing
LPRINT CHR$(20) does undeed turn off Double width printing
But NOTHING ELSE WORKS
I notice that every statement using the ESC seq CHR$(27)
doesnt work - the above are WITHOUT escape sequences...
I tried different codes without the escape CHR$(27) in front
no luck at all...
Then it got weird....
For a short time LPRINT CHR$(27)+CHR$(15);"text" actually set printer
density to 20 cpi as per the book. GREAT! I thought - I did an
LPRINT CHR$(18) and print was returned to normal...
I swiched off/switched on printer - tried again (after making sure
hardware settings were the same) - NO LUCK WITH ANYTHING EXCEPT
DOUBLE WIDTH - PRINTING
Does ANYONE out there have this model or has anyone any ideas
I'm gonna phone the store this morning - but I have this awful
queezy feeling that they wont be able to help...
|
2470.5 | | BAGELS::BRANNON | Dave Brannon | Thu Apr 13 1989 19:09 | 16 |
| what printer driver are you using?
I assume AmigaBasic is send the output of the LPRINT command to
PRT: which means that the printer driver gets to interpret
your escape sequences. The AmigaDOS manual, and maybe even
the A500/2000 manual describe the escape sequences the printer
driver eats. It then sends the corresponding printer specific escape
sequences.
You can send directly to the printer if you send the escape sequences
to the PAR: or SER: device. I don't think AmigaBasic will let you
do that using LPRINT, you probably would need to OPEN the device
and then PRINT to it.
-Dave
|
2470.6 | an answer? | NZOV01::MCKENZIE | Help STOP the greenhouse effect! | Thu Apr 13 1989 20:19 | 16 |
| Dave - you are absolutely correct (as were previous noters who said
this)
LPRINT does not understand most sequences, and I'm told by the PCal
with that if I get any to work its good luck-not good management
what I aparently have to do is
OPEN "LPT1:" FOR OUTPUT AS #1
PRINT #1 [CODES] ETC
CLOSE #1
My friend at the store is going to send me a special chart he pulled
out of a magazine - so I'll post it here for those that are interested
cheers everyone - thanks for your help - I'll let you know the results...
|