fb-messenger-cli
fb-messenger-cli copied to clipboard
Heading customization
I have two questions:
-
I see that the heading's color comes from the line
console.log(head.bgBlack);
in theheading.js
file. Anyway this can be customized other than having to fork this repo? -
The heading is draw in the
interactive.js
file with the command:
// Draw the header
heading.writeHeader(this.currentConversationId);
If I try to move this line to the end of the function, I still get the header above the promp but below the messages. Is there a way to have the header appear on the bottom side instead of the top side?
The line actually is making the background blue (console.log(head.bgBlue)
).
I could probably add an option to change the heading color specifically, kind of like the one to turn off colors all together (disableColors
), this wouldn't be too hard.
Changing the position of the header though may be a little more annoying because we write the prompt as the last thing every time we refresh, or every time we get a new message. We'd have to write the heading after that all the time. It may be over-complicating things, but I can look into it.
It's okay. I can keep it up top, no problem. I do face a problem where the app doesn't refresh messages :/ But, that's something else.