[PR #18140] Fix command history cycling with DOWN ARROW key #31461

Closed
opened 2026-01-31 09:47:25 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18140

State: closed
Merged: No


Add support for cycling through command history using the DOWN ARROW key.

  • src/host/history.cpp

    • Add CycleCommandHistory method to handle the logic for cycling through command history.
    • Update Retrieve method to handle both UP ARROW and DOWN ARROW keys for navigating command history.
  • src/host/history.h

    • Add CycleCommandHistory method to the CommandHistory class.
    • Update Retrieve method declaration to handle the DOWN ARROW key.

For more details, open the Copilot Workspace session.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/18140 **State:** closed **Merged:** No --- Add support for cycling through command history using the DOWN ARROW key. * **src/host/history.cpp** - Add `CycleCommandHistory` method to handle the logic for cycling through command history. - Update `Retrieve` method to handle both UP ARROW and DOWN ARROW keys for navigating command history. * **src/host/history.h** - Add `CycleCommandHistory` method to the `CommandHistory` class. - Update `Retrieve` method declaration to handle the DOWN ARROW key. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/terminal?shareId=996fea44-cba7-4407-86d2-5478fa4a9bcd).
claunia added the pull-request label 2026-01-31 09:47:25 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31461