rheostat2718 / conemu-maximus5

Automatically exported from code.google.com/p/conemu-maximus5
7 stars 1 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by mikus...@gmail.com on 22 Jan 2013 at 11:59

GoogleCodeExporter 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".

Original comment by ConEmu.Maximus5 on 22 Jan 2013 at 12:31

GoogleCodeExporter 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.

Original comment by mikus...@gmail.com on 22 Jan 2013 at 1:17

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

Original comment by ConEmu.Maximus5 on 23 Jan 2013 at 10:05

GoogleCodeExporter 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

Original comment by mikus...@gmail.com on 24 Jan 2013 at 8:53

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

Original comment by ConEmu.Maximus5 on 24 Jan 2013 at 9:04

GoogleCodeExporter 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.

Original comment by mikus...@gmail.com on 30 Jan 2013 at 8:42

GoogleCodeExporter commented 9 years ago

Original comment by ConEmu.Maximus5 on 23 Oct 2013 at 9:08

GoogleCodeExporter commented 9 years ago

Original comment by ConEmu.Maximus5 on 23 Oct 2013 at 10:06

GoogleCodeExporter 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.

Original comment by mikus...@gmail.com on 23 Oct 2013 at 12:03

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

Original comment by mikus...@gmail.com on 23 Oct 2013 at 12:05