Jump to content
Vincent Parrett

VSoft.System.Console - Delphi implementation of c# Console class

Recommended Posts

Hi All

 

This is a port of the dotnet/c# Console class, which makes easy to do things like set colors, move the cursor etc. 

 

https://github.com/VSoftTechnologies/VSoft.System.Console

Currently only Windows supported, however it's architected so that other platforms can be added - happy to take pull requests for that if anyone wants to add other platforms.  

 

Supports Delphi XE3 or later (compiles with XE2 but encoding issues stop it from working correctly). 

 

  • Like 2
  • Thanks 1

Share this post


Link to post

The valid sizes will depend on your screen resolution. on my machine I get

 

LargestWindowHeight 85  
LargestWindowWidth 320

 

So that call to SetWindowSize is out of bounds for your machine. I guess I should make the demo use more conservative values.

 

 

  • Like 1

Share this post


Link to post

New one

//    Console.SetWindowSize(200,60);
    Console.SetWindowSize(150,48);

 

Now Ok, but stack does nothing What is supposed to do?

 

turned endlessly

    while true do
      Sleep(200);
 

Screenshot - 31_03_2025 , 11_37_20.jpg

Edited by limelect

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×