Skip to content

Commit

Permalink
Put back Nextflow green RGB header
Browse files Browse the repository at this point in the history
Use raw ANSI codes to get precise RGB codes.

Signed-off-by: Phil Ewels <[email protected]>
  • Loading branch information
ewels committed Feb 10, 2024
1 parent 88c98f9 commit b20db16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,11 @@ class CmdRun extends CmdBase implements HubOptions {
// Fancy coloured header for the ANSI console output
def fmt = ansi()
fmt.a("\n")
fmt.bg(Color.CYAN).fg(Color.BLACK).bold().a(" N E X T F L O W ").reset()
// Use exact Nextflow green RGB (13, 192, 157) and exact black text (0,0,0)
// Should render the same on every terminal, irrespective of colour scheme
// Jansi library can't do RGBs, so just do the ANSI codes manually
fmt.a("\033[1;38;2;0;0;0;48;2;13;192;157m N E X T F L O W ").reset()
// Show Nextflow version
fmt.a(Attribute.INTENSITY_FAINT).a(" ~ ").reset().a("version " + BuildInfo.version).reset()
fmt.a("\n")
AnsiConsole.out().println(fmt.eraseLine())
Expand Down

0 comments on commit b20db16

Please sign in to comment.