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

Console

Library for Windows Console Applications using crt.pas

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Playcom Console Library

Purpose:

Library for Delphi-Console-Applications | Supports Windows 11 (and earlier)

  • Can be used to write modern and appealing console applications.
  • Should allow older (legacy) source code (Borland Pascal 7.0) to run under Windows.

Usage:

Include the location of the unit "crt.pas" to the searchpath in your project settings and add the unit to the uses-clauses of your project. For the use of extended functions of the library it could be necessary to add further units (e.g. "ply.console.pas", or "ply.console.extended.pas") to the uses-clauses. To demonstrate the use of the library, I have added Demo-Applications.

Feature-List:

  • Largely compatible with legacy code (Borland Pascal 7.0)
  • Different fonts and font sizes
  • Any size of the console window
  • Enhanced Input- and Output-Functions
  • FrameWindow & LineSelect
  • Extended color-support (16 background colors, colorcodes freely selectable)
  • Underline & Outline Text
  • Full keyboard support
  • AnsiString and UnicodeString support (including e.g. chinese characters)
  • ScreenSave & ScreenRestore (save to memory or disk)
  • Move console-window on any position on the desktop (includes multi-monitor-support)
  • Change all console-modes (LineWarp, Opacity, QuickEditMode, etc.) directly from the software
  • and many more

Minimal Console-App:

pascal
program Demo01_Minimal_Console_App;
uses crt;
begin
  TextBackground(White);
  Textcolor(Red);
  ClrScr;
  Writeln('Hello World!');
  Readkey;
end.

Contributions:

Contributions are welcome, either as Pull Requests or bug reports. If you want to report a bug or you are missing a feature, contact me by email (wolfgang[at]playcom.de).

Screenshots:

Demo01

Demo02

Demo03

Demo04

Demo05

Demo06

Demo07

Demo08

Demo08