d99kris / nchat

Terminal-based Telegram / WhatsApp client for Linux and macOS
MIT License
619 stars 43 forks source link

Custom Terminal titles with support of chat names #62

Closed Bellavene closed 1 year ago

Bellavene commented 2 years ago

Would be great to see active chat name in the terminal title

d99kris commented 2 years ago

I'm not sure whether this can be easily supported. Nchat uses ncurses, and I'm concerned updating title (a raw write to terminal) may conflict with the ncurses terminal buffering. I'll leave this issue open for now, in case I (or someone else) find some portable way to support this.

d99kris commented 1 year ago

I've done some research and found that it is not possible (well safe) to send raw terminal control codes from within an ncurses application (we can do it at startup/shutdown only, because then ncurses is not yet "running"). And switching from ncurses to some other library/framework is not an option (just too much work), so I'll have to close this issue as out of scope for nchat.