Thread: Output in DOS Prompt

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    6

    Output in DOS Prompt

    When the line is too long, it will break to a new line, is there any method to avoid automatic line break in the output?

  2. #2
    Registered User Pioneer's Avatar
    Join Date
    Dec 2002
    Posts
    59
    Not really, but if you don't care about the program being used elsewhere you can find the number of columns in the prompt and control the break, like
    Code:
    I am a pion
    eer
    when you control it would be
    Code:
    I am a
    pioneer
    It's not hard to write, just count the letters before another whitespace and if it's more than you have left on the row, break the line before starting the word.

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    6
    Can I keep the string in one line?

    I am a pioneer

    Can make the DOS Prompt windows has a scroll bar at the horizontal, therefore to keep it non-break line?

  4. #4
    Registered User Pioneer's Avatar
    Join Date
    Dec 2002
    Posts
    59
    Probably not, and that kind of thing goes outside of C, so you should ask this question in the DOS forum.

  5. #5
    Registered User
    Join Date
    Nov 2002
    Posts
    6
    oh....
    thank you!


    and sorry for my question...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. dos to window
    By Eavan Hyde in forum Windows Programming
    Replies: 2
    Last Post: 03-18-2004, 01:24 AM
  2. Direct Connect between XP and DOS
    By lightatdawn in forum Tech Board
    Replies: 0
    Last Post: 01-22-2004, 11:22 PM
  3. Password prompt in unix w/o \b
    By rafe in forum C++ Programming
    Replies: 1
    Last Post: 10-09-2002, 08:54 AM
  4. 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
  5. DOS program versus DOS console program
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-10-2002, 01:42 PM