jschaf / powershell.el

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

general fixes to window width, nerd icon support, and fixes to cls #37

Open Ant-28 opened 5 months ago

Ant-28 commented 5 months ago

lgtm

juergenhoetzel commented 5 months ago

Would you mind explaining in more detail what problem this commit solves?

Ant-28 commented 5 months ago
  1. Didn't know a fork automatically makes a pull request -- changed the name to be more appropriate
  2. There are 3 main issue I've found with powershell.el, one of which I think I've fixed i. The window width of 200 no longer works, pwsh7 suggests a max window width of 192 (I have a 1920x1080 display, could this be correlated?, setting this to 192 clears the issue) ii. Nerd icons, such as the ones used by oh-my-posh don't render correctly and I have no clue where to even begin with thi iii. Calling clear/cls gives me the following error:
    Line |    3 |  $RawUI.CursorPosition = @{X=0;Y=0}      |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      | Exception setting "CursorPosition": "The handle is invalid."