Fixed copy paste Terminal related issues (#80)
PowerShell/Win32-OpenSSH#527 PowerShell/Win32-OpenSSH#515
This commit is contained in:
parent
a73b5d6def
commit
c4a9f83682
|
@ -222,7 +222,8 @@ ProcessIncomingKeys(char * ansikey)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nKey == index)
|
if (nKey == index)
|
||||||
SendKeyStroke(child_in, 0, ansikey[0]);
|
for(int i=0; i < strlen(ansikey); i++)
|
||||||
|
SendKeyStroke(child_in, 0, ansikey[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -807,15 +808,15 @@ DWORD WINAPI
|
||||||
ProcessPipes(LPVOID p)
|
ProcessPipes(LPVOID p)
|
||||||
{
|
{
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
DWORD dwStatus;
|
DWORD dwStatus;
|
||||||
|
char buf[128];
|
||||||
|
|
||||||
/* process data from pipe_in and route appropriately */
|
/* process data from pipe_in and route appropriately */
|
||||||
while (1) {
|
while (1) {
|
||||||
char buf[128];
|
|
||||||
ZeroMemory(buf, 128);
|
ZeroMemory(buf, 128);
|
||||||
DWORD rd = 0, wr = 0, i = -1;
|
DWORD rd = 0, wr = 0, i = -1;
|
||||||
|
|
||||||
GOTO_CLEANUP_ON_FALSE(ReadFile(pipe_in, buf, 128, &rd, NULL));
|
GOTO_CLEANUP_ON_FALSE(ReadFile(pipe_in, buf, 127, &rd, NULL)); /* read bufsize-1 */
|
||||||
bStartup = FALSE;
|
bStartup = FALSE;
|
||||||
while (++i < rd) {
|
while (++i < rd) {
|
||||||
INPUT_RECORD ir;
|
INPUT_RECORD ir;
|
||||||
|
|
Loading…
Reference in New Issue