Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Mumps > Re: Using ESC c...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 880 of 991
Post > Topic >>

Re: Using ESC commands/sequences for printing...

by Julius Kavay <kavay@[EMAIL PROTECTED] > Jul 27, 2007 at 10:53 PM

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

-- 
/////
 




 5 Posts in Topic:
Using ESC commands/sequences for printing...
"JJ" <jeffer  2007-07-27 19:49:11 
Re: Using ESC commands/sequences for printing...
Julius Kavay <kavay@[E  2007-07-27 22:53:32 
Re: Using ESC commands/sequences for printing...
"JJ" <jeffer  2007-07-27 22:14:42 
Re: Using ESC commands/sequences for printing...
"JJ" <jeffer  2007-07-30 11:19:01 
Re: Using ESC commands/sequences for printing...
Julius Kavay <kavay@[E  2007-07-30 19:11:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 0:41:45 CDT 2008.