s a string in the subwindow. :param int x: horizontal location :param int y: vertical location :param str msg: string to be written :param list attr: text attributes to apply :returns: **int** with the horizontal position we drew to N)