Permalink
Browse files

adding notes about style effects on linux

  • Loading branch information...
1 parent ae6f87f commit a50d25d0c1032e2a79b0cac30ba086713b51cc30 Thorsten Lorenz committed Jan 12, 2013
Showing with 6 additions and 8 deletions.
  1. +6 −8 ansicolors.js
View
@@ -38,12 +38,17 @@ var colorNums = {
, bgBrightWhite : 107
}
, colors = {}
+ // bold - brightens the color (bold-blue is same as brigthtBlue)
+ // italic - nothing on Mac or Linux
+ // underline - underlines string
+ // blink - nothing on Mac or linux
+ // inverse - background becomes foreground and vice versa
, styleNums = {
bold : [1, 22]
, dim : [2, 22]
, italic : [3, 23]
, underline : [4, 24]
- , blink : [5, 25]
+ , blink : [5, 25]
, inverse : [7, 27]
}
, styles = {}
@@ -71,10 +76,3 @@ Object.keys(backgroundColorNums).forEach(function (k) {
module.exports = colors;
-
-// bold - brightens the color
-// italic - nothing on mac
-// underline - underlines string
-// blink - nothing on mac
-// inverse - background becomes foreground and vice versa
-console.log( styles.blink(colors.brightBlue(' Hello world ')));

0 comments on commit a50d25d

Please sign in to comment.