mu-server: tweak server

Try to set a larger pipe size (on Linux); and only show the mu-prompt
when talking to a tty.
This commit is contained in:
Dirk-Jan C. Binnema
2026-07-27 20:12:23 +03:00
committed by Seth Ladygo
parent ca5e1d64c1
commit 501d27ad89
2 changed files with 12 additions and 1 deletions

View File

@ -117,7 +117,8 @@ Mu::read_line(bool& do_quit)
#endif /*HAVE_READLINE*/
std::string line;
mu_print(";; mu> ");
if (is_a_tty) /* avoid uncookied noise for e.g. mu4e */
mu_print(";; mu> ");
if (!std::getline(std::cin, line))
do_quit = true;