jschaf / powershell.el

An Emacs mode for editing and running Microsoft PowerShell code.
94 stars 30 forks source link

Errors when running powershell inferior mode on mac osk #28

Open JSpenced opened 4 years ago

JSpenced commented 4 years ago

I get errors where it keeps printing random characters when I run powershell from a mac. Does the inferior powershell mode only work from windows?

image

xgqt commented 2 years ago

Bump. Same issue on Gentoo Linux, I believe this is caused by the "glue" functions being written for older PowerShell.

juergenhoetzel commented 1 year ago

pwsh seems to ignore the Emacs TERM=dumb environment variable. straceing reveals pwsh tries constantly to get the cursor position:

strace -e write -p $(pidof pwsh)
strace: Process 57061 attached
write(1, "\33[6n", 4)                   = 4
write(1, "\33[6n", 4)                   = 4

On ANSI compatible terminals, printing the sequence ESC[6n will report the cursor position.