Skip to content

Terminal Cursor visually sometimes won’t go to the end of the line #234

Open
@kgsbowtie

Description

@kgsbowtie

So the terminal cursor is displayed as a block () that highlights whatever character you are currently over. In the normal course of behavior, this cursor freely moves one space over past the end of whatever is written on a line and inserts typed characters to the left of the block.

Normal Behavior
Visual Example of Normal Behavior

In some instances, the cursor will get stuck and fail to allow itself to go past the end of the line. This is the actual bug that needs to be fixed.

Bugged Behavior
Visual Example of Bugged Behavior
Note: This is not an actual instance of the bugged behavior, this is simply an illustration of what happens.

However, the cursor in the cases of the bugged behavior will still act like it’s a normal iOS bar cursor, indicating it’s simply a visual bug. Here’s what I mean:

A bar cursor shows the point where text is to be inserted. A block cursor simply highlights a character (or empty space if at the end of the line), meaning it needs to have a defined specific behavior: is it always inserting characters to the left or to the right of the cursor?

Well when the cursor gets stuck like shown in the Bugged Behavior, if you scroll to the end of the string it inserts characters to the right of the block, but if you scroll to the beginning of the text it starts inserting characters to the left of the block like normal.

You may have to input an extra Left Arrow when scrolling to the beginning of the text or an extra Right Arrow when scrolling to the end of the text to see the block switch which side it inserts new characters on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions