raiguard/tcom

git clone https://git.raiguard.me/raiguard/tcom

Caleb HeuerClean up graveyardbc83696

trunk
619 B24 linesraw
1term_test_drawing :: proc() {
2	term_size := platform_term_get_size()
3
4	fmt.print(
5		"\x1b[2J", // Clear the screen
6		"\x1b[H",  // Move cursor to home
7		"\x1b(0",  // Set box-drawing character set
8		"l",       // Draw top-left corner of box
9		sep=""
10	)
11
12	for _ in 1..<term_size.w {
13		fmt.print("q") // Horizontal box character
14	}
15	fmt.print("\x1b[H\n") // Move cursor to home and down one line
16	for r in 1..<term_size.h {
17		fmt.print("x") // Vertical box character
18		if r < term_size.h - 1 {
19			fmt.print("\r\n") // Move to beginning of line, move to next line
20		}
21	}
22
23	fmt.print("\x1b(B") // Set ascii character set
24}