mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
[init_banner] no extra space when we don't know a version
This commit is contained in:
parent
86b81dfbd1
commit
06de7ac582
@ -41,10 +41,11 @@ int init_banner(const notcurses* nc, fbuf* f){
|
||||
}
|
||||
if(!nc->suppress_banner){
|
||||
term_fg_palindex(nc, f, 50 % nc->tcache.caps.colors);
|
||||
fbuf_printf(f, "%snotcurses %s on %s %s (%s)" NL,
|
||||
fbuf_printf(f, "%snotcurses %s on %s %s%s(%s)" NL,
|
||||
clreol, notcurses_version(),
|
||||
nc->tcache.termname ? nc->tcache.termname : "?",
|
||||
nc->tcache.termversion ? nc->tcache.termversion : "",
|
||||
nc->tcache.termversion ? " " : "",
|
||||
osname());
|
||||
term_fg_palindex(nc, f, nc->tcache.caps.colors <= 256 ?
|
||||
14 % nc->tcache.caps.colors : 0x2080e0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user