Hi Ron,
Sure.
Form Ubuntu 16.04;
Copy n paste some string as a control:
charl@odalpha:/tmp$ echo "TEXT_TO_COPY"
TEXT_TO_COPY
charl@odalpha:/tmp$ # TEXT_TO_COPY
Log into cockroachdb CLI:
charl@odalpha:/tmp$ cockroach sql --certs-dir=/home/charl/.cockroach-certs/certs
# Welcome to the cockroach SQL interface.
# All statements must be terminated by a semicolon.
# To exit: CTRL + D.
#
# Server version: CockroachDB CCL v2.1.2 (x86_64-unknown-linux-gnu, built 2018/12/10 20:15:47, go1.10.3) (same version as client)
# Cluster ID: ffa26d39-17ef-4068-bf1d-f46668158234
#
# Enter \? for a brief introduction.
#
root@:26257/defaultdb>
Background/exit the CLI proc and try the copy n paste again:
charl@odalpha:/tmp$ # 0~TEXT_TO_COPY1~
I used the mouse to select the TEXT_TO_COPY from my terminal and pasted is back to the terminal using the keyboard.
Reset the bracketed paste for the current session and paste again:
charl@odalpha:/tmp$ printf "\e[?2004l"
charl@odalpha:/tmp$
charl@odalpha:/tmp$ # TEXT_TO_COPY
I added the hash (#) in front of each of the pastes to the terminal to avoid bash errors.
I am running Ubuntu 16.04 on OS X via VMWare Fusion. I access the environment using ssh via iTerm2. Access to our production clusters are also via iTerm2/ssh from OS X where we see the same issue.
This issue is not limited to me but everyone on my team that use the cockroachdb CLI.
Is there any other data I can provide for you to help trace this issue?
Ciao,
Charl