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

オープン
#5,166 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
静か
技術スタック
csharp

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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:

主要言語
C#
スター
4.4k
フォーク
341
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PowerShell/PSReadLine のほかの issue

PowerShell/PSReadLine の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。