Can you "draw" in DOS?

This is a discussion on Can you "draw" in DOS? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I want to set a couple of simple graphics for dos in a dos-based program. Can I do this? Thanks. ...

  1. #1
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584

    Can you "draw" in DOS?

    I want to set a couple of simple graphics for dos in a dos-based program. Can I do this? Thanks.

    --Garfield
    1978 Silver Anniversary Corvette

  2. #2
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    your subject doesn't match what you said

  3. #3
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Sorry. My question is, can I code some simple drawings like circles, squares, etc.? Thanks.

    --Garfield
    1978 Silver Anniversary Corvette

  4. #4
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    well with dos, afaik, you have very limited choices,

    1. BGI,
    2. Allegro,
    3. Assembler.

    assembler is Pure DOS only, no command prompt assembly graphics with windows.
    Last edited by no-one; 10-08-2001 at 01:45 PM.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  5. #5
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    YOu don't actually have to use those. You can also make your own stuff, too. Check out www.brackeen.com for some tutorials. For things like circles, there is Bresenham's Circle Algorithm. Anyways, good luck.

  6. #6
    Former Member
    Join Date
    Oct 2001
    Posts
    955
    I really recommend you use Borland's BGI, It's easy to use and very flexible, there's also an example of bgi in the \BGI\ folder of Turbo C.

    remember to change the current directory to the BGI folder, or copy it's contents to \BIN\

    Good luck in your learning

    Oskilian

  7. #7
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    I don't think that you guys are really understanding my question.

    Can I make non-characters in DOS that will lead to simple graphics like a circle, square, etc.?

    --Garfield
    1978 Silver Anniversary Corvette

  8. #8
    Registered User
    Join Date
    Sep 2001
    Posts
    12
    Well, have you heard of ANSII? or are you talking about stuff like this:
    ************************************************** *************** My Program **************
    ************************************************** **
    THE Dark_Knight_506

  9. #9
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    no, not stuff like:
    **************************************************
    *************** My Program **************
    **************************************************
    **

    "real" drawing

  10. #10
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    maybe he means can he change the standard bitmapped data for the text characters... i don't think you can, maybe somehow... isn't it like, embedded into the bios or something like that? i'd figure so... something not in conventional ram... [not conventional as in 640k [though it might be], conventional as in... conventional...]
    hasafraggin shizigishin oppashigger...

  11. #11
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Yeh, doubleanti, that's pretty much what I mean. So, you can't do it? Oh well, I just wanted to full around with DOS a little. Nothing serious. Thanks.

  12. #12
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    right on bro... good thinking!

    eh... hehe... but i don't know how to do it... maybe it's somewhere in Ralph Browns Interrupt List... i've always thought that it was something sacred and closely tied to the system that it's set in stone and universal... so, can't help you that much further... sorry...

    hth [somehow]...
    hasafraggin shizigishin oppashigger...

  13. #13
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Okay, don't worry about not knowing it. It is definitely not necessary. I'm getting into Windows programming anyway. Thanks.

  14. #14
    Disagreeably Disagreeable
    Join Date
    Aug 2001
    Posts
    711
    >i don't think you can, maybe somehow... isn't it like, embedded into the bios or something like that?<

    Quite the contrary, DA.

    Here's a source file I got a while ago from Chris Giese.

    It basically changes the text mode. To change the actual font, you must screw with the font arrays. It's really simple.
    Attached Files Attached Files

  15. #15
    Disagreeably Disagreeable
    Join Date
    Aug 2001
    Posts
    711
    From what I've learned, the BIOS has a standard text mode font stored on chip. When the computer is turned on, that font gets copied to the video memory.

    If you can find and modify that data, then you can change the font. This is what the source file does.

    For each mode, there is a font. _bitmaps_8x8 and _bitmaps_8x16 I think. Each character is made up of either 8 or 16 values in hex. each hex value is a line of that character.

    The first 8 or 16 values in the font array is ASCII character 0. The second is ASCII character 1 and so on.

    A good program for editing fonts is the one found in 'tauron30'. Search for it on google.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File systems?? (Winxp -> DOS)
    By Shadow in forum Tech Board
    Replies: 4
    Last Post: 01-06-2003, 08:08 PM
  2. winver, winminor, winmajor can it be found from dos?
    By ronin in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-02-2002, 10:32 AM
  3. real mode dos & win dos
    By scott27349 in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-19-2002, 06:15 AM
  4. DOS program versus DOS console program
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-10-2002, 12:42 PM
  5. Shut off DOS screen automatically to Windows
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 11-08-2001, 06:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21