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

 
 

bug #50208: paste . command acting strangely without setsid

Submitted by:  Min Xu <minxu>
Submitted on:  Thu 02 Feb 2017 07:36:00 AM UTC  
 
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 4.0.3
Fixed Release: NonePlanned Release: None
Work Required: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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 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 minxu (Submitted 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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1