diff options
| author | Konstantin <const@const.me> | 2023-01-29 15:50:17 +0100 |
|---|---|---|
| committer | Konstantin <const@const.me> | 2023-01-29 15:50:17 +0100 |
| commit | 34cf65fad2c8964d4ee48e8ec4becef86b5b23dc (patch) | |
| tree | 792744521f79a67cc37f45a2dcb5610c8df55f48 /Examples | |
| parent | 1b005e967d51f53271725869197541e931f9ceac (diff) | |
Minor, C++ console example
Diffstat (limited to 'Examples')
| -rw-r--r-- | Examples/main/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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" ); } |
