25 ft_printf(
"%s%s%c",
BOLD, mystic[idx % 5], c);
35 const char *title =
">>> MINIHELL <<<";
41 col = (t->
width - 16) / 2;
53 ft_printf(
"%s",
RESET);
68 q1 =
"\"Unix is simple. It just takes a genius";
69 q2 =
"to understand its simplicity.\"";
70 q3 =
"- Dennis Ritchie";
74 ft_printf(
"%s%s", q1,
RESET);
79 ft_printf(
"%s%s", q2,
RESET);
84 ft_printf(
"%s%s", q3,
RESET);
98 C_AURA3 "╔════════════════════════════════════════════╗" RESET, 46);
102 C_AURA3 "╚════════════════════════════════════════════╝" RESET, 46);
Extended terminal info (for welcome screen pos)
int center_y
Vertical center row.
static void print_mystic_char(char c, int idx)
Print a single title character in mystic fire color.
static void print_quote_lines(t_welcome_term *t, int row)
Print the quote and its box borders.
void animate_quote(t_welcome_term *t)
Draw the quote inside a decorative box.
void animate_title(t_welcome_term *t)
Animate the title appearing character by character.
Welcome screen structures & prototypes.
void print_centered(t_welcome_term *t, int row, const char *str, int len)
Print string centered on the given row.
void ft_msleep(int ms)
Sleep for approximately ms millisecondes using a little trick.
void print_at_pos(int row, int col, const char *str)
Move the terminal cursor to [row, col] and print str.