Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl-C and other Alt- and Ctrl- keys are ignored or wrongly interpreted #2452

Closed
jrydval opened this issue Feb 1, 2020 · 4 comments
Closed
Labels
Resolution-Duplicate Will close automatically.

Comments

@jrydval
Copy link

jrydval commented Feb 1, 2020

Issue Type: Bug

The PowerShell Integrated Console ignores some keypresses (like "Crtl-C") and some others (like "Atl-Arrows" and "Cmd-Arrows") are wrongly interpreted and show some letters instead of doing a cursor movements on MacOS.

How to reproduce:

Type a text into PowerShell Integrated Console on MacOS and press Crtl-C. Nothing happens. Expected is termination of the input and jump to a prompt on a new line.

Type a text into PowerShell Integrated Console on MacOS and press Alt-[<-]. "b" is displayed. Expected behaviour: Move cursor to a word on the left.

Extension version: 2020.1.0
VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:57:51.166Z)
OS version: Darwin x64 17.7.0

System Info
Item Value
CPUs Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz (4 x 2500)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: unavailable_off
protected_video_decode: unavailable_off
rasterization: unavailable_off
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 2, 3, 4
Memory (System) 16.00GB (4.61GB free)
Process Argv
Screen Reader no
VM 0%
@ghost ghost added the Needs: Triage Maintainer attention needed! label Feb 1, 2020
@rjmholt
Copy link
Contributor

rjmholt commented Feb 1, 2020

It sounds like you're using the legacy readline, which is currently what's used in the stable extension.

The behaviours you're after come from a PowerShell module called PSReadLine, which will be brought into stable when PowerShell 7 is released next month. You'll need to use PowerShell 7 with it, since PowerShell 6 has a bug in it that compromises the PSReadLine experience. If you'd like to try this out now, you can install PowerShell 7.0.0-rc.2 and the powershell-preview extension (uninstalling the powershell extension at the same time).

I'll deduplicate this to #535. Please let me know if this doesn't sound accurate and we can reopen.

@rjmholt rjmholt added Resolution-Duplicate Will close automatically. and removed Needs: Triage Maintainer attention needed! labels Feb 1, 2020
@TylerLeonhardt
Copy link
Member

TylerLeonhardt commented Feb 1, 2020

Theres's more to this. Maybe @Tyriar knows how to help... the default behavior on macOS when you hold Alt and hit any other key is to display special characters (button mash: ∆©˚¥©∆˙©ƒ¥†ƒåß∂ƒøˆ∆π´øˆ∑ƒøˆœ∑´πƒ¨˜ø). I had to disable this in iTerm2... the same thing probably has to happen in VS Code but I'm not sure how off the top of my head. actually I think I'm wrong.

@ghost
Copy link

ghost commented Feb 2, 2020

This issue has been marked as duplicate and has not had any activity for 1 day. It has been closed for housekeeping purposes.

@ghost ghost closed this as completed Feb 2, 2020
@jrydval
Copy link
Author

jrydval commented Feb 4, 2020

Thank you.

The PowerShell-Preview extension works fine!

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Feb 4, 2020
@SydneyhSmith SydneyhSmith removed the Needs: Maintainer Attention Maintainer attention needed! label Feb 4, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate Will close automatically.
Projects
None yet
Development

No branches or pull requests

4 participants