2
0

ConsoleOut.pas 838 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. program ConsoleOut;
  2. {$IFDEF MSWINDOWS}
  3. {$APPTYPE CONSOLE}
  4. {$ENDIF}
  5. {$MODE DELPHI}
  6. {$R *.res}
  7. uses
  8. SysUtils,
  9. Quick.Commons,
  10. Quick.Console;
  11. begin
  12. Application.Title:='ConsoleDemo';
  13. {$IFDEF MSWINDOWS}
  14. Application.Title:='ConsoleDemo';
  15. {$ENDIF}
  16. try
  17. Console.LogVerbose := LOG_DEBUG;
  18. writeln('Console Out Example');
  19. coutXY(10,10,'this line will be replaced by the next',etInfo);
  20. coutXY(10,10,'this line replaces previous',etSuccess);
  21. cout('Normal line 1',etInfo);
  22. coutBL('bottom line: 1',etInfo);
  23. cout('Normal line 2',etDebug);
  24. coutXY(10,5,'I''m here',etSuccess);
  25. cout('Normal line 3',etSuccess);
  26. coutBL('bottom line: 2',etInfo);
  27. coutBL('bottom line: 3',etInfo);
  28. ConsoleWaitForEnterKey;
  29. except
  30. on E: Exception do
  31. Writeln(E.ClassName, ': ', E.Message);
  32. end;
  33. end.