I'm building my own costumized node repl, and I'm running into some problems...
I want my repl to match Robby Russell's oh-my-zsh theme, and use the little arrow. All that stuff is totally working, but I also want that little arrow to be in another color (red). I would like to do that with the node package called 'colors'.
You can find colors on npm and here via github: https://github.com/Marak/colors.js
I'm running into a weird problem: if i use this code to generate my costum repl:
var repl = require("repl");
require("colors");
repl.start({
prompt: "➜ ".red,
});
I would expect this to produce a red arrow and 2 spaces, but its producing like my 2 spaces of whitespace, and than 8 extra spaces.
You can checkout a screenshot here: https://www.dropbox.com/s/dg6rxfg3yz78ig9/Screenshot%202014-08-22%2022.58.11.png?dl=0
Anyone knows what going on?