locked
How to go new line (textwindow.writeline) sb RRS feed

  • Question

  • I want to make text at windows console look like this =

    this is first line

    this is second line

    How can i make those 2 sentences with one textwindow.writeline cmds?   I can't do this textwindow.writeline("this is first line

                                                                                                                                                                 this is second line")

    I don't want to do this:

    textwindow.writeline("this is first line")

    textwindow.writeline("this is second line")

    Also how can i make input from user looks like ****  instead of normal text abcde  ( i need it for password entry)

    Thank you.

    Sunday, October 7, 2012 12:30 PM

Answers

  • You need to add aspecial LineFeed character:

    LF = Text.GetCharacter(10)
    TextWindow.WriteLine("this is first line"+LF+"this is second line")

    • Marked as answer by TheGuxi Sunday, October 7, 2012 12:36 PM
    Sunday, October 7, 2012 12:35 PM

All replies

  • You need to add aspecial LineFeed character:

    LF = Text.GetCharacter(10)
    TextWindow.WriteLine("this is first line"+LF+"this is second line")

    • Marked as answer by TheGuxi Sunday, October 7, 2012 12:36 PM
    Sunday, October 7, 2012 12:35 PM
  • About the marking text as asterisks, I think you should look at this forum here.


    I am a 10 year old that loves math, games, and computers. "Everyone is potentially great, you just have to turn it into kinetic greatness."

    Sunday, October 7, 2012 2:51 PM