Feature Request: RTL (Arabic/Hebrew) input support in line editing

Aperta
#5,166 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
csharp

Direzione di ricerca

Start by reproducing Arabic and Hebrew input at the pwsh prompt in Windows Console Host, then examine PSReadLine's line-buffer rendering and cursor, cut, copy, and paste behavior. Done means RTL text displays in the correct reading order while editing, cursor movement respects RTL runs, and clipboard operations preserve the text.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Needs-Triage :mag:

Feature Request: RTL Text Input Support (Arabic / Hebrew)

Problem

PSReadLine handles all interactive line editing in PowerShell. When an Arabic-speaking user types Arabic text at the pwsh prompt, the characters appear in reversed order because PSReadLine processes input strictly left-to-right. This makes it impossible to type Arabic naturally at the PowerShell prompt.

Expected Behavior
  • Arabic (and other RTL) characters should appear in correct right-to-left reading order as the user types
  • Cursor movement ( / ) should respect text direction within RTL runs
  • Cut/copy/paste operations should preserve RTL text correctly
Current Behavior

Arabic letters are displayed in reversed order (LTR rendering of RTL text), making the input unreadable until submitted.

Environment
  • Shell: PowerShell 7.x (pwsh) — standalone, not inside Windows Terminal
  • Console host: Windows Console Host (conhost.exe)
  • PSReadLine: 2.x
  • OS: Windows 11
Suggested Approach
  • Implement basic Unicode Bidirectional Algorithm (UAX #9) support in the line buffer rendering
  • Detect RTL Unicode ranges (U+0600–U+06FF Arabic, U+0590–U+05FF Hebrew, etc.) and apply correct display order
  • This is the highest-impact fix for RTL users since PSReadLine controls all prompt input
Impact

Arabic, Hebrew, Persian, and Urdu speakers cannot type their native language at the PowerShell prompt. This affects a significant global developer community.

Also filed in PowerShell/PowerShell and microsoft/terminal repos for full coverage:

Lingua principale
C#
Stelle
4.4k
Fork
341
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/PSReadLine

Tutte le issue di PowerShell/PSReadLine

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.