LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 10-11-2009, 07:43 PM   #1
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,234

Rep: Reputation: 189Reputation: 189
printer escape codes


is there any codes thaht are universal between prints
if so what are they
if not what are the codes for a panasonic KX-P11?? series printer
 
Old 10-11-2009, 09:25 PM   #2
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,235

Rep: Reputation: 545Reputation: 545Reputation: 545Reputation: 545Reputation: 545Reputation: 545
Of course there are no universal printer escape codes, that is why WP 5.1 came with 4592 different printer drivers.

For some time the Epson printer codes were a more or less de facto industry standard. The more common might work for the Panasonic as well.
http://webpages.charter.net/dperr/links/esc_p83.htm

jlinkels
 
Old 10-12-2009, 09:15 PM   #3
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,235

Rep: Reputation: 545Reputation: 545Reputation: 545Reputation: 545Reputation: 545Reputation: 545
And the solution is...?

jlinkels
 
Old 10-12-2009, 09:19 PM   #4
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,234

Original Poster
Rep: Reputation: 189Reputation: 189
your link
the printer responded properly to most of the commands
 
Old 10-12-2009, 09:32 PM   #5
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,235

Rep: Reputation: 545Reputation: 545Reputation: 545Reputation: 545Reputation: 545Reputation: 545
Cool, please press the blue "thumb up" icon in the lower right corner if you think my post was useful to you.

jlinkels
 
Old 10-14-2009, 12:41 AM   #6
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 658

Rep: Reputation: 160Reputation: 160
While drivers are needed for corect printing in a windowing environment, at the lower level, they program sends codes (escape codes) to the printer.

In early dot matrix printers, there used to be 2 standards.
An EPSON standard and an <EscP> standard.

For example basic.chr(15) always set the printer into compressed mode and chr(18) reset it to he default power on seting. This worked for all dot printers (IBM, EPSON, TI etc).

Having said that, why bother to get an old (generic) set of commands when straight googling for KX-P11 auto completed as KX-P1150 and gave me the following two links - among others with a recommended driver "eps9hih" - which itself seems a generic driver.

http://www.linuxprinting.org/show_pr...sonic-KX-P1150

http://www.linuxprinting.org/show_dr...sonic-KX-P1150

End
 
Old 10-14-2009, 12:52 AM   #7
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,234

Original Poster
Rep: Reputation: 189Reputation: 189
Quote:
Originally Posted by AnanthaP View Post
While drivers are needed for corect printing in a windowing environment, at the lower level, they program sends codes (escape codes) to the printer.

In early dot matrix printers, there used to be 2 standards.
An EPSON standard and an <EscP> standard.

For example basic.chr(15) always set the printer into compressed mode and chr(18) reset it to he default power on seting. This worked for all dot printers (IBM, EPSON, TI etc).

Having said that, why bother to get an old (generic) set of commands when straight googling for KX-P11 auto completed as KX-P1150 and gave me the following two links - among others with a recommended driver "eps9hih" - which itself seems a generic driver.

http://www.linuxprinting.org/show_pr...sonic-KX-P1150

http://www.linuxprinting.org/show_dr...sonic-KX-P1150

End
i am not looking for a driver
i was looking for a way to drive it manually
thru /dev/lp0 *N*X or LPT1 on dos.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to handle ansi escape codes in C? john.daker Programming 2 11-13-2008 06:26 AM
Sending escape codes through CUPS Tracker77 Linux - Desktop 1 02-10-2008 12:45 PM
Escape Codes for Console Color trainpic Linux - General 1 03-13-2006 08:45 PM
Using escape codes to print barcodes c2tidis Linux - Software 0 09-29-2005 12:44 PM
Can Java detect keyboard escape codes? pdibona Programming 1 10-13-2002 09:37 AM


All times are GMT -5. The time now is 11:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration