Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 02-07-2008, 02:09 PM   #1
LQ Newbie
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
Sending escape codes through CUPS

My grasp of print subsystems is weak, so be gentle.

Is there a way to pass esc codes through CUPS to the printer? Or to ask another way, is there way to get the printer to switch to compressed font when sending a print job in a raw format.
Old 02-10-2008, 12:45 PM   #2
Senior Member
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
Given that printers have been commanded by escape codes throughout their history, of course CUPS supports this. To switch your printer to condensed font when sending a raw print job, you have to insert the escape codes into the print stream in the right place. How you do this is up to you; what is best would depend on the source of the document being printed. You might just try doing a cat right to the printer device immediately before sending your raw stream, but if the raw stream sets fonts, this won't work.


codes, cups

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
Escape Codes for Console Color trainpic Linux - General 1 03-13-2006 08:45 PM
Unable to print if using lp and sending printer control codes andyfosl Linux - Enterprise 0 01-31-2006 05:57 AM
Using escape codes to print barcodes c2tidis Linux - Software 0 09-29-2005 12:44 PM
Sending ascii codes with minicom ganninu Linux - Software 0 08-27-2003 09:01 AM
Can Java detect keyboard escape codes? pdibona Programming 1 10-13-2002 09:37 AM > Forums > Linux Forums > Linux - Desktop

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

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