bugGNU Screen - Bugs: bug #50208, paste . command acting strangely...

 
 

bug #50208: paste . command acting strangely without setsid

Submitter:  Min Xu <minxu>
Submitted:  Thu 02 Feb 2017 07:36:00 AM UTC
   
 
Category:  Program Logic Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  4.0.3
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 02 Feb 2017 07:36:00 AM UTC, original submission:  

Hi,

I am using this screen version on arch linux.

$ screen --version
Screen version 4.05.00 (GNU) 10-Dec-16

I am using the following screenrc commands to integrate xsel with gnome 3.22 for copy&paste to/from the clipboard.

bindkey -m y eval 'stuff \040' 'writebuf' "exec sh -c 'xsel -bi </tmp/screen-exchange'"
bind p exec setsid sh -c 'xsel -bo >/tmp/screen-exchange; screen -X eval readbuf "paste ."'

For the second line, I had to use "setsid" in the exec line in order for the paste to work.

Without setsid, the paste command will paste the content to the current screen window, however, the pasted string appears to be not really inserted to the stdin of the receiving process. I.e. the string will appear on the screen, but bash or vi doesn't see to receive it. If I press enter after the paste command with bash, bash acts as if no input is received.

If I paste the content into vi and then save the file, the file size is 0.

Only after the "setsid" change, I can make the pasting work.


Min Xu <minxu>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by minxu (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code