Skip to content

Commit

Permalink
fix FontFamily not being set correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesampson committed Jul 2, 2013
1 parent cbbaa0c commit 48c1712
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 696 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
*.sublime-workspace
16 changes: 10 additions & 6 deletions concfg.ps1
Expand Up @@ -94,7 +94,9 @@ function decode($val, $type) {
$fg = $colors[$fg_i]
"$fg,$bg"
}
'font_type' { }
'font_type' {
if($val -eq 0) { 0 } else { 54 }
}
'int' { $val }
'string' { $val }
'dim' {
Expand Down Expand Up @@ -141,6 +143,9 @@ function encode($val, $type) {
if($bg_i -eq -1) { write-host "invalid background color: $bg" -f red; exit 1 }
$bg_i * 16 + $fg_i
}
'font_type' {
if($val) { 54 } else { 0 }
}
'int' { $val }
'string' { $val }
'dim' {
Expand Down Expand Up @@ -180,13 +185,12 @@ function import_cmd($src) {

import $settings
write-host "console settings were imported from $src" -f darkgreen


write-host "please note:
* you'll need to restart the console to see the changes
* if you're starting console from a shortcut (.lnk), it may override your
settings! just use Windows key, 'powershell.exe'!
* if you still don't see any changes, run 'concfg clean' to remove any
program-specific overrides from the registry
* if you start a new console from a shortcut (.lnk), it may override your
concfg settings.
"
}

Expand Down

0 comments on commit 48c1712

Please sign in to comment.