mu: use fmt-based apis in mu index/server and options

iostream is so 1998.
This commit is contained in:
Dirk-Jan C. Binnema
2023-07-25 20:53:48 +03:00
parent 85a2490300
commit dcf2298680
3 changed files with 38 additions and 33 deletions

View File

@ -136,9 +136,9 @@ Mu::mu_cmd_server(const Mu::Options& opts) try {
setup_readline(histpath, 50);
install_sig_handler();
std::cout << ";; Welcome to the " << PACKAGE_STRING << " command-server"
<< (opts.debug ? " (debug-mode)" : "") << '\n'
<< ";; Use (help) to get a list of commands, (quit) to quit.\n";
mu_println(";; Welcome to the " PACKAGE_STRING " command-server{}\n"
";; Use (help) to get a list of commands, (quit) to quit.",
opts.debug ? " (debug-mode)" : "");
bool do_quit{};
while (!MuTerminate && !do_quit) {