added caret display to text input.