Available Settings

These are the settings available in PoshConsole, along with their default values and some explanations. Many of these settings are enumerations, as with other things in PowerShell you can simply type a bad value, like an empty string, to get a list of possible values.

Window Style Settings

  • WindowStyle : SingleBorderWindow
  • ScrollBarVisibility : Auto
  • ShowInTaskbar : True
  • AlwaysOnTop : False
  • Opacity : 1 This is a percentage, so the values go from 0 to 1, but anything under 0.4 is probably too transparent for use anyway.
  • StartupBanner : True
  • FontFamily : Consolas, Bitstream Vera Sans Mono, Lucida Console, Courier New, Global Monospace This should be a list of fonts, and should always end with "Global Monospace"
  • FontSize : 12

You can set the window position (I don't know why you'd want to move the window around in a script, but hey)
  • WindowHeight : 596
  • WindowLeft : 1620
  • WindowWidth : 700
  • WindowTop : 0

These border settings are only used when the WindowStyle is set to None
  • BorderColorTopLeft : #CC0C355B
  • BorderColorBottomRight : #FF104C85
  • BorderThickness : 4,8,4,4

Window Behavior

  • SnapToScreenEdge : True
  • SnapDistance : 20 The number of pixels from the edge where the window will snap to the screen edge
  • Animate : True The window can slide up and down when it's hiding (either for AutoHide or when you press the FocusKey)
  • AutoHide : False The window can hide automatically when it looses focus
  • FocusKey : WIN + Oemtilde The hotkey, like MODIFIER + [MODIFIER + MODIFIER + ] KEY
  • CopyOnMouseSelect : True True to automatically copy text when the mouse is used to select it
  • HistoryMenuFilterDupes : False True to only show each command once in the history menu
  • TabCompleteMenuThreshold : 2 There have to be more than this many item in tab completion to trigger the menu

Colors

These are the actual colors for the various named colors that PowerShell scripts will use. They're defined in hexadecimal in Alpha, Red, Green Blue, like: #AARRGGBB.
  • ConsoleBlack : #FF000000
  • ConsoleBlue : #FF0066FF
  • ConsoleCyan : #FF99CCFF
  • ConsoleDarkBlue : #FF003399
  • ConsoleDarkCyan : #FF006699
  • ConsoleDarkGray : #FF666666
  • ConsoleDarkGreen : #FF006633
  • ConsoleDarkMagenta : #FF800080
  • ConsoleDarkRed : #FF800000
  • ConsoleDarkYellow : #FFFF9900
  • ConsoleGray : #FFCCCCCC
  • ConsoleGreen : #FF66CC00
  • ConsoleMagenta : #FFFF1493
  • ConsoleRed : #FFFF0000
  • ConsoleWhite : #FFFFFFFF
  • ConsoleYellow : #FFFFD700

These are the default foreground and background colors: use the names!
  • ConsoleDefaultForeground : White
  • ConsoleDefaultBackground : Black

Last edited Aug 4, 2007 at 4:23 AM by Jaykul, version 5

Comments

No comments yet.