JJ wrote:
> Just checking to see what input I get on this. I have to use some ESC
> commands/seq's for incremental line feeding to an OKI printer.
>
> I know the ESC command I need to use is basically: "ESC J n" where n =
0 to
> 255...But not sure how to pass this via MUMPS to the printer, the
syntax. I
the "ESC J n" is a "Epson mode Escape sequence" and if I recall it right,
it does an n/216 inch line feed.
To make a half inch linefeed, for example, just do the following:
Set FEED=108 ; 216/2 = 108
Set CR=13 ; CarrigeReturn
Write "this is the top row",$c(27,74,FEED,CR),"and this is the bottom
row",!
But take care, if you do
Write "...",*27,*74,*FEED,*CR,"..." or
Write "...",*27,*74,$c(FEED),$c(CR),"..."
they do the same thing on the printer,
the first one (...,$c(27,74,feed,cr),... ) DO NOT increments $X, but the
others
(*27,*74,...) do increment $X! So if you use the tab format control (?nn)
then
it can happen, you are on the wrong position.
hth and
have a nice day
julius
--
/////


|