question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running gsutil command breaks -EditMode Emacs for the rest of the session.

See original GitHub issue

Environment

PS version: 6.2.1
PSReadline version: 2.1.0
os: 10.0.19041.1 (WinBuild.160101.0800)
PS file version: 6.2.1.0
HostName: ConsoleHost
BufferWidth: 172
BufferHeight: 9001

Steps to reproduce

I am using Set-PSReadLineOption -EditMode Emacs. When I run a gsutil command, for example gsutil ls, Emacs mode is at least partially broken.

Specifically, “ctrl+a” reverts to being select-all rather than “go to beginning of line.” I don’t think auth is required to trigger the issue, I get it just after doing this:

> gsutil ls
You are attempting to perform an operation that requires a project id, with none configured. Please re-run gsutil config and make sure to follow the instructions for finding and entering your default project id.

ctrl+a is broken until I close the powershell window. I assume gsutil is sending some sort of control character? I’m not sure what the simplest way to do a binary analysis of what it’s outputting is.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lukeschlathercommented, Apr 19, 2023

Yes.

0reactions
daxian-dbwcommented, May 11, 2023

However my local laptop with the same OS version reproduces the issue, as does a stock GCP VM running the Google image, which has Windows Server 2022 Datacenter / 21H2 / OS Build 20348.1668 .

That’s why I was suspecting maybe something else is playing a role in combination with gsutil for the terminal/console to behave differently. And I cannot reproduce it on my local Windows 11 machine as well (https://github.com/PowerShell/PSReadLine/issues/1970#issuecomment-1540986766).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changed Paths · GitHub
GrahamcOfBorg/Changed Paths ... This file has been truncated, but you can view the full file. aarch64-linux python310Packages.nixpkgs- ...
Read more >
vSRX Virtual Firewall Deployment Guide for Private and ...
Run the show security flow session summary | grep maximum command to view the maximum number of sessions. Starting in Junos OS Release ......
Read more >
sitemap-questions-164.xml
... -not-start-selenium-session-internal-server-error-error-running 2019-04-23 ... -i-set-up-arbitrary-commands-in-an-eclipse-java-project-run-configuration ...
Read more >
Read more
... 2022-08-24 https://stackoverflow.com/questions/857355/how-to-compile-a-c-program-using-net-framework-compilers-at-command-line 2022-08-23 ...
Read more >
User Guide - Black Duck - Synopsys
Running a component scan using the Signature Scanner command line. ... Within a terminal session, run the following command (changing the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found