LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 06:43 PM   #1
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
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, 08:25 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
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, 08:15 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

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

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

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
your link
the printer responded properly to most of the commands
 
Old 10-12-2009, 08:32 PM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
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-13-2009, 11:41 PM   #6
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
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-13-2009, 11:52 PM   #7
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
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



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 05:26 AM
Sending escape codes through CUPS Tracker77 Linux - Desktop 1 02-10-2008 11:45 AM
Escape Codes for Console Color trainpic Linux - General 1 03-13-2006 07:45 PM
Using escape codes to print barcodes c2tidis Linux - Software 0 09-29-2005 11:44 AM
Can Java detect keyboard escape codes? pdibona Programming 1 10-13-2002 08:37 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:13 PM.

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
Open Source Consulting | Domain Registration