Title: Feature Request: RTL (Arabic/Hebrew) input support in line editing · Issue #5166 · PowerShell/PSReadLine · GitHub
Open Graph Title: Feature Request: RTL (Arabic/Hebrew) input support in line editing · Issue #5166 · PowerShell/PSReadLine
X Title: Feature Request: RTL (Arabic/Hebrew) input support in line editing · Issue #5166 · PowerShell/PSReadLine
Description: 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 b...
Open Graph Description: 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, t...
X Description: 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, t...
Opengraph URL: https://github.com/PowerShell/PSReadLine/issues/5166
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request: RTL (Arabic/Hebrew) input support in line editing","articleBody":"## Feature Request: RTL Text Input Support (Arabic / Hebrew)\n\n### Problem\n\nPSReadLine 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.\n\n### Expected Behavior\n\n- Arabic (and other RTL) characters should appear in correct right-to-left reading order as the user types\n- Cursor movement (`←` / `→`) should respect text direction within RTL runs\n- Cut/copy/paste operations should preserve RTL text correctly\n\n### Current Behavior\n\nArabic letters are displayed in reversed order (LTR rendering of RTL text), making the input unreadable until submitted.\n\n### Environment\n\n- **Shell:** PowerShell 7.x (`pwsh`) — standalone, not inside Windows Terminal\n- **Console host:** Windows Console Host (`conhost.exe`)\n- **PSReadLine:** 2.x\n- **OS:** Windows 11\n\n### Suggested Approach\n\n- Implement basic Unicode Bidirectional Algorithm (UAX #9) support in the line buffer rendering\n- Detect RTL Unicode ranges (U+0600–U+06FF Arabic, U+0590–U+05FF Hebrew, etc.) and apply correct display order\n- This is the **highest-impact fix** for RTL users since PSReadLine controls all prompt input\n\n### Impact\n\nArabic, Hebrew, Persian, and Urdu speakers cannot type their native language at the PowerShell prompt. This affects a significant global developer community.\n\n> Also filed in PowerShell/PowerShell and microsoft/terminal repos for full coverage:\n> - https://github.com/PowerShell/PowerShell/issues/27568\n> - https://github.com/microsoft/terminal/issues/20302","author":{"url":"https://github.com/Lord1Egypt","@type":"Person","name":"Lord1Egypt"},"datePublished":"2026-06-06T15:50:14Z","url":"https://github.com/PowerShell/PSReadLine/issues/5166"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:10e1bd91-b025-c002-bac3-20aa7c6804c2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD14:2014BA:630064:8E4E11:6AFD78C3 |
| html-safe-nonce | 2a2e1ac79c5cf8952028ba28fab8a3012d155dfb2d81b7089ab54dc8b6f41b16 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDE0OjIwMTRCQTo2MzAwNjQ6OEU0RTExOjZBRkQ3OEMzIiwidmlzaXRvcl9pZCI6IjUyNzE0MDU2MDI2MTY5OTgwODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1dda57d3748fedd5488482f7a6b0cb1543b602dba50a3a572ae47ebbb82907ee |
| hovercard-subject-tag | issue:4604140375 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PSReadLine/5166/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cd5876c9fe8f1083226a0a8353f580211a50296c9a70d410f3e406071dd1c065/PowerShell/PSReadLine/issues/5166 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cd5876c9fe8f1083226a0a8353f580211a50296c9a70d410f3e406071dd1c065/PowerShell/PSReadLine/issues/5166 |
| og:image:alt | 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, t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Lord1Egypt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 544ff6b59bd215c4609120f6e334dbd0b00d34fb6f8bc03a476f72256998887e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PSReadLine git https://github.com/PowerShell/PSReadLine.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 10025737 |
| octolytics-dimension-repository_nwo | PowerShell/PSReadLine |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 10025737 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PSReadLine |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 71c92f8b27ec5e9aa6f6477b4e067a4727fc9edb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width