Skip to content

Cursor misplacement: cursor jumps to buffer #1269

Closed

Description

@he852100

光标会不定期跳到缓冲区内,这是经常发生的事情。估计因为改变窗口大小触发的故障,看起来与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

Activity

  1. msftrncs commented on Dec 27, 2019

    @msftrncs
    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.

  2. he852100 commented on Dec 27, 2019

    @he852100
    Author

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

  3. daxian-dbw commented on Dec 28, 2019

    @daxian-dbw
    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.

  4. he852100 commented on Dec 28, 2019

    @he852100
    Author

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

  5. daxian-dbw commented on Dec 28, 2019

    @daxian-dbw
    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.

  6. changed the title [-]Buffer is overwritten[/-] [+]Cursor jumps to buffer[/+] on Dec 31, 2019
  7. daxian-dbw commented on Jan 3, 2020

    @daxian-dbw
    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?

  8. changed the title [-]Cursor jumps to buffer[/-] [+]Cursor misplacement: cursor jumps to buffer[/+] on Jan 3, 2020
  9. he852100 commented on Jan 3, 2020

    @he852100
    Author

    Dongbo Wang (@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。

  10. he852100 commented on Jan 3, 2020

    @he852100
    Author

    Progress bar,

    20200104_024253

    20200104_025334

  11. StevenBucher98 commented on Oct 30, 2023

    @StevenBucher98
    Collaborator

    Closing to track in #3637

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-More InvestigationInitial investigation is done, but need to follow up.Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions