Skip to content

Fix #1468: Arrow keys and backspace in the server console - #5390

Open
iManGaaX wants to merge 1 commit into
multitheftauto:masterfrom
iManGaaX:resolve/issue-1468
Open

iManGaaX wants to merge 1 commit into
multitheftauto:masterfrom
iManGaaX:resolve/issue-1468

Conversation

@iManGaaX

Copy link
Copy Markdown
Contributor

Summary

Console input used a single counter for both the text length and the cursor position, so pressing Left and then Backspace deleted the wrong character and blocked Right afterwards; the input line now keeps a real cursor position: characters are inserted/removed at the cursor, and Left/Right, Backspace and Delete all work as expected; when stdin/stdout are redirected nothing changes

Closes #1468.

Before ->

2026-09-13.04-34-27.mp4

After ->

2026-09-13.04-43-08.mp4

Checklist

  • Your code should follow the coding guidelines.
  • Smaller pull requests are easier to review. If your pull request is beefy, your pull request should be reviewable commit-by-commit.

@Fernando-A-Rocha

Copy link
Copy Markdown
Contributor

You should put this in #5288 😅

@iManGaaX

Copy link
Copy Markdown
Contributor Author

You should put this in #5288 😅

In the current PR, i fixed a bug for an existing feature, but the PR u r talking about is an enhancement, which is hard to get merged right now due to the feature freeze

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Win server arrow keys buffer issue

2 participants