Print to end of line in a terminal

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

    Print to end of line in a terminal

    Hey.

    This might seem as a arbitrary question to some. Anyway, I'm wondering
    how I go about printing text to the end of a line in a terminal/console.
    I've been googling it for a few days without any success. Any
    suggestions will be greatly appreciated.

    Regards ndlarsen
  • Bjoern Schliessmann

    #2
    Re: Print to end of line in a terminal

    ndlarsen wrote:
    This might seem as a arbitrary question to some. Anyway, I'm
    wondering how I go about printing text to the end of a line in a
    terminal/console. I've been googling it for a few days without any
    success. Any suggestions will be greatly appreciated.
    Well, just print ${COLUMNS} characters. If you rephrased your
    problem with more detail one could give better suggestions.

    Regards,


    Björn

    --
    BOFH excuse #202:

    kernel panic: write-only-memory (/dev/wom0) capacity exceeded.

    Comment

    • ndlarsen

      #3
      Re: Print to end of line in a terminal

      Hello again.

      I apologize for not replying earlier but I have been swamped in work
      lately. I appreciate your replies. Eventually I chose using curses for
      "right-hand edge of the window" as it seemed to be the most suitable
      solution.

      Thank you.

      ndlarsen

      Comment

      Working...