Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for hiding cursor on windows #2171

Merged
merged 3 commits into from
Mar 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.17.1] - 2023-03-30

### Fixed

- Fix cursor not hiding on Windows
willmcgugan marked this conversation as resolved.
Show resolved Hide resolved

## [0.17.0] - 2023-03-29

### Fixed
Expand Down
1 change: 0 additions & 1 deletion src/textual/_xterm_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from . import events, messages
from ._ansi_sequences import ANSI_SEQUENCES_KEYS
from ._parser import Awaitable, Parser, TokenCallback
from ._types import MessageTarget
from .keys import KEY_NAME_REPLACEMENTS, _character_to_key

# When trying to determine whether the current sequence is a supported/valid
Expand Down
2 changes: 1 addition & 1 deletion src/textual/drivers/windows_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def start_application_mode(self) -> None:

self.write("\x1b[?1049h") # Enable alt screen
self._enable_mouse_support()
self.write("\x1b[?25h") # Hide cursor
self.write("\x1b[?25l") # Hide cursor
self.write("\033[?1003h\n")
self._enable_bracketed_paste()

Expand Down