in reply to Re: Print string in same line
in thread Print string in same line
If the OP expects that some of the strings to print may decrease in length, then saving the length, so that an appropriate number of spaces can be added to shorter strings to wipe out the prior longer string, could be helpful.
Further, depending on the terminal (or console window) type, if the string exceeds the terminal's line width, there may be some wrap-around that is not recoverable, except via curses (Unix) or some other OS-specific facilities. If the OP expects that some of the lines may exceed the line width of the terminal, then some method of abbreviating the line, showing the most important data, and staying within the line width, could be helpful.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Print string in same line
by olus (Curate) on Jul 23, 2008 at 10:43 UTC | |
by ikegami (Patriarch) on Jul 23, 2008 at 18:43 UTC | |
by pau_G (Novice) on Jul 24, 2008 at 10:11 UTC | |
|
Re^3: Print string in same line
by pau_G (Novice) on Jul 23, 2008 at 09:50 UTC | |
by massa (Hermit) on Jul 23, 2008 at 20:12 UTC |