'Write a string to the screen.  This does not wrap a the edge of the
screen, and stops at \r and \n.'

def writeStr(self, s):

    s = s[:(self.width - self.xpos)]
    if ('\n' in s):
        s = s[:s.find('\n')]
    if ('\r' in s):
        s = s[:s.find('\r')]
    self.commandQueue.append(('write', s))
    self.xpos += len(s)
