Clipboard and Mouse Issues in Windows Terminal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
far2l (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Noble |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
* In some versions of Windows Terminal, there's a notorious bug known as
"double encoding of escape sequences."
https:/
This bug causes garbage characters to appear in the input of far2l
when the mouse is moved.
The same bug also causes problems with the bracketed paste
functionality.
https:/
* Furthermore, far2l itself has two issues that exacerbate the situation:
1) it generates garbage input when receiving unsupported mouse events
https:/
2) in win32-input-mode, which is used in Windows Terminal, the zero keycode
should be replaced with the VK_UNASSIGNED constant. Otherwise, Cyrillic
characters (and probably characters of other non-Latin scripts) are ignored
in the data pasted from the clipboard into the terminal
https:/
* All listed problems are fixed in the master branch of far2l.
* Windows Terminal problems are fixed by implementing a workaround:
https:/
* Backporting fixes from the master branch will improve Windows Terminal
users UX, both then working in WSL[g] environments or then running far2l
on remote machines via ssh
[ Test Plan ]
On Windows system:
1. Copy some Cyrillic string to system clipboard
("это строка для проверки", for example).
2. Open Windows Terminal
3. Run far2l inside (in 24.04, in local WSL[g]
or by connecting by ssh to remote host)
4. Ask Windows Terminal to do paste by pressing Ctrl+V or Shift+Ins
5. Try to move mouse over the far2l window
Text should be pasted ok and no input garbage should appear
[ Where problems could occur ]
* Some input errors in Windows Terminal may occur.
However, this way of input processing has been tested in ppa builds
from master branch by volunteers and no problems were found.
* Also, the fix is Windows Terminal-specific. Even if it breaks
something, working in cmd.exe console window
still would be possible.
[ Other Info ]
* wsl_fixes_
* ubuntu_
* fix_wt_paste.patch is incomplete and should not be used
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: 2.6.0~beta+
Architecture: amd64
SourcePackage: far2l
tags: |
added: oracular removed: noble |
summary: |
- mouse and clipboard are not working in windows terminal under wsl + pasting of Cyrillic chars not working in windows terminal under wsl |
description: | updated |
description: | updated |
description: | updated |
summary: |
- pasting of Cyrillic chars not working in windows terminal under wsl + Clipboard and Mouse Issues in Windows Terminal |
description: | updated |
description: | updated |
tags: |
added: noble removed: oracular |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Fixes backported from upstream master.