0 votes

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

asked Jun 25, 2019 in Engine by Axel DEAU (16 points)
edited Jun 25, 2019 by Axel DEAU

I also tried using setcursorposition(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."

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),

1 Answer

0 votes

can close now.

answered Jun 25, 2019 by Axel DEAU (16 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.