RickvanLoo / discord-cli

Minimalistic Command-Line Interface for Discord
GNU General Public License v2.0
203 stars 32 forks source link

Fix printing of own messages #4

Closed RickvanLoo closed 8 years ago

RickvanLoo commented 8 years ago

Currently the CLI prints your own message two times:

hi 2016/02/15 00:12:54 > Rivalo > hi

This is bad.

Especially when it are lots of them, and containing lots of text.

I can't find a way to handle this using the https://github.com/chzyer/readline library so this is a painpoint. Currently it not very easy to keep your input line at the bottom in Go without incoming logs tearing your scanf() apart. The readline library completely fixes this without adding any necessary ncurses bindings or necessary layout boxes that keep needing coordinates.

I want the CLI to be lightweight and minimal, just printing lines is the way to go I think.

RickvanLoo commented 8 years ago

This might be very close to a fix, will test this afternoon