Announcement

Collapse
No announcement yet.

dos colors

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • dos colors

    hello i am doing a big proggie
    and i need to use some ANSI codes graphics support.
    i searched the net for explaining on the way it work
    but didnt find
    and i saw dave navvaro example of ansi graphics taken
    from tom hanlin lib' for QB but i didnt understand
    the way it really works.
    if u have simple code and other good info plz reply.

    10x

    ------------------
    -----------
    Peace.

  • #2
    Originally posted by Peter Lutz:
    hello i am doing a big proggie
    and i need to use some ANSI codes graphics support.
    i searched the net for explaining on the way it work
    but didnt find
    I have a Library for PB v3.5 w/source code that has several ANSI code
    routines included. It is available here on the PB Website at: http://www.powerbasic.com/files/pub/...m/PB35Mdm2.zip


    Scott




    ------------------
    Scott Slater
    Summit Computer Networks
    www.summitcn.com
    Scott Slater
    Summit Computer Networks, Inc.
    www.summitcn.com

    Comment


    • #3
      10x scott
      but i dont need a lib
      i need a pure source.
      if u can help me i will be greatfull.


      ------------------
      -----------
      Peace.

      Comment


      • #4
        Originally posted by Peter Lutz:
        10x scott
        but i dont need a lib
        i need a pure source.
        if u can help me i will be greatfull.


        Peter,

        The full source is included with the library. The source to the
        library including ANSI encoding... If you need ANSI decoding
        routines let me know...



        ------------------
        Scott Slater
        Summit Computer Networks
        www.summitcn.com
        Scott Slater
        Summit Computer Networks, Inc.
        www.summitcn.com

        Comment


        • #5
          ANSI Graphic is displayed with the TYPE command while in DOS or
          from a DOS shell from a program. Where you first have to load
          an ANSI.SYS driver from you Config.sys file when you boot to dos.
          Are you wanting to change your display colors while you are in DOS
          and not running any programs? When you type DIR, you get a list of
          files.

          Or are you wanting to decorate the screens in your programs that
          you write? If so, you might consider Extended ASCII Graphics that
          looks just like ANSI Graphics. The Codes are in the Back of your
          Manual. You use them with CHR$().

          ------------------

          Comment


          • #6
            scott it would be great if u will send me ANSI decoding routines
            that is what i need!
            a code that will help me understand ANSI deocoding...
            my main idea is to know how its so called Header
            and stuff

            my email:

            [email protected]

            10x for helping.



            ------------------
            -----------
            Peace.

            Comment


            • #7
              There is a link to his code in Scotts first message above...

              ------------------
              Lance
              PowerBASIC Support
              mailto:[email protected]om[email protected]</A>
              Lance
              mailto:[email protected]

              Comment


              • #8
                Download the library and see the file called DISPANSI.BAS, it is an
                ANSI decoding routine... I forgot about this one being in there,
                sorry. :P



                ------------------
                Scott Slater
                Summit Computer Networks
                www.summitcn.com
                Scott Slater
                Summit Computer Networks, Inc.
                www.summitcn.com

                Comment


                • #9
                  I know, it's a bit late, have'nt had a look into the Forum for
                  some time.

                  Are you trying to use Colors within PB compiled DOS programs or
                  at the DOS prompt ?

                  At the DOS prompt the "ESC" ANSI codes mentioned in previous
                  replys apply. In PB compiled DOS programs there is a way to use
                  all 16 Colors both as Foreground and Background Colors. One way
                  or the other, 16 colors is all you get in DOS ?

                  Want to know more ? E-Mail me on: [email protected]

                  ------------------

                  Comment


                  • #10
                    Yes, in text mode there are only 16 colors you can use at a time;
                    but on a VGA system you should be able to modify the color palette
                    with an Interrupt 10h call or with direct port writes.
                    (I do not have the exact references here about how it is done,
                    but I am sure you will find documentation for example in Ralf
                    Brown's Interrupt List and in other places.)

                    Hans Ruegg

                    Comment


                    • #11
                      Is there a program out there to design ANSI screens and have them BSAVEd to disk (then BLOADed)?

                      Paul


                      ------------------
                      Few cats act their age, while
                      most just cough up furballs.
                      Few cats act their age, while
                      most just cough up furballs.

                      Comment


                      • #12
                        Check out PSCRN_60.zip in the Downloads section:

                        http://www.powerbasic.com/files/pub/pbdos/tools/


                        ------------------
                        Tom Hanlin
                        PowerBASIC Staff

                        Comment

                        Working...
                        X