summaryrefslogtreecommitdiffstats
path: root/src/ui/logo.vala
blob: 5a94422e45c8909917aa9eb4b6a821d294f72065 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using Curses;

public class Logo {
	Window win;

	public Logo() {
		win = new Window(8, COLS - 2, 0, 1);
		win.bkgdset(COLOR_PAIR(1) | Attribute.BOLD);

		win.addstr("\n");
		win.addstr("   _  ___  _____   ____  _                 \n");
		win.addstr("  | |/ / ||_   _| / ___|| |__   ___  _ __  \n");
		win.addstr("  | ' /| __|| |   \\___ \\| '_ \\ / _ \\| '_ \\ \n");
		win.addstr("  | . \\| |_ | |    ___) | | | | (_) | |_) )\n");
		win.addstr("  |_|\\_\\\\__||_|   |____/|_| |_|\\___/| .__/ \n");
		win.addstr("                                    |_|    \n");

		win.clrtobot();

		win.box(0, 0);

		win.refresh();
	}

	public void redraw() {
		win.touchwin();
		win.refresh();
	}

}