cursor blink #2395
-
Is it possible to switch off cursor blink for a textual application? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Do you mean specifically within an |
Beta Was this translation helpful? Give feedback.
-
Thanks for that info. So it is possible to stop cursor blink, but has to be done per-widget. Here's a version of the example that does so: from textual.app import App, ComposeResult
from textual.widgets import Input
class InputApp(App):
def compose(self) -> ComposeResult:
nameInput = Input(placeholder="First Name")
nameInput.cursor_blink = False
yield nameInput
nameInput = Input(placeholder="Last Name")
nameInput.cursor_blink = False
yield nameInput
if __name__ == "__main__":
app = InputApp()
app.run() |
Beta Was this translation helpful? Give feedback.
Thanks for that info. So it is possible to stop cursor blink, but has to be done per-widget. Here's a version of the example that does so: