From 1f636bd8ddae9d69c416f35cf0fb9e5b1fce044b Mon Sep 17 00:00:00 2001 From: bagajjal Date: Tue, 16 Jan 2018 21:58:44 -0800 Subject: [PATCH] removed extra ; remove m while sending color code (#255) https://github.com/PowerShell/Win32-OpenSSH/issues/1005 --- contrib/win32/win32compat/shell-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/win32/win32compat/shell-host.c b/contrib/win32/win32compat/shell-host.c index 689a5b92c..5d5b0acd9 100644 --- a/contrib/win32/win32compat/shell-host.c +++ b/contrib/win32/win32compat/shell-host.c @@ -690,7 +690,7 @@ SendCharacter(HANDLE hInput, WORD attributes, wchar_t character) StringCbPrintfExA(Next, SizeLeft, &Next, &SizeLeft, 0, ";%u", Color); - StringCbPrintfExA(Next, SizeLeft, &Next, &SizeLeft, 0, ";%c", 'm'); + StringCbPrintfExA(Next, SizeLeft, &Next, &SizeLeft, 0, "%c", 'm'); if (bUseAnsiEmulation && attributes != pattributes) WriteFile(hInput, formatted_output, (DWORD)(Next - formatted_output), &wr, NULL);