Maximus5 / conemu-old-issues

Old issues imported from googlecode. Project was moved to
https://conemu.github.io
6 stars 1 forks source link

Plink tab paste issue - random characters substituted by "?" #903

Open Maximus5 opened 9 years ago

Maximus5 commented 9 years ago

Originally reported on Google Code with ID 903

Required information!
OS version: Win7 x64
ConEmu version: 130120 x86

*Bug description*
When a tab is opened with plink Com connection, pasting text gives garbage sometimes
(question marks in place of characters or missing characters). 

*Steps to reproduction*
1. Run a tab with a command (e.g)">C:\Software\plink.exe -load ConEmuCom1", where ConEmuCom1
is a connection to com port with settings: 9600, 8bits, 1stop, no parity, no flow control.
Connection is previously setup with Putty and saved under ConEmuCom1 name. The 9600
speed may be important - the console cant accept the number of characters ConEmu is
trying to push thrugh.

2. Paste long text (several times - in my case ~4 is enough) e.g: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

3. Observe on the ConEmu plink tab that some of characters were lost or changed into
"?"

4. The same may be done from plain cmd terminal or plink in cmd terminal to see that
it doesn't occur there. Just in plink in ConEmu.

Reported by mikuslaw on 2013-01-22 11:59:43

Maximus5 commented 9 years ago
I suppose this is the issue for plink. ConEmu sent keypresses to console. It is console
app responsibility to process them. Also, I believe you'll get same result on "fast
typing".

Reported by ConEmu.Maximus5 on 2013-01-22 12:31:35

Maximus5 commented 9 years ago
I can't get the same issue when "bashing" on the keyboard - I can't get to 9600bits/s
of course. The issue is not there when I open plink from cmd.exe, so I would guess
there is something going on with ConEmu.
I just did a test:
1. Opened cmd.exe (out of ConEmu)
2. Run plink.exe -load ConEmuCom1 in cmd.exe
3. Try to paste text. No issue.
4. Use ConEmu to attach (Win+G) to cmd.exe with plink opened (the same cmd.exe as previously)
5. Try to paste text. The issue is there. Characters substituted by "?"

It would be weird that plink works in cmd.exe and not in ConEmu. That is the only issue
that spoils the fun for me in working with ConEmu, so just let me know what could I
do to track the root-cause.

Reported by mikuslaw on 2013-01-22 13:17:00

Maximus5 commented 9 years ago
Any suggestion how can I reproduce this issue? What "server" I need to use for serial
connection?

Reported by ConEmu.Maximus5 on 2013-01-23 22:05:10

Maximus5 commented 9 years ago
Hi,
I can reproduce it with any "server". The same happens when I connect to telnet server
with plink (I add to ConEmu a tab that opens the connection in plink). Probably any
connection in plink will do (ssh etc). 
With telnet though I need to try some more times to paste the text to see the question
marks (~10). Maybe the telnet accepts the characters faster.
Let me know if I can help you in any way (some debug info, logs etc).

I tried to use this config with such devices (and saw the issue with all of them):
- Cisco ASA 5505
- Windriver RedBox (over serial line)
- Our embedded module we develop (over serial line at 9600)
- Windriver RedBox (over telnet)

I think it will happend with any of plink connections.

Regrads,
Jerzy

Reported by mikuslaw on 2013-01-24 08:53:22

Maximus5 commented 9 years ago
More intersting results we get while executing macro like this
print("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")

Reported by ConEmu.Maximus5 on 2013-01-24 21:04:54

Maximus5 commented 9 years ago
Sorry for the delay. 
I wasn't at work (I have windows and conemu at work only), so I was not able to test
it. I tried the macro and what I see is that the "?" is placed not instead of a letter
but in addition. I suppose that is what you meant by interesting. I   agree that it
is a bit weird.
Thank you for your effort.

BTW. I don't see any changes on the 130128 version that could touch this issue, but
will check it and if there are any differences, I will report.

Reported by mikuslaw on 2013-01-30 08:42:23

Maximus5 commented 9 years ago

Reported by ConEmu.Maximus5 on 2013-10-23 09:08:57

Maximus5 commented 9 years ago

Reported by ConEmu.Maximus5 on 2013-10-23 10:06:10

Maximus5 commented 9 years ago
Hi, I see that you are taking a look into the issue. I'm installing the newest dev version
to confirm it's still there. Let me know if I'm able to assist you in any way.
Thank you for your time.

Reported by mikuslaw on 2013-10-23 12:03:14

Maximus5 commented 9 years ago
Dev version: ConEmu 131020 [32] the issue is showing up.

Reported by mikuslaw on 2013-10-23 12:05:46