Fix cursor position on the input prompt
Fix cursor position for more complex prompt types