From: Rick DeNatale Date: 2007-10-26T23:26:42+09:00 Subject: Re: Editing Text (#145) On 10/26/07, James Edward Gray II wrote: > On Oct 26, 2007, at 8:15 AM, Todd Burch wrote: > > > James Gray wrote: > >> All of the basic operations occur around a text cursor. The minimal > >> operations on/at the cursor should be: > > > Just a terminology thing - the proper term is "caret", not a "text > > cursor". > > While I probably would have called it a caret as well, the term > doesn't seem completely out of line: > > http://en.wikipedia.org/wiki/Cursor > > http://en.wikipedia.org/wiki/Cursor_%28computers%29 Actually, I'd say that caret is a UI/View related term (its the name of the ^ character, traditionally used in blue-pencil editing to mark a place to insert test. Cursor is kind of both a view and a model term, and I think we're talking about a model in this quiz. That said, in general, when I've looked at similar code, the analogous concept usually used is a selection, which represents a contiguous run of zero or more characters within the buffer. The quiz seems to be using a degenerate version of this where the length is constrained to be zero. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/