show caret and selection position