LinuxQuestions.org
Visit Jeremy's Blog.
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,229

Rep: Reputation: 173Reputation: 173
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
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,087

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,087

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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,229

Original Poster
Rep: Reputation: 173Reputation: 173
your link
the printer responded properly to most of the commands
 
Old 10-12-2009, 08:32 PM   #5
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,087

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 627

Rep: Reputation: 137Reputation: 137
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,229

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


All times are GMT -5. The time now is 10:47 AM.

Main Menu
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