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

Cursor misplacement: cursor jumps to buffer #1269

Closed
he852100 opened this issue Dec 26, 2019 · 9 comments
Closed

Cursor misplacement: cursor jumps to buffer #1269

he852100 opened this issue Dec 26, 2019 · 9 comments
Labels
Needs-More Investigation Initial investigation is done, but need to follow up. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@he852100
Copy link

he852100 commented Dec 26, 2019

光标会不定期跳到缓冲区内,这是经常发生的事情。估计因为改变窗口大小触发的故障,看起来与psreadline有关。因为禁用psreadline时,没有发生过此问题。
我使用的Termux for android控制台.安装了Aarch, Fedora。故障相同。

The cursor can be often misplaced, which could be caused by the resizing of the window when the input-pad becomes active/inactive.
It's very possible related to PSReadLine as it works fine when PSReadLine is unloaded.

This happens in Termux, an Android terminal emulator and Linux environment application.
Aarch, Fedora are installed.

SDRausty/TermuxArch#201
Related issue: #1164

Screenshot_20191231_161537

Screenshot_20191231_164529

@msftrncs
Copy link
Collaborator

Can you run the script contained in the issue template in this instance of PowerShell? I think it would be good to include the output of the script here. A screen-shot of the output would be fine.

@he852100
Copy link
Author

he852100 commented Dec 27, 2019

Screenshot_20191227-151354
Screenshot_20191227-151431
Screenshot_20191227-151453
Screenshot_20191227-151520

@daxian-dbw
Copy link
Member

@he852100 The stack trace shown in your screenshot doesn't look like related to PSReadLine. It's a NullReferenceException in PowerShell remoting code. If that's the case, you should report the issue in the PowerShell repo instead.

@he852100
Copy link
Author

@daxian-dbw 输入字符时光标跳到了缓冲区。这也是他们的问题吗?可是当我禁用psreadline后没有出现这种问题。

@daxian-dbw
Copy link
Member

@he852100 Given the screenshot full of exception stack trace, it was not clear to me what exact is the issue you were reporting. It would be helpful if you can edit #1269 (comment) to better describe the issue.

I don't have the device to reproduce the issue, but my guess is that the console window gets resized when the on-screen keyboard is activated. Resizing the console window could cause the cursor to be misplaced.

@he852100 he852100 reopened this Dec 31, 2019
@he852100 he852100 changed the title Buffer is overwritten Cursor jumps to buffer Dec 31, 2019
@he852100 he852100 reopened this Dec 31, 2019
@daxian-dbw
Copy link
Member

@he852100 This is the first time I learnt that PowerShell gets used in a Android terminal emulator, very interesting :)
In SDRausty/TermuxArch#201, you mentioned that the misplacement of cursor also happened without using pwsh, and reply was that termux/termux-app#1390 might resolve the issue. Have you tried out the fix? Is the cursor misplacement gone with that fix when not using pwsh?

@daxian-dbw daxian-dbw changed the title Cursor jumps to buffer Cursor misplacement: cursor jumps to buffer Jan 3, 2020
@he852100
Copy link
Author

he852100 commented Jan 3, 2020

@daxian-dbw This seems to be a problem specific to pwsh,When using pwsh, the fault occurs continuously.Use bash andzsheverything is fine.

1390 provides a way to clear the buffer,I don't think they're directly connected。

@he852100
Copy link
Author

he852100 commented Jan 3, 2020

Progress bar,

20200104_024253

20200104_025334

@daxian-dbw daxian-dbw added the Needs-More Investigation Initial investigation is done, but need to follow up. label Jan 3, 2020
@StevenBucher98
Copy link
Collaborator

Closing to track in #3637

@StevenBucher98 StevenBucher98 added the Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-More Investigation Initial investigation is done, but need to follow up. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

4 participants