Skip to content

Commit

Permalink
Merge pull request #4379 from Textualize/mouse-fix
Browse files Browse the repository at this point in the history
fix for mouse
  • Loading branch information
willmcgugan committed Apr 2, 2024
2 parents 3fdea3d + 537fff1 commit 1154b56
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
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.55.1] - 2024-04-2

### Fixed

- Fixed mouse escape sequences being generated with `mouse=False`

## [0.55.0] - 2024-04-1

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "textual"
version = "0.55.0"
version = "0.55.1"
homepage = "https://github.com/Textualize/textual"
repository = "https://github.com/Textualize/textual"
documentation = "https://textual.textualize.io/"
Expand Down
2 changes: 1 addition & 1 deletion src/textual/app.py
Expand Up @@ -1459,7 +1459,7 @@ async def run_async(
headless: bool = False,
inline: bool = False,
inline_no_clear: bool = False,
mouse: bool = False,
mouse: bool = True,
size: tuple[int, int] | None = None,
auto_pilot: AutopilotCallbackType | None = None,
) -> ReturnType | None:
Expand Down
1 change: 0 additions & 1 deletion src/textual/drivers/linux_driver.py
Expand Up @@ -237,7 +237,6 @@ def on_terminal_resize(signum, stack) -> None:
termios.tcsetattr(self.fileno, termios.TCSANOW, newattr)

self.write("\x1b[?25l") # Hide cursor
self.write("\033[?1003h\n")
self.write("\033[?1004h\n") # Enable FocusIn/FocusOut.
self.flush()
self._key_thread = Thread(target=self._run_input_thread)
Expand Down

0 comments on commit 1154b56

Please sign in to comment.