Home/End keys not working in Codex on Windows Terminal with WSL

Resolved 💬 2 comments Opened Apr 17, 2025 by roychri Closed Aug 7, 2025

When using Codex in Windows Terminal with WSL, the Home and End keys don't perform their expected function. The cursor doesn't move to the beginning or end of the current line when these keys are pressed. I do not know if these keys works in other environments.

Environment

  • OS: Windows 11
  • WSL Version: 2.4.13
  • WSL Distro: Ubuntu 24.04.2 LTS (Noble Numbat)
  • Terminal: Windows Terminal Version 1.22.10731.0

Expected Behavior

When pressing the Home/End keys, the cursor should move to the beginning/end of the current line respectively.

Actual Behavior

The Home/End keys do nothing when pressed.

Steps to Reproduce

  1. Open Windows Terminal
  2. Connect to WSL Ubuntu
  3. Launch Codex
  4. Place cursor on a line with text
  5. Press Home or End key
  6. Observe that cursor position doesn't change

View original on GitHub ↗

2 Comments

Sandy4321 · 1 year ago

good question , how to make it works natively on windows
vast majority uses windows. why you so lazy to fail your company

codex-maintainers · 1 year ago

Thanks for the feedback! Please try using the latest version of Codex CLI, as we're actively working on improvements. If the issue persists, feel free to let us know.