Skip to content

Commit 1154b56

Browse files
authored
Merge pull request #4379 from Textualize/mouse-fix
fix for mouse
2 parents 3fdea3d + 537fff1 commit 1154b56

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [0.55.1] - 2024-04-2
9+
10+
### Fixed
11+
12+
- Fixed mouse escape sequences being generated with `mouse=False`
13+
814
## [0.55.0] - 2024-04-1
915

1016
### Fixed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "textual"
3-
version = "0.55.0"
3+
version = "0.55.1"
44
homepage = "https://github.com/Textualize/textual"
55
repository = "https://github.com/Textualize/textual"
66
documentation = "https://textual.textualize.io/"

src/textual/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ async def run_async(
14591459
headless: bool = False,
14601460
inline: bool = False,
14611461
inline_no_clear: bool = False,
1462-
mouse: bool = False,
1462+
mouse: bool = True,
14631463
size: tuple[int, int] | None = None,
14641464
auto_pilot: AutopilotCallbackType | None = None,
14651465
) -> ReturnType | None:

src/textual/drivers/linux_driver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ def on_terminal_resize(signum, stack) -> None:
237237
termios.tcsetattr(self.fileno, termios.TCSANOW, newattr)
238238

239239
self.write("\x1b[?25l") # Hide cursor
240-
self.write("\033[?1003h\n")
241240
self.write("\033[?1004h\n") # Enable FocusIn/FocusOut.
242241
self.flush()
243242
self._key_thread = Thread(target=self._run_input_thread)

0 commit comments

Comments
 (0)