summaryrefslogtreecommitdiffstats
path: root/src/ui/logo.vala
blob: 46fbaf7e5bdb39c45ca0e4a96cf9ae85982e5ce4 (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();
	}

}