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 ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗