diff --git a/kittens/tui/line_edit.py b/kittens/tui/line_edit.py index 4de7a7099..edefdbb70 100644 --- a/kittens/tui/line_edit.py +++ b/kittens/tui/line_edit.py @@ -7,7 +7,9 @@ from typing import Callable, Tuple from kitty.fast_data_types import truncate_point_for_length, wcswidth from kitty.key_encoding import EventType, KeyEvent -from .operations import RESTORE_CURSOR, SAVE_CURSOR, move_cursor_by +from .operations import ( + RESTORE_CURSOR, SAVE_CURSOR, move_cursor_by, set_cursor_shape +) class LineEdit: @@ -48,6 +50,7 @@ class LineEdit: write('\r') if cursor_pos: write(move_cursor_by(cursor_pos, 'right')) + write(set_cursor_shape('bar')) def add_text(self, text: str) -> None: if self.current_input: