From 144a39bf9fb1b92d20b2a9252d0e8b2cfdf6ba92 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 3 Mar 2021 08:25:06 -0800 Subject: [PATCH] docs: add FAQ about powershell cursor key problems refs: https://github.com/wez/wezterm/issues/510 refs: https://github.com/PowerShell/PowerShell/issues/12268 --- docs/faq.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/faq.md b/docs/faq.md index 3a009cc88..3a3af9c78 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -216,3 +216,18 @@ undercurl: env TERM=wezterm nvim ``` +## I use Powershell for my shell, and I have problems with cursor keys in other apps + +Powershell has [an open issue](https://github.com/PowerShell/PowerShell/issues/12268) where it +enables the [DECCKM](https://vt100.net/docs/vt510-rm/DECCKM) mode of the terminal and does +not restore it prior to launching external commands. + +The consequence of enabling DECCKM is that cursor keys switch from being +reported as eg: `ESC [ A` (for UpArrow) to `ESC O A`. + +Some applications don't know how to deal with this and as a consequence, won't +see the cursor keys. + +This is not an issue in WezTerm; the same issue manifests in any terminal +emulator that runs powershell. +