Text-Based Windows Library

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hstagni

    Text-Based Windows Library

    Where can I find a library to created text-based windows applications?
    Im looking for a library that can make windows and buttons inside
    console.. Many old apps were make like this, i guess

    _______________ _______________ ______
    | |
    | ------------------ |
    | | BUTTON | |
    | ------------------ |
    | |
    | |
    L______________ ___ _______________ __|

    I tried to draw a window here, but im looking for something better
    than that,,huahua

  • SM Ryan

    #2
    Re: Text-Based Windows Library

    "hstagni" <stagni@gmail.c omwrote:
    # Where can I find a library to created text-based windows applications?

    Possibly....on Unix the library is called curses. If you google
    "curses library windows" it will show you some candidate libraries
    you can investigate. Using curses will simplify porting to Unix
    if you should ever want to.


    # Im looking for a library that can make windows and buttons inside
    # console.. Many old apps were make like this, i guess
    #
    # _______________ _______________ ______
    # | |
    # | ------------------ |
    # | | BUTTON | |
    # | ------------------ |
    # | |
    # | |
    # L______________ ___ _______________ __|
    #
    # I tried to draw a window here, but im looking for something better
    # than that,,huahua
    #
    #
    #

    --
    SM Ryan http://www.rawbw.com/~wyrmwif/
    You hate people.
    But I love gatherings. Isn't it ironic.

    Comment

    • bytebro

      #3
      Re: Text-Based Windows Library

      On 12 Apr, 11:46, "hstagni" <sta...@gmail.c omwrote:
      Where can I find a library to created text-based windows applications?
      Im looking for a library that can make windows and buttons inside
      console.. Many old apps were make like this, i guess
      If you are looking for a commercial option, Liant apparently still
      sell their ancient C-Scape product, which was not too awful to use,
      and pretty powerful for its day.

      See http://www.liant.us/legacy-products/...-products.html

      Comment

      • Martin Ambuhl

        #4
        Re: Text-Based Windows Library

        hstagni wrote:
        Where can I find a library to created text-based windows applications?
        Im looking for a library that can make windows and buttons inside
        console.. Many old apps were make like this, i guess
        There are many implementations of curses (ncurses and pdcurses among
        them), and the odds are good that your platform has one available. A
        short session with a search engine should help you. However, such
        packages are not topical in comp.lang.c. If you have questions or need
        help beyond the documentation, you need to check with the maintainers or
        such packages, or with technical support, or with a mailing list or
        newsgroup where those application packages are discussed.

        Comment

        • Chris Johnson

          #5
          Re: Text-Based Windows Library

          On Apr 12, 5:46 am, "hstagni" <sta...@gmail.c omwrote:
          Where can I find a library to created text-based windows applications?
          Im looking for a library that can make windows and buttons inside
          console.. Many old apps were make like this, i guess
          >
          _______________ _______________ ______
          | |
          | ------------------ |
          | | BUTTON | |
          | ------------------ |
          | |
          | |
          L______________ ___ _______________ __|
          >
          I tried to draw a window here, but im looking for something better
          than that,,huahua
          If I remember properly (not programming Windows, myself), the conio.h
          header is the Windows equivalent of curses.

          Comment

          • user923005

            #6
            Re: Text-Based Windows Library

            On Apr 12, 3:46 am, "hstagni" <sta...@gmail.c omwrote:
            Where can I find a library to created text-based windows applications?
            Im looking for a library that can make windows and buttons inside
            console.. Many old apps were make like this, i guess
            >
            _______________ _______________ ______
            | |
            | ------------------ |
            | | BUTTON | |
            | ------------------ |
            | |
            | |
            L______________ ___ _______________ __|
            >
            I tried to draw a window here, but im looking for something better
            than that,,huahua
            DDJ had a project for a character based user interface a few years ago
            called D-flat.
            ftp://ftp.mv.com/pub/ddj/packages/dflt20.zip

            Comment

            • Tak-Shing Chan

              #7
              Re: [OT] Text-Based Windows Library

              On Thu, 12 Apr 2007, user923005 wrote:
              On Apr 12, 3:46 am, "hstagni" <sta...@gmail.c omwrote:
              >Where can I find a library to created text-based windows applications?
              >Im looking for a library that can make windows and buttons inside
              >console.. Many old apps were make like this, i guess
              >>
              >______________ _______________ _______
              > | |
              > | ------------------ |
              > | | BUTTON | |
              > | ------------------ |
              > | |
              > | |
              > L______________ ___ _______________ __|
              >>
              >I tried to draw a window here, but im looking for something better
              >than that,,huahua
              >
              DDJ had a project for a character based user interface a few years ago
              called D-flat.
              ftp://ftp.mv.com/pub/ddj/packages/dflt20.zip
              [OT] Isn't D-flat the same as C-sharp? I hope Microsoft
              wouldn't sue them for trademark infringement. <g,d&r>

              Tak-Shing

              Comment

              • Clever Monkey

                #8
                Re: [OT] Text-Based Windows Library

                Tak-Shing Chan wrote:
                On Thu, 12 Apr 2007, user923005 wrote:
                >
                >On Apr 12, 3:46 am, "hstagni" <sta...@gmail.c omwrote:
                >>Where can I find a library to created text-based windows applications?
                >>Im looking for a library that can make windows and buttons inside
                >>console.. Many old apps were make like this, i guess
                >>>
                >>_____________ _______________ ________
                >> | |
                >> | ------------------ |
                >> | | BUTTON | |
                >> | ------------------ |
                >> | |
                >> | |
                >> L______________ ___ _______________ __|
                >>>
                >>I tried to draw a window here, but im looking for something better
                >>than that,,huahua
                >>
                >DDJ had a project for a character based user interface a few years ago
                >called D-flat.
                >ftp://ftp.mv.com/pub/ddj/packages/dflt20.zip
                >
                [OT] Isn't D-flat the same as C-sharp? I hope Microsoft
                wouldn't sue them for trademark infringement. <g,d&r>
                >
                [So very OT]

                It depends on where you start counting the intervals.

                Comment

                • Tak-Shing Chan

                  #9
                  Re: [OT] Text-Based Windows Library

                  On Thu, 12 Apr 2007, Clever Monkey wrote:
                  Tak-Shing Chan wrote:
                  >On Thu, 12 Apr 2007, user923005 wrote:
                  >>
                  >>On Apr 12, 3:46 am, "hstagni" <sta...@gmail.c omwrote:
                  >>>Where can I find a library to created text-based windows applications?
                  >>>Im looking for a library that can make windows and buttons inside
                  >>>console.. Many old apps were make like this, i guess
                  >>>>
                  >>>____________ _______________ _________
                  >>> | |
                  >>> | ------------------ |
                  >>> | | BUTTON | |
                  >>> | ------------------ |
                  >>> | |
                  >>> | |
                  >>> L______________ ___ _______________ __|
                  >>>>
                  >>>I tried to draw a window here, but im looking for something better
                  >>>than that,,huahua
                  >>>
                  >>DDJ had a project for a character based user interface a few years ago
                  >>called D-flat.
                  >>ftp://ftp.mv.com/pub/ddj/packages/dflt20.zip
                  >>
                  > [OT] Isn't D-flat the same as C-sharp? I hope Microsoft
                  >wouldn't sue them for trademark infringement. <g,d&r>
                  >>
                  [So very OT]
                  >
                  It depends on where you start counting the intervals.
                  [OT] Why should Microsoft care about theory? As far as
                  MIDI is concerned, D-flat == C-sharp (mod 12). ;-)

                  Tak-Shing

                  Comment

                  • Charlton Wilbur

                    #10
                    Re: [OT] Text-Based Windows Library

                    >>>>"CM" == Clever Monkey <spamtrap@cleve rmonkey.orgwrit es:

                    CMTak-Shing Chan wrote:
                    >[OT] Isn't D-flat the same as C-sharp? I hope Microsoft
                    >wouldn't sue them for trademark infringement. <g,d&r>
                    CM[So very OT]
                    CMIt depends on where you start counting the intervals.

                    [While we're OT]

                    Actually, it depends on what your tuning system is. In equal
                    temperament, for instance, they're the same pitch, and which one you
                    use is a matter of semantics to convey the meaning you want it to
                    have. In just intonation, they're different pitches.

                    Charlton




                    --
                    Charlton Wilbur
                    cwilbur@chromat ico.net

                    Comment

                    • Tak-Shing Chan

                      #11
                      Re: [OT] Text-Based Windows Library

                      On Thu, 12 Apr 2007, Charlton Wilbur wrote:
                      >>>>>"CM" == Clever Monkey <spamtrap@cleve rmonkey.orgwrit es:
                      >
                      CMTak-Shing Chan wrote:
                      >
                      >[OT] Isn't D-flat the same as C-sharp? I hope Microsoft
                      >wouldn't sue them for trademark infringement. <g,d&r>
                      >
                      CM[So very OT]
                      CMIt depends on where you start counting the intervals.
                      >
                      [While we're OT]
                      >
                      Actually, it depends on what your tuning system is. In equal
                      temperament, for instance, they're the same pitch, and which one you
                      use is a matter of semantics to convey the meaning you want it to
                      have. In just intonation, they're different pitches.
                      [OT] If Microsoft do early music, they'll probably patent the
                      concept of tuning systems (before putting it in the latest
                      version of Windows Media Player)...

                      Tak-Shing

                      Comment

                      • Richard Bos

                        #12
                        Re: Text-Based Windows Library

                        "Chris Johnson" <effigies@gmail .comwrote:
                        On Apr 12, 5:46 am, "hstagni" <sta...@gmail.c omwrote:
                        Where can I find a library to created text-based windows applications?
                        If I remember properly (not programming Windows, myself), the conio.h
                        header is the Windows equivalent of curses.
                        You don't remember properly. Also, for those implementations where it
                        is, large parts of it it aren't. IOW, don't expect to replace curses
                        with conio without a lot of work; and ask for help with it in a group
                        where conio is on-topic. Something like comp.os.msdos.p rogrammer,
                        perhaps?

                        Richard

                        Comment

                        • Richard Bos

                          #13
                          Re: [OT] Text-Based Windows Library

                          Tak-Shing Chan <t.chan@gold.ac .ukwrote:
                          On Thu, 12 Apr 2007, Clever Monkey wrote:
                          >
                          Tak-Shing Chan wrote:
                          On Thu, 12 Apr 2007, user923005 wrote:
                          >
                          >On Apr 12, 3:46 am, "hstagni" <sta...@gmail.c omwrote:
                          >>Where can I find a library to created text-based windows applications?
                          >>Im looking for a library that can make windows and buttons inside
                          >>console.. Many old apps were make like this, i guess
                          >>>
                          >>_____________ _______________ ________
                          >> | |
                          >> | ------------------ |
                          >> | | BUTTON | |
                          >> | ------------------ |
                          >> | |
                          >> | |
                          >> L______________ ___ _______________ __|
                          >>>
                          >>I tried to draw a window here, but im looking for something better
                          >>than that,,huahua
                          >>
                          >DDJ had a project for a character based user interface a few years ago
                          >called D-flat.
                          >ftp://ftp.mv.com/pub/ddj/packages/dflt20.zip
                          >
                          [OT] Isn't D-flat the same as C-sharp? I hope Microsoft
                          wouldn't sue them for trademark infringement. <g,d&r>
                          >
                          [So very OT]

                          It depends on where you start counting the intervals.
                          >
                          [OT] Why should Microsoft care about theory? As far as
                          MIDI is concerned, D-flat == C-sharp (mod 12). ;-)
                          Yes, but MIDI is an industry-wide Standard. Where M$ is concerned,
                          industry-wide Standards exist to be broken, by preference in the most
                          irritating and egregious manner possible.

                          Richard

                          Comment

                          • Clem Clarke

                            #14
                            Fast and Safe C Strings: User friendly C macros to Declare and useC Strings.

                            Some 20 years ago, it became clear that C strings were not as safe, nor
                            as fast, as strings in PL/I, Assembler or Pascal.

                            The primary reasons are that one needs to find the current length of a
                            string before or during a copy process - this is very time consuming.

                            Secondly, there is no way of determining the maximum length of a string,
                            and therefore when copying to a string, it is easy to over-write
                            adjacent storage with often disastrous consequences, including the
                            deliberate introduction of viruses.


                            Decades have passed and the C string problem continues. Buffer
                            over-runs are just part of the story, and the bugs that can be
                            introduced - the safety problem is still with us all and it has come
                            back to bite all of us on the lower part of our anatomy, over and over
                            again.

                            I have spent some years studying this problem and have developed some
                            User friendly C macros that solve the problem.

                            These solutions do enhance the speed and safety aspects of all "C"
                            programs - these benefits of speed and safety can be passed on to your
                            users.

                            The main benefits are:

                            * Increased speed (up to 20 times for some string handling)
                            * More reliability (strings cannot overwrite adjacent storage)
                            * Easier coding and debugging (consistent set of macros)
                            * Easier external variables

                            Here is a very short example:

                            dcl (op,charvar,253 ," ",ext); // Variable 'op' is defined
                            // as an External variable - Max length of 253 characters.
                            dcl (symbolic,charf ixed,8," ",ext); // Fixed length of 8

                            cpylit(op, "This is a 30 character string ");
                            cat(op,op); /* Concatenate variable op with it self. Now 60
                            characters */

                            cpy(symbolic,op ); /* Truncates it to 8 characters */

                            cpy(op,symbolic ); /* Copy it back. */

                            I invite you download the macros and code at
                            http://members.ozemail.com.au/~oscar.../fastsafe.html where a fuller
                            discussion can be found.



                            Clement Clarke



                            ,-._|\ Clement V. Clarke - Author Jol, EASYPANEL, OSCAR, 370TO486
                            / Oz \ Web: www.ozemail.com.au/~oscarptyltd
                            \_,--.x/ 38 Kings Park Road, West Perth, AUSTRALIA, 6005.
                            v Tel (61)-8-9324-1119, Mob 0401-054-155.


                            Comment

                            • Richard Heathfield

                              #15
                              Re: Fast and Safe C Strings: User friendly C macros to Declare and use C Strings.

                              Clem Clarke said:
                              Some 20 years ago, it became clear that C strings were not as safe,
                              nor
                              as fast, as strings in PL/I, Assembler or Pascal.
                              C strings are perfectly safe. Some people, however, should not be let
                              anywhere near a text editor.
                              The primary reasons are that one needs to find the current length of a
                              string before or during a copy process - this is very time consuming.
                              If you need to know it so often that calculating it is a bottleneck,
                              remember it. And if you don't, don't bother. Hardly difficult.

                              Secondly, there is no way of determining the maximum length of a
                              string,
                              Yes, there is. When you allocate its storage, you know how much you
                              allocated. Don't Forget.
                              Decades have passed and the C string problem continues.
                              What problem?

                              I have spent some years studying this problem and have developed some
                              User friendly C macros that solve the problem.
                              Aha! We're getting to your point...

                              <snip>
                              I invite you download the macros and code at
                              http://members.ozemail.com.au/~oscar.../fastsafe.html where a
                              fuller discussion can be found.
                              Convince me that it's worth my time.

                              --
                              Richard Heathfield
                              "Usenet is a strange place" - dmr 29/7/1999

                              email: rjh at the above domain, - www.

                              Comment

                              Working...