LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-07-2008, 01:09 PM   #1
Tracker77
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, 11:45 AM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
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.
 
  


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Escape Codes for Console Color trainpic Linux - General 1 03-13-2006 07:45 PM
Unable to print if using lp and sending printer control codes andyfosl Linux - Enterprise 0 01-31-2006 04:57 AM
Using escape codes to print barcodes c2tidis Linux - Software 0 09-29-2005 11:44 AM
Sending ascii codes with minicom ganninu Linux - Software 0 08-27-2003 08:01 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 11:29 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