fb-messenger-cli icon indicating copy to clipboard operation
fb-messenger-cli copied to clipboard

Heading customization

Open ghost opened this issue 7 years ago • 2 comments

I have two questions:

  1. I see that the heading's color comes from the line console.log(head.bgBlack); in the heading.js file. Anyway this can be customized other than having to fork this repo?

  2. 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?

ghost avatar Jun 08 '17 08:06 ghost

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.

SamBergeron avatar Jun 13 '17 01:06 SamBergeron

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.

ghost avatar Jun 13 '17 09:06 ghost