Powershell command prompt prints ^C when pressing Ctrl+C, why? -
my command shell of choice powershell, have couple of windows open run scripts.
i have noticed @ point shell starts misbehaving in annoying way:
- press key - nothing output! press 1 - works fine , rest of keys processed expected until hit enter execute. command runs, new command prompt appears , again first key ignored!
- pressing ctrl+c displays ^c instead of cancelling current prompt , showing new one.
the strangest thing shell starts fine, works time, gets botched in aforementioned way , after period of time returns working fine.
this extremely confusing, had botched shell instance when started question, fine.
has encountered similar thing? causing it?
edit
i use console shell exclusively, not ise. shortcut command is:
%systemroot%\system32\windowspowershell\v1.0\powershell.exe
the shell version is:
ps c:\> $psversiontable name value ---- ----- psversion 3.0 wsmanstackversion 3.0 serializationversion 1.1.0.1 clrversion 4.0.30319.34209 buildversion 6.2.9200.17065 pscompatibleversions {1.0, 2.0, 3.0} psremotingprotocolversion 2.2
btw, botched again!
edit
the problem did not go away. powershell gets botched every day. now, example. checked [console]::treatcontrolcasinput
- true
!!! rechecked couple of minutes later - false
again !!! , ctrl+c working expected again.
what going on?
in regards second question ctrl+c should try ctrl+shift+c or ctrl+x cancel current prompt
Comments
Post a Comment