blob: 8aa40b87f94b9947a954277a7712cd37564f24b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <libterm/terminal.h>
#include <libterm/readline.h>
#include <knob/task.h>
#include "cmds.h"
#include "line.h"
#include "vars.h"
void main(const char *arg) {
source(*arg ? arg : "/user/default.rc");
ensure_color();
term_add_sz("Portland Highway\nType \"help\" for help.\n");
term_paint();
struct history *h = new_history(200);
char cmd_buf[128];
while (1) {
read_line(cmd_buf, 127, "> ", h);
run_line(cmd_buf);
}
}
|