Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions examples/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,26 @@ const std::vector<std::string> k_colors = {
set_xterm256_foreground( 78, 178, 101),
};

// ANSI formatting codes
static std::string set_inverse() {
return "\033[7m";
}

static std::string set_underline() {
return "\033[4m";
}

static std::string set_dim() {
return "\033[2m";
}

// Style scheme for different confidence levels
const std::vector<std::string> k_styles = {
set_inverse(), // Low confidence - inverse (highlighted)
set_underline(), // Medium confidence - underlined
set_dim(), // High confidence - dim
};

//
// Other utils
//
Expand Down
2 changes: 1 addition & 1 deletion scripts/sync-whisper.last
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f89056057511a1657af90bb28ef3f21e5b1f33cd
62dc8f7d7b72ca8e75c57cd6a100712c631fa5d5