mirror of
https://github.com/vapaamies/KolibriOS.git
synced 2025-09-22 23:23:49 +02:00
KoW for console applications added
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user