Author Topic: Messing with the Windows console (ASCII graphics)  (Read 7304 times)

0 Members and 1 Guest are viewing this topic.

Offline Pixel_Outlaw

  • Pentium
  • *****
  • Posts: 1382
  • Karma: 83
    • View Profile


Currently I'm still trucking away on learning C++ and I found a cool page that shows how to create games and demos made of ASCII text.

Might be useful for some retro fun.

http://benryves.com/tutorials/?t=winconsole
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: Messing with the Windows console (ASCII graphics)
« Reply #1 on: August 12, 2008 »
Thanks ... the other tutorials are nice and simple, too!
Nice link - thanks, PO - ahh ... and of course looking
forward to your creations !
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Pixel_Outlaw

  • Pentium
  • *****
  • Posts: 1382
  • Karma: 83
    • View Profile
Re: Messing with the Windows console (ASCII graphics)
« Reply #2 on: August 20, 2008 »
I just compiled and ran the sample painting program there. It started using 100% of my RAM. Does anyone see why?

Perhaps it wasn't such a good tutorial site if this problem is common.
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Messing with the Windows console (ASCII graphics)
« Reply #3 on: August 20, 2008 »
I've just had a look for you and I didn't spot anything immediately wrong with the code...but I could easily have missed something.  Can you pin it down to doing certain things that cause the leak, like clicking the mouse?

Jim
Challenge Trophies Won:

Offline Pixel_Outlaw

  • Pentium
  • *****
  • Posts: 1382
  • Karma: 83
    • View Profile
Re: Messing with the Windows console (ASCII graphics)
« Reply #4 on: August 24, 2008 »
I've just had a look for you and I didn't spot anything immediately wrong with the code...but I could easily have missed something.  Can you pin it down to doing certain things that cause the leak, like clicking the mouse?

Jim



Even if the whole program inside Main() is removed, it still causes the RAM to rocket to 100% in the task manager. This is really quite odd. I wonder if it is another Vista bug.
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Messing with the Windows console (ASCII graphics)
« Reply #5 on: August 24, 2008 »
PO: Try to add:
Code: [Select]
Sleep(10);in the program main loop...
Challenge Trophies Won:

Offline Pixel_Outlaw

  • Pentium
  • *****
  • Posts: 1382
  • Karma: 83
    • View Profile
Re: Messing with the Windows console (ASCII graphics)
« Reply #6 on: August 24, 2008 »
PO: Try to add:
Code: [Select]
Sleep(10);in the program main loop...

Ahhh thank you very much! Have some karma. Could you maybe explain why this program needs this command?
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: Messing with the Windows console (ASCII graphics)
« Reply #7 on: August 25, 2008 »
With Sleep you give back the processor power to the system / Windows.
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Messing with the Windows console (ASCII graphics)
« Reply #8 on: August 25, 2008 »
So it was using 100% CPU not 100% RAM?

Jim
Challenge Trophies Won:

Offline Pixel_Outlaw

  • Pentium
  • *****
  • Posts: 1382
  • Karma: 83
    • View Profile
Re: Messing with the Windows console (ASCII graphics)
« Reply #9 on: August 25, 2008 »
Yes, I transposed the little windows in the utility.  :xmas:
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Messing with the Windows console (ASCII graphics)
« Reply #10 on: August 26, 2008 »
doh!

Jim
Challenge Trophies Won:

Offline Moroboshisan

  • Senior Member
  • Amiga 1200
  • ********
  • Posts: 454
  • Karma: 18
  • C=64
    • View Profile
Re: Messing with the Windows console (ASCII graphics)
« Reply #11 on: October 21, 2008 »
Might be useful for some retro fun.

maybe someone will take a look at http://tmdc.scene.org/tmdc-template.zip  :whisper:

TMDC site says:
"October 19th, 2008: Demo template released!
For every newcomer, we made an textmode demo template. It contains everything needed to make a basic textmode demo (libcaca, fmod, syncing, basic fx). One could *almost* just take the framework, remake the assets, and have something interresting out of that!
"

could it be useful? cheers

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Messing with the Windows console (ASCII graphics)
« Reply #12 on: October 21, 2008 »
That's an excellent initiative btw, Northern Dragons really rule at TDMC.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Hezad

  • Sponsor
  • Pentium
  • *******
  • Posts: 613
  • Karma: 44
  • I believe .. in Patrick.
    • View Profile
    • Hezad.com Web hosting
Re: Messing with the Windows console (ASCII graphics)
« Reply #13 on: October 21, 2008 »
Very cool link Pixel :) The tutorial about 3d tunnel is pretty cool too :p

 :goodpost:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Messing with the Windows console (ASCII graphics)
« Reply #14 on: October 21, 2008 »
@Moroboshisan: Very cool and usefull indeed, nice find dude. I'm quite fond of the Text Mode demos.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Moroboshisan

  • Senior Member
  • Amiga 1200
  • ********
  • Posts: 454
  • Karma: 18
  • C=64
    • View Profile
Re: Messing with the Windows console (ASCII graphics)
« Reply #15 on: October 22, 2008 »
@Moroboshisan: Very cool and usefull indeed, nice find dude. I'm quite fond of the Text Mode demos.

Thanks mate, don't forget to take a look at http://www.taat.fi/tmdc/tmdc5inv_src.zip also! If you haven't seen it yet ;D

some years ago I found it quite interesting to take a look at but my coding skills are so basic (actually just some poor console STDOUT done in C and very little time to experiment due to RealLifeBusiness[TM]...) that I was unable to undestand anything about effects (my memory relies onto C64 tasm monolithic-coding[which I forgot during years due to lack of interest  :whack: ... How wrong I feel now!!!], so i'm actually unable to follow multiple file projects... I simply feel my mind lost after few jumps  :boxer: )

But I think that information sharing could help the whole community to grow and improve, so I'm happy to post links to useful things I have discovered diggin' the net during the last 5 years or so.

Happy Hacking! ;-)

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Messing with the Windows console (ASCII graphics)
« Reply #16 on: October 22, 2008 »
Always been fascinated by ascii / ansi stuff. :D

Cheers for the taat linkie poos, thats a shame that they are closing the doors to Text Mode Demo Competitions.

Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won: