KoW for console applications added

This commit is contained in:
2021-01-08 18:39:17 +03:00
parent 305cd924f7
commit 5f3fca1705
29 changed files with 824 additions and 134 deletions

View File

@@ -7,20 +7,18 @@ var
CursorXY: TCursorXY;
begin
InitConsole('Date/Time');
InitConsole('Date/Time', True, 80, 25, 80, 25);
CursorOff;
GotoXY(27, 11);
GotoXY(27, 12);
Write(
'System Date and System Time'#10 +
' '
' '
);
CursorXY := WhereXY;
repeat
with GetSystemDate do
con_printf('%02x.%02x.%02x', Day, Month, Year);
with GetSystemTime do
con_printf(' - %02x:%02x:%02x', Hours, Minutes, Seconds);
with GetSystemDate, GetSystemTime do
con_printf('%02x.%02x.%02x - %02x:%02x:%02x', Day, Month, Year, Hours, Minutes, Seconds);
GotoXY(CursorXY);
Delay(500);
until KeyPressed;