Commit 9934a8d0 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Save and restore cursor in WriteConsoleOutputA.

parent e15dff74
......@@ -733,6 +733,7 @@ BOOL WINAPI WriteConsoleOutputA( HANDLE hConsoleOutput,
);
GetConsoleScreenBufferInfo(hConsoleOutput, &csbi);
sprintf(sbuf,"%c7",27);SADD(sbuf);
/* Step 1. Make (Bottom,Right) offset of intersection with
Screen Buffer */
......@@ -809,7 +810,7 @@ BOOL WINAPI WriteConsoleOutputA( HANDLE hConsoleOutput,
CADD(lpBuffer[off].Char.AsciiChar);
}
}
sprintf(sbuf,"%c[0m",27);SADD(sbuf);
sprintf(sbuf,"%c[0m%c8",27,27);SADD(sbuf);
WriteFile(hConsoleOutput,buffer,bufused,&res,NULL);
HeapFree(GetProcessHeap(),0,buffer);
return TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment