Results 1 to 2 of 2

Thread: Anybody familiars with the old DOS-apps?

  1. #1
    AbsolutFDM
    Guest

    Smile Anybody familiars with the old DOS-apps?

    Hi everyone,

    I just came across an old DOS-apps program written in C. Screenshot of the program is attached.
    Anyway, It has two so-called textboxes, which will take 2 string inputs (one for username, and the other one for password). Each input is at most 8 characters, so when you enter the first textbox with 8 chars already, the cursor will sit still and the program does not response to additional keyboard input, except for backspace (delete the character) and enter (go to the second textbox).
    The second textbox behaves the same, except when you click enter, it will try to match username and password you have just filled.

    I'm just curious how to draw all the graphics, and do the "limiting input" to only 8 characters.

    Thanks ppl!

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    The drawing could probably be done with good usage of colored text. The other thing could be done with a keyboard interrupt handler (a function that gets called every time a key is pressed)
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width