Skip to content

special chars change when copy-paste #145

@Mordecaine

Description

@Mordecaine

Hello,

If I open a cssh session in my X-Terminal and copy-paste a special character, the character on the target system changed.

An example.
If I paste "[Unit]" to the cssh window, the following characters will be included:
image

So I started a new Session with debug level 3 and got the following Debug output:

PASTE EVENT
Got text :[Unit]:
servers{msd-ic-ma01 }{wid}=106954786
Sending to 'msd-ic-ma01 ' text:[Unit]:
Looking for char :[: with ord :91:
Looking for keycode :91:
Looking for keysym  :bracketleft:
Looking for keyboardmap :a34:
keyboardmap=:a34:
state=a, code=34
returning state=:128: code=:34:
Got state :128: code :34:
sending event=KeyPress code=:34: state=:128:
sending event=KeyRelease code=:34: state=:128:
Looking for char :U: with ord :85:
Looking for keycode :85:
Looking for keysym  :U:
Looking for keyboardmap :s30:
keyboardmap=:s30:
state=s, code=30
returning state=:1: code=:30:
Got state :1: code :30:
sending event=KeyPress code=:30: state=:1:
sending event=KeyRelease code=:30: state=:1:
Looking for char :n: with ord :110:
Looking for keycode :110:
Looking for keysym  :n:
Looking for keyboardmap :n57:
keyboardmap=:n57:
state=n, code=57
returning state=:0: code=:57:
Got state :0: code :57:
sending event=KeyPress code=:57: state=:0:
sending event=KeyRelease code=:57: state=:0:
Looking for char :i: with ord :105:
Looking for keycode :105:
Looking for keysym  :i:
Looking for keyboardmap :n31:
keyboardmap=:n31:
state=n, code=31
returning state=:0: code=:31:
Got state :0: code :31:
sending event=KeyPress code=:31: state=:0:
sending event=KeyRelease code=:31: state=:0:
Looking for char :t: with ord :116:
Looking for keycode :116:
Looking for keysym  :t:
Looking for keyboardmap :n28:
keyboardmap=:n28:
state=n, code=28
returning state=:0: code=:28:
Got state :0: code :28:
sending event=KeyPress code=:28: state=:0:
sending event=KeyRelease code=:28: state=:0:
Looking for char :]: with ord :93:
Looking for keycode :93:
Looking for keysym  :bracketright:
Looking for keyboardmap :a35:
keyboardmap=:a35:
state=a, code=35
returning state=:128: code=:35:
Got state :128: code :35:
sending event=KeyPress code=:35: state=:128:
sending event=KeyRelease code=:35: state=:128:

Second example:
copy string: !"§$%&/()=?`{[]}
image

Is there a configuration failure on my site?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions