I have created an enhanced version of Sandman's original textinput tutorial.
I'm working on a gui library and currently on the textinput widget. I thought the improvements where interseting material for the wiki.
Check it out here: http://wiki.bennugd.org/index.php?title=Tutorial:Textinput_enhanced
This version has a blinking cursor that you can move, and you can insert / remove / copy / cut / paste text. Full details are in the tutorial's source code. The library is a work in progress, textinput is one of the last things to do, before I can release it.