summaryrefslogtreecommitdiffstats
path: root/Examples/main
diff options
context:
space:
mode:
authorKonstantin <const@const.me>2023-01-29 15:50:17 +0100
committerKonstantin <const@const.me>2023-01-29 15:50:17 +0100
commit34cf65fad2c8964d4ee48e8ec4becef86b5b23dc (patch)
tree792744521f79a67cc37f45a2dcb5610c8df55f48 /Examples/main
parent1b005e967d51f53271725869197541e931f9ceac (diff)
Minor, C++ console example
Diffstat (limited to 'Examples/main')
-rw-r--r--Examples/main/main.cpp7
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" );
}