LineEdit caret_position issue

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Axel DEAU

Hi All,

I’m trying to create a terminal-like scene composed of Label (ex: user@machine ~) overlapping with a LineEdit,

I specifically want to use the caret_position (documentation) to move the caret from x pixel / character to the right.

For now, I can put any value, the caret doesn’t move.

Any other method I can use to achieve this ?

Regards

I also tried using set_cursor_position(value) same thing in that case I might now have a good understanding of the documentation.
It says: "says: “The cursor’s position inside the LineEdit. When set, the text may scroll to accommodate it.”

Axel DEAU | 2019-06-25 19:52

I understood reading the code here:
https://github.com/godotengine/godot/blob/master/scene/gui/line_edit.cpp
the cursor position back scroll the text value (no use for my problem),

Axel DEAU | 2019-06-25 23:53

:bust_in_silhouette: Reply From: Axel DEAU

can close now.