(Gast)
n/a Beiträge
|
Re: Konsoleninhalt löschen
15. Okt 2006, 22:09
Morgen. ( )
Delphi-Quellcode:
procedure ClrScr;
var
tc: tcoord;
nw: Cardinal;
cbi: TConsoleScreenBufferInfo;
begin
getConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), cbi);
tc.x := 0;
tc.y := 0;
FillConsoleOutputAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
textattribute, cbi.dwsize.x * cbi.dwsize.y, tc, nw);
FillConsoleOutputCharacter(GetStdHandle(STD_OUTPUT_HANDLE),
#32, cbi.dwsize.x * cbi.dwsize.y, tc, nw);
setConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), tc);
end;
http://www.delphi-forum.de/viewtopic.php?p=14183#14183
|
|
Zitat
|