bugGNU Screen - Bugs: bug #17310, xterm passthru printing rendered...

 
 

bug #17310: xterm passthru printing rendered unusable

Submitted by:  None
Submitted on:  Thu 03 Aug 2006 11:47:18 PM UTC  
 
Category: Feature RequestSeverity: 2 - Minor
Priority: 2Status: Need Investigation
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 4.0.2
Fixed Release: NonePlanned Release: Later
Work Required: 2 - Weeks

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

 Spam posted by an anonymous
Thu 03 Aug 2006 11:47:18 PM UTC, original submission:

hello,

screen 4.0.2 running on debian 3.1/i386 ("remote side"); xterm version 209 on ubuntu 6.06/amd64 and xterm version 211 on openbsd 4.0-snapshot/i386 ("local side").

i'm trying to get xterm passthru printing to work from under screen. without screen, it works perfectly on both setups detailed above; with screen, it does not work on either setups.

printing is done simply with the following filter on the remote side:

--
#!/bin/sh
printf "\033[5i"
cat
printf "\033[4i"
--

the xterms have their relevant resources set as

XTermprinterCommand: /usr/bin/lpr
XTermprinterFormFeed: false
XTermprinterAutoClose: true

as said, without screen being involved, things happen as expected (the terminal is put in media copy mode, stuff is sent over, terminal is taken out of media copy mode; on the local side the printer command is started, stuff is piped into it, then the pipe is closed and printout comes out the printer. in the case when the printer command is set to a script that simply cats input to a file, one "job" sent over appears in one file as expected).

with screen involved, it gets subtly strange.

on the remote side, everything appears normal (printer filter script starts, puts the terminal into media copy mode, cats the input, takes terminal out of media copy mode; nothing of the input is seen on the terminal).

anything below 255 bytes come over, but the printer command pipe is never closed. if i exit from xterm, the pipe gets closed and the input gets printed.

anything over 255 bytes come over in 255-byte chunks, with the symptom that on the xterm side looks like:

--
for each full chunk:
open printer command pipe
put chunk in the pipe
close pipe properly
end
open printer command pipe
put the part-chunk in the pipe
sometimes close the pipe properly, sometimes do not (i have not been able to find any pattern)
--

this boils down to everything > 255 bytes being printed onto a number of pages each having approximately 255 (give or take some because of cr/lf conversions) octets of input.

apart from slicing at the mentioned 255-byte chunks, there also appears to be slicing at 4096-byte chunks as well, in a way that
"if the current position is either n255 or n4096 bytes from the beginning of the input, cut and start a new slice".

this effectively renders xterm passthru printing unusable from under screen.

if you need anything else to know, try or test, just ask.

thanks,

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by micahcowan (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 23 Jun 2008 09:49:38 PM UTCmicahcowanCategoryNone=>Feature Request
      ReleaseNone=>4.0.2
      Planned ReleaseNone=>Later
    Sun 15 Jun 2008 06:43:29 AM UTCmicahcowanPriority5 - Normal=>2
      StatusNone=>Need Investigation
      Work RequiredNone=>2 - Weeks
    Fri 13 Jun 2008 08:54:33 AM UTCmicahcowanSeverity3 - Normal=>2 - Minor

    Back to the top


    Powered by Savane 3.1-cleanup1