aws-ssm-session icon indicating copy to clipboard operation
aws-ssm-session copied to clipboard

Supporting paste

Open donaldpiret opened this issue 3 years ago • 1 comments

Hello, I'm following the nodejs example in the example dir but am having some issues supported pasted text. It seems to append tilde's (~) around the pasted content (and only when setting the stdin into raw mode, without it I seem to be getting the control characters).

eg. irb(main):001:0> ^[[200~www.sephora.sg^[[201~

Is there any way to fix that?

donaldpiret avatar Nov 25 '21 07:11 donaldpiret

That suggests a CLI application (e.g. irb) enabled bracketed-paste mode, but is not actually handling the control codes (which are added by your terminal, not SSM). I wouldn't think SSM can/should do anything to modify the data.

These are the usual options:

  1. The receiving application (irb) needs to handle the control codes, or
  2. Whatever enabled bracketed-paste mode... should not. (Possibly something in your .bashrc/.zshrc/etc?)

justinmk3 avatar Nov 29 '21 18:11 justinmk3