[Freedos-devel] MODE LPTn COLS=... strings / testers wanted

2004-02-23 Thread Eric Auer

Hi, I noticed that I have not yet enabled the MODE LPTn COLS=...
feature. Reason: Nobody tested / suggested ESC sequences for
10cpi (80 column) / 15cpi (132 column) printing yet. So please test
the sequences below, which are Google-educated guesses:

ESC P
10 cpi printing. Could also be reached by writing 0x18 (w/o ESC)
ESC M
12 cpi printing if possible, otherwise 15 cpi printing
ESC g
15 cpi printing if 12 cpi printing is possible as well. Probably
has alternative versions ESC 0x15 or even writing only 0x15 (w/o ESC).


They are supposed to be ESC/P compatible, but maybe even HP PCL
printers understand them. If all 3 work, I could add 12cpi which
would be triggered by MODE LPTn COLS=96. You can also tell me the
strings which YOUR printer uses. But remember that MODE targets
old / generic printers. Newer printers come with their own control
panel software or simply have real control panel buttons. And really
old printers used dip switches for font width selection. So my aim
is to send ESC/P (Epson and other impact and inkjet printers).

Eric.



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] MODE LPTn COLS=... strings / testers wanted

2004-02-23 Thread Kenneth J. Davis

Hi, I noticed that I have not yet enabled the MODE LPTn COLS=...
feature. Reason: Nobody tested / suggested ESC sequences for
10cpi (80 column) / 15cpi (132 column) printing yet. So please test
the sequences below, which are Google-educated guesses:

ESC P
10 cpi printing. Could also be reached by writing 0x18 (w/o ESC)
ESC M
12 cpi printing if possible, otherwise 15 cpi printing
ESC g
15 cpi printing if 12 cpi printing is possible as well. Probably
has alternative versions ESC 0x15 or even writing only 0x15 (w/o ESC).


They are supposed to be ESC/P compatible, but maybe even HP PCL
printers understand them. If all 3 work, I could add 12cpi which
would be triggered by MODE LPTn COLS=96. You can also tell me the
strings which YOUR printer uses. But remember that MODE targets
old / generic printers. Newer printers come with their own control
panel software or simply have real control panel buttons. And really
old printers used dip switches for font width selection. So my aim
is to send ESC/P (Epson and other impact and inkjet printers).

Eric.


According to the manual that came with my printer
(A Sears model SR-5000 which best emulated the Epson LQ-1000
 series printers (or could be set to act like an IBM Proprinter))

Character size:

For Epson emulation
Begin 10 cpi (Pica)
  ESC P
  27 80
Begin 12 cpi (Elite)
  ESC M
  27 77
Proportional spacing
  ESC p n
  27 112 n
  where n=1 to begin proportional spacing and
n=0 to end proportional spacing

For IBM Proprinter X24 or X24 AGM emulation
Begin 10 cpi (Pica)
  DC2
  18
Begin 12 cpi (Elite)
  ESC :
  17 58
Proportional spacing
  ESC P n
  27 80 n
  where n=1 to being and n=0 to end proportional spacing

For both Epson and IBM Proprinter X24/X24AGM emulation
Begin 15 cpi
  ESC g
  27 103  

For the Epson emulation one can change these to
an alternate cpi value by enabling double width mode
or compression mode.

Compressed mode
Begin compressed printing
  SI
  15
  For IBM prints in 17.1 cpi
  For Epson see table below
Alternate Begin compressed printing
  ESC SI
  27 15
  For IBM prints in 20 cpi
  For Epson mode see table below

Epson
End compressed printing 
  DC2
  18
IBM
End compressed printing by sending one of above basic pitch cmds

Pitch generated in Epson mode with compression on
(both SI and ESC SI produce same results, initial pitch based)
   prior cpicompressed cpidouble width
  10 cpi17.1 cpi 5 cpi
  12 cpi  20 cpi 6 cpi
  15 cpi  N/A  7.5 cpi
17.1 cpi  N/A  8.5 cpi
  20 cpi  N/A   10 cpi
   proporitional17.1 cpi 5 cpi
  
  
Unfortunately I don't have a working ribbon to test
on, but the manual is fairly comprehensive (includes
a lot of BASIC sample code even), so probably correct.
The printer also allowed one to select these values
via buttons (a real control panel) but when printing
from most applications (that had print drivers) these
values always got reset.

If you want me to look up any other ESC sequences
supported by my printer just let me know.

Jeremy




---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel