Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

VSoft.System.Console

Delphi implementation of dotnet's System.Console

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

VSoft.System.Console

A Delphi port of the dotnet System.Console class.

Installation

DPM

Install VSoft.System.Console in the DPM IDE plugin, or

pascal
dpm install VSoft.System.Console .\yourproject.dproj

Manually

Clone the repository and add the System.Console.pas file to your project, or add the repo\src folder to your project's search path.

Usage

The Console class is a static class, so you use it just like in C#

delphi
uses
  System.Console;

begin
  Console.SetColors(TConsoleColor.Yellow, TConsoleColor.DarkBlue);
  Console.Clear;
  Console.SetCursorPosition(20,0);
  Console.WriteLine('abcdef');
  Console.ReadLine();
end;