27 const std::string &time,
const std::string &thread_name,
28 std::string_view payload_text)
30 std::ostringstream os(std::ios_base::binary);
31 os << time <<
": [" << thread_name <<
"] " << payload_text;
49 const std::string &nick)
Definition log_internal.h:84
Definition container.h:117
void push_back(const T &t)
Definition container.h:130
Definition terminal_chat_console.h:18
MutexedQueue< std::pair< LogLevel, std::string > > queue
Definition terminal_chat_console.h:36
void logRaw(LogLevel lev, std::string_view line)
Definition terminal_chat_console.h:21
virtual void log(LogLevel lev, const std::string &combined, const std::string &time, const std::string &thread_name, std::string_view payload_text)
Definition terminal_chat_console.h:26
Definition terminal_chat_console.h:39
void handleInput(int ch, bool &complete_redraw_needed)
void clearKillStatus()
Definition terminal_chat_console.h:59
ChatBackend m_chat_backend
Definition terminal_chat_console.h:100
int m_log_level
Definition terminal_chat_console.h:87
void typeChatMessage(const std::wstring &m)
TermLogOutput m_log_output
Definition terminal_chat_console.h:103
u8 m_utf8_bytes_to_wait
Definition terminal_chat_console.h:90
TerminalChatConsole()
Definition terminal_chat_console.h:42
int m_cols
Definition terminal_chat_console.h:95
u32 m_time_of_day
Definition terminal_chat_console.h:108
bool m_can_draw_text
Definition terminal_chat_console.h:97
void stopAndWaitforThread()
u64 m_game_time
Definition terminal_chat_console.h:107
std::string m_pending_utf8_bytes
Definition terminal_chat_console.h:91
std::set< std::string > m_nicks
Definition terminal_chat_console.h:93
void setup(ChatInterface *iface, bool *kill_requested, const std::string &nick)
Definition terminal_chat_console.h:46
int m_rows
Definition terminal_chat_console.h:96
bool m_esc_mode
Definition terminal_chat_console.h:105
ChatInterface * m_chat_interface
Definition terminal_chat_console.h:101
std::string m_nick
Definition terminal_chat_console.h:88
bool * m_kill_requested
Definition terminal_chat_console.h:99
LogLevel
Definition log_internal.h:20
@ LL_ACTION
Definition log_internal.h:24
Definition chat_interface.h:61
Definition terminal_chat_console.h:79
CursesInitHelper(TerminalChatConsole *a_console)
Definition terminal_chat_console.h:81
~CursesInitHelper()
Definition terminal_chat_console.h:84
TerminalChatConsole * cons
Definition terminal_chat_console.h:80
TerminalChatConsole g_term_console