-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
tmux can't use triple click to select line. add \33[12;1H \33[13;1H between long text in one line #2537
Comments
Am I meant to guess the tmux version? |
$tmux -V |
Can you run with -vv and show me the server log please? |
the log of tmux -vv a -t one |
This is the client not the server log, you need to kill tmux entirely and run with -vv. Also please attach it to the issue rather than pasting it into a comment. |
tmux-server-20959.log |
in the log. is this place. the tmux server split the long text on a line 1610889135.959714 /dev/pts/0: 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 |
OK I will look during the week. |
tmux has to clear the line, and that means moving the cursor. But I don't think we need to clear immediately if the new text is going to overwrite at 0 anyway. Does this make any difference? x.diff.txt |
still has this problem. make sure the patch has compiled strings /proc/3571487/exe |grep 'clearing at' |
use tmux to scrool up cursor to show the history of the screen, can easy reproduce this bug |
Oh in copy mode it doesn't really worry about it at all, it isn't really expected to work. |
Show me a log from reproducing with the patch applied please, not using copy mode. |
i use patched tmux. after using half working day. has not beed reproduce this problem do u need log that havn't reproduce. so the log is not useful |
No only show log if you can still reproduce outside copy mode. |
ok. |
so i think that tmux show a long text in one line in copy mode still has problem. will it be fixed in the furture? |
Maybe, I will have a look and see if it can. But I am not too worried about this TBH because it will never work with multiple panes, it is better to focus on making tmux's own mouse support work better. |
i think tmux's own mouse only can be used in tmux. paste in tmux. can't copy out there are many scenario that use ssh client to connect linux in windows os. like win10 so need copy some lines of the histroy of a pane out to windows app is a frequent ops. if use the multiple panes. the tmux resize command can make a pane max window size. if the bug still in the copy mode. programmer can't copy the lines out to other app. or the copyed text is wrong thanks |
You can copy out if you use a terminal which supports OSC 52. |
it limits tmux's world wide used help tmux better, it is a very useful tool. it will be used by many ten years |
I have applied a modified version of this diff to fix some problems with it, it will be in GitHub later on when it syncs. Please let me know if you see any problems. |
i tested the master branch. and the copy mode is still can't work. is it expect? the normal mode can work fine |
Yes no changes to copy mode yet, I will look at it later sometime.
…On Mon, 18 Jan 2021, 14:08 ask-github, ***@***.***> wrote:
i tested the master branch. and the copy mode is still can't work. is it
expect?
the normal mode can work fine
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2537 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKI43EO6YTUA5VLMINJQLS2Q6GTANCNFSM4WGCDGQQ>
.
|
thanks u very much it make my work easier. |
I think that because of how copy mode works it is not practical to change this without major work to how it redraws. I will put it on the todo list but I don't expect it to happen soon, sorry. |
I had to revert the previous change because it wasn't working, however here is an updated change which should achieve the same thing (still not copy mode). Please test if possible: tmux-screen-write-trim4-freelist.diff.txt |
now, i use commit 8242397, which include your patch it is work fine. |
91d112b causes tmux to freeze for some people so I reverted it. Please pull master and then apply the new patch and try it instead. |
i test master branch and patch tmux-screen-write-trim4-freelist.diff.txt, it is also work fine. |
Great stuff, let me know if you see any problems. I shall probably apply
this in a few days.
…On Tue, 26 Jan 2021, 03:19 ask-github, ***@***.***> wrote:
91d112b
<91d112b>
causes tmux to freeze for some people so I reverted it.
Please pull master and then apply the new patch and try it instead.
i test master branch and patch tmux-screen-write-trim4-freelist.diff.txt,
it is also work fine.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#2537 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKI452SFNJ3TY57YMYFT3S3YYDZANCNFSM4WGCDGQQ>
.
|
i use vim to open file and use triple click to select long txt. can't select the whole line. so maybe there are some problem on patch tmux-screen-write-trim4-freelist.diff.txt the log need send later |
I see this too but it seems like a problem with vim:
Shows:
So vim is moving the cursor at the end of each line which means it does not wrap. |
vim is actually drawing quite strangely, it doesn't move the cursor at the end of the line but instead it draws one more character than the line length, then moves the cursor back:
^--- 107 characters is full terminal width.
^--- It wraps,but then vim sends an additional
^--- The cursor is now at 1,1, but vim moves it back to 0,1.
^--- tmux discards the stray |
It does the same with Anyway I guess you will need to talk to vim about this, or try neovim and see if it is better. |
but run vim in normal shell, not in tmux. the triple click can select the whole line. the previous patch also can use triple click to select whole line in vim as run in tmux |
Hmm you're right, that's weird. I'll take a look. |
Try this instead please: tmux-screen-write-trim5.diff.txt |
tmux-screen-write-trim5.diff.txt is work fine for run vim in tmux thanks |
OK great, let me know if you see any further problems. It will be applied soon. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
i use bash to print one lone text in a line. i can't use triple click to select the whole line
i use strace to record the writev of tmux server and found tmux add \33[12;1H \33[13;1H between long text in one line
like this
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\33[11;1H111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\33[12;1H111
in win10 os, and xshell app
details is in gif
The text was updated successfully, but these errors were encountered: