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

terminal colour settings #17325

Closed
Skmonkay opened this issue Mar 16, 2021 · 12 comments
Closed

terminal colour settings #17325

Skmonkay opened this issue Mar 16, 2021 · 12 comments
Assignees
Labels
Milestone

Comments

@Skmonkay
Copy link

Resource Provider

Description of Feature or Work Requested

Minimum API Version Required

Swagger Link

Target Date

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Mar 16, 2021
@Skmonkay
Copy link
Author

Hi,

I can't find out how to either reset or change the Azure CLI Cloud Shell terminal settings. I have larger scripts now and find the black background I changed it to difficult to use.

Thanks.

@yonzhan yonzhan added the Core CLI core infrastructure label Mar 16, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Mar 16, 2021
@yonzhan yonzhan removed the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Mar 16, 2021
@yonzhan yonzhan added this to the S185 milestone Mar 16, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Mar 16, 2021

color

@Skmonkay
Copy link
Author

Skmonkay commented Mar 16, 2021 via email

@Skmonkay
Copy link
Author

az config set core.no_color=true # no change
reset # no change

az config --help # nothing

Microsoft Docs for "color" in AZ CLI # nothing

@jiasli
Copy link
Member

jiasli commented Mar 17, 2021

Hi @Skmonkay, apologize for the confusion. @yonzhan is only triaging this issue indicating we have received your request.

Could you share a screenshot of what you are seeing, so that I can better understand your requirement?

@Skmonkay
Copy link
Author

image

@Skmonkay
Copy link
Author

This is Bash. Only a black background for now. Very hard to see coding.

image

@Skmonkay
Copy link
Author

And in PowerShell it's really nice with the blue default backgroud:

image

@jiasli
Copy link
Member

jiasli commented Mar 18, 2021

@Skmonkay, I see what you are talking about.

Azure CLI az is simply a command line executable running on Cloud Shell. It has nothing to do with the black background of Cloud Shell. In other words, the black background of Cloud Shell is out of the control of Azure CLI.

This screenshot you shared is coming from vi, right?

My repo

I can see the same result while running vi .bashrc:

image

PowerShell terminal doesn't look better for vi:

image

Solution 1: Change font to Monospace

You may change the font to Monospace which is bolder than Courier New.

image

Solution 2: Use VS Code editor

The VS Code editor (GUI) are available for both Bash and PowerShell:

image

Note that the file extension .sh must be included in the file name to get syntax highlighting.

@jiasli
Copy link
Member

jiasli commented Mar 18, 2021

The colors in Cloud Shell (including the background) are not configurable, and that's why Azure CLI hardcodes RGB colors to get better visual effect in Cloud Shell (#17283).

I have also created Azure/CloudShell#84 to track this readability issue.

@Skmonkay
Copy link
Author

Hi,

Yeah, I came to the same conclusions as you. I'll have to live with it and stick with the VS Code Editor.

Thanks.

Alan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants