engawa-client 0.0.1

CLI chat client for Engawa, chat application built with Axum and WebSocket.
Documentation
1
2
3
4
5
6
7
8
9
//! UI utilities for the client.

use std::io::Write;

/// Redisplay the prompt after receiving a message
pub fn redisplay_prompt(client_id: &str) {
    print!("{}> ", client_id);
    std::io::stdout().flush().ok();
}