#include #include #include #include #include #include #include "cmds.h" #include "line.h" #define FONT_NAME "berry" void main(const char *arg) { struct font_info *f = get_font(FONT_NAME); if (!f) return; active_term = make_term(f, 50, 18); if (!active_term) return; source(*arg ? arg : "user/default.rc"); ensure_color(); term_add_sz("Portland Highway\nType \"help\" for help.\n"); paint_term(); char cmd_buf[128]; while (1) { read_line(cmd_buf, 127, "> "); run_line(cmd_buf); } }