From 34cf65fad2c8964d4ee48e8ec4becef86b5b23dc Mon Sep 17 00:00:00 2001 From: Konstantin Date: Sun, 29 Jan 2023 15:50:17 +0100 Subject: Minor, C++ console example --- Examples/main/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Examples/main') diff --git a/Examples/main/main.cpp b/Examples/main/main.cpp index 3126381..c3a659e 100644 --- a/Examples/main/main.cpp +++ b/Examples/main/main.cpp @@ -122,14 +122,17 @@ namespace if( params.print_colors ) { - printf( "[%s --> %s] ", to_timestamp( seg.time.begin ).c_str(), to_timestamp( seg.time.end ).c_str() ); + printf( "[%s --> %s] %s ", + to_timestamp( seg.time.begin ).c_str(), + to_timestamp( seg.time.end ).c_str(), + speaker.c_str() ); for( uint32_t j = 0; j < seg.countTokens; j++ ) { const sToken& tok = tokens[ seg.firstToken + j ]; if( !params.print_special && ( tok.flags & eTokenFlags::Special ) ) continue; - wprintf( L"%S%S%s%S", speaker.c_str(), k_colors[ colorIndex( tok ) ], utf16( tok.text ).c_str(), "\033[0m" ); + wprintf( L"%S%s%S", k_colors[ colorIndex( tok ) ], utf16( tok.text ).c_str(), "\033[0m" ); } printf( "\n" ); } -- cgit v1.2.3