What char(s) does BNet send to signify a new line? I figure it must send something to signify it (and its gotta be something the computer recognizes...) because when I do this to receive
while(true) {
updateWindow.setNewText((char)in.read());
}
It makes a new line for different messages, even if they don't fill up the horizontal width of the display area.
I tried \n but it didn't work... I need to know the newline character so I can parse individual messages (like the message sent after a user pressed "enter") into Strings and then recognize commands within these Strings with the StringTokenizer class. Right now I am just doing what I showed above, reading char by char.