Skip to content

Colors #1036

Closed
Closed

Description

@vors

Steps to reproduce

  • Open terminal in OS X, with "Basic" (default) color schema.
  • Run powershell
  • run throw "foo"

Expected behavior

Colors look ok

Actual behavior

Colors don't look ok

image

Environment data

v0.4.0

cc Nana Lakshmanan (@nanalakshmanan)

Activity

  1. added
    Usability
    on May 26, 2016
  2. vors commented on Jun 9, 2016

    @vors
    CollaboratorAuthor

    It's not only OS X actually.

    This is from Ubuntu Server 14.04, terminal emulator with default colors

    image

  3. changed the title [-]Colors on OS X[/-] [+]Colors[/+] on Jun 9, 2016
  4. vors commented on Jun 10, 2016

    @vors
    CollaboratorAuthor

    This is unacceptable

    image

  5. joeyaiello commented on Jun 27, 2016

    @joeyaiello
    Contributor

    There's two issues here:

    • There's some non-PSReadline code that's overriding the background color of errors. We may want to remove this code now that PSReadline is the engine for changing colors.
    • PSReadline should have proper theme support (with at least light and dark themes, but potentially a host of others).
  6. modified the milestones: , Aug17 on Jul 28, 2016
  7. modified the milestones: , on Aug 4, 2016
  8. twblalock commented on Aug 18, 2016

    @twblalock

    I'm able to set some of the colors on Mac OS, but the names of commands as I type them out remain yellow no matter what.

  9. added
    WG-Interactive-Console
    Issue-Bug
    on Sep 2, 2016
  10. lzybkr commented on Nov 9, 2016

    @lzybkr
    Contributor

    This issue was moved to PowerShell/PSReadLine#472

  11. Oxicode commented on Nov 11, 2016

    @Oxicode

    +1 Ubuntu

  12. added
    Resolution-External
    on Nov 29, 2016
  13. jszabo98 commented on Jun 3, 2017

    @jszabo98

    The default colors aren't great in osx, especially white on white for numbers and members, yellow for commands, and gray for types and operators. (I'm not a fan of the red error messages in Windows either.)

    Btw when I tab complete on set-psreadlineoption or get-psreadlineoption in osx, it pops up twice.

  14. joeyaiello commented on Jun 6, 2017

    @joeyaiello
    Contributor

    jszabo98 agreed on all fronts. The tab-completion bug is known too (I think it's somewhere in the PSReadline repo)

  15. milindsaraswala commented on Aug 23, 2018

    @milindsaraswala

    I am late to the party but I found the article which make your mac terminal window same like windows PowerShell. By Setting Profile. Please follow this below article
    https://info.sapien.com/index.php/quickguides/setting-up-powershell-on-your-mac

  16. casperghst42 commented on Feb 24, 2021

    @casperghst42

    We are not 4 years down the line, and there has been absolutely no update. It is interesting as Microsoft are now trying the "Run Everywhere" idea, but they are failing to make it a nice experience.

  17. jszabo98 commented on Feb 24, 2021

    @jszabo98

    My current setup. I just did this on a new mac.

    set-psreadlineoption -colors @{ 
      command            = 'darkyellow'
      number             = 'black'
      member             = 'black'
      operator           = 'black'
      type               = 'black'
      variable           = 'darkgreen'
      parameter          = 'darkgreen'
      continuationprompt = 'black'
      default            = 'black'
    }
    
    $host.PrivateData.VerboseForegroundColor = 'DarkYellow'
    $host.PrivateData.WarningForegroundColor = 'DarkYellow'
    $host.PrivateData.DebugForegroundColor = 'DarkYellow'
    $host.PrivateData.ProgressForegroundColor = 'DarkYellow'
  18. casperghst42 commented on Feb 24, 2021

    @casperghst42

    My current setup. I just did this on a new mac.

    set-psreadlineoption -colors @{ 
      command            = 'darkyellow'
      number             = 'black'
      member             = 'black'
      operator           = 'black'
      type               = 'black'
      variable           = 'darkgreen'
      parameter          = 'darkgreen'
      continuationprompt = 'black'
      default            = 'black'
    }
    
    $host.PrivateData.VerboseForegroundColor = 'DarkYellow'
    $host.PrivateData.WarningForegroundColor = 'DarkYellow'
    $host.PrivateData.DebugForegroundColor = 'DarkYellow'
    $host.PrivateData.ProgressForegroundColor = 'DarkYellow'

    Thanks, very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-BugOS-LinuxOS-macOSResolution-ExternalUsabilityWG-Interactive-ConsoleWG-Interactive-PSReadLine

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions