Selects a region of text. The characters that are selected are
those characters at positions from start.pos up to, but not
including end.pos. If end.pos is negative, then the the
characters selected are those characters from start.pos to
the end of the text.