Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1868b2cb51
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (26 sloc) 0.512 kb
#include <stdio.h>
#include "src/term.h"
int
main(int argc, char **argv){
term_bold();
term_underline();
printf("bold and underlined\n");
term_reset();
printf("reset\n");
term_color("green");
printf("ok\n");
term_bold();
term_color("red");
term_background("red");
printf("fail");
term_reset();
term_move_to(50, 10);
printf("hey");
term_move_by(1, 1);
printf("there");
term_move_to(0, 15);
int w = 0, h = 0;
term_size(&w, &h);
printf("%dx%d\n", w, h);
return 0;
}
Jump to Line
Something went wrong with that request. Please try again.