Minor, rename internal functions/variables screen_* -> tt*

- Shorter
 - Follows old UNIX tradition
 - Lines up with next commit

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-04-07 10:06:01 +02:00
1 parent 7bc1470a1e
commit 522276b80d
7 files changed
+45 -40

No files matched your search

+5 -5
View File
@@ -154,7 +154,7 @@ static void find_active_consoles(void)
void console_init(void)
{
find_active_consoles();
screen_init();
ttinit();
}
ssize_t cprintf(const char *fmt, ...)
@@ -255,7 +255,7 @@ static char *pad(char *buf, size_t len, char *ch, size_t width)
void print_banner(const char *heading)
{
char buf[4 * SCREEN_WIDTH];
char buf[4 * ttcols];
if (progress_style == PROGRESS_SILENT)
return;
@@ -266,9 +266,9 @@ void print_banner(const char *heading)
if (progress_style == PROGRESS_CLASSIC) {
strlcat(buf, "\e[1m", sizeof(buf));
strlcat(buf, heading, sizeof(buf));
pad(buf, sizeof(buf), "=", SCREEN_WIDTH + 10);
pad(buf, sizeof(buf), "=", ttcols + 10);
} else {
size_t wmax = 80 <= SCREEN_WIDTH ? 80 : SCREEN_WIDTH;
size_t wmax = 80 <= ttcols ? 80 : ttcols;
/* • • • Foo System ═══════════════════════════════════════════════ */
/* ⬤ ⬤ ⬤ Foo System ═══════════════════════════════════════════════ */
@@ -331,7 +331,7 @@ static char *status(int rc)
void printv(const char *fmt, va_list ap)
{
char buf[SCREEN_WIDTH];
char buf[ttcols];
size_t len;
if (!fmt || progress_style == PROGRESS_SILENT)