Alternate Console

Share your advanced PureBasic knowledge/code with the community.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Alternate Console

Post by JHPJHP »

Hi Derren,
Derren wrote:I just wanted to test your code. Sadly you offer it only on your website for a payment.
Correct, this has been in place since July 21, 2020, but for the previous 10 years it was free to download.

I haven't looked at Alternate Console for a couple years...
JHPJHP wrote:Alternate Console was probably my first attempt at creating something "useful" with PureBasic
Most of the programs I've written have been compiled to executables and can be freely downloaded from My PureBasic Stuff.
Unfortunately, Alternate Console is not currently one of them.

Is there something in particular you would like to demo, or was this just a passing interest?

NB*: I have already requested that all my downloads be moved to the Announcement forum to help avoid this type of confusion.
Last edited by JHPJHP on Wed Mar 16, 2022 2:23 am, edited 1 time in total.
User avatar
Derren
Enthusiast
Enthusiast
Posts: 313
Joined: Sat Jul 23, 2011 1:13 am
Location: Germany

Re: Alternate Console

Post by Derren »

it's okay.
I am currently using a console to display some status messages and I would have liked to add the ability to hide the console like a window and unhide it via systray or something. It's not possible to hide a console with PB commands and the APIs I found don't really work either. I think you provided a command to do exactly that.
But it's easily fixable. But you know, programmers and their lazyness :D
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Alternate Console

Post by JHPJHP »

Hi Derren,

Check your PM, I sent you a temporary link to the download.
JHPJHP wrote:I haven't looked at Alternate Console for a couple years...
I'm not sure it includes what your looking for, but maybe?
User avatar
HeX0R
Addict
Addict
Posts: 973
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Alternate Console

Post by HeX0R »

Maybe this is something you could use.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Alternate Console

Post by JHPJHP »

Updated:
- added SetConsoleFont (adjust console window size)
- added basic color to animation and drawing examples
- enabled DPI switch from compiler options

Animation created using Video Snipping Tool.
Image
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Alternate Console

Post by JHPJHP »

Updated:
- added RGB colors
- various improvements
- fixed a registry issue

Based on this forum question, the example alt_fill_chars.pb was modified to include RGB colors; added Mode 2.

Mode 0: Change the foreground and background character color using the limited color palette (default).
Mode 1: Change the foreground character color and the background character and console color using the limited color palette.
Mode 2: Change the foreground and background character color using the limited color palette, and the background console color using RGB.

NOTE: In Mode 2, set the foreground and/or background character color to zero for RGB color.
Locked