Expected behavior
The cursor should be at the start of the input box
Screenshots
System information
PyTermGUI version 7.2.0
System details:
Python version: 3.10.6
$TERM: xterm
$COLORTERM: None
Color support: ColorSystem.STANDARD
OS Platform: Linux-5.4.0-125-generic-x86_64-with
Describe the bug The input field cursor seems to be offset by the prompt length rather than the supplied value length.
To Reproduce Steps to reproduce the behavior:
Example code
Expected behavior The cursor should be at the start of the input box
Screenshots
System information
Possible cause Possibly this line https://github.com/bczsalba/pytermgui/blob/master/pytermgui/widgets/input_field.py#L88
Possible solution should be:
self.cursor = cursor or Cursor(0, len(value))