Added usage of themed outputs

This commit is contained in:
James Booth
2016-02-21 23:56:20 +00:00
parent 1ecc378db5
commit 9e7f472b23
2 changed files with 48 additions and 2 deletions

View File

@@ -10,8 +10,10 @@ cmd_pid(char **args)
pid_t pid = getpid();
pid_t ppid = getppid();
char buf[50];
sprintf(buf, "PID: %d, parent PID: %d", pid, ppid);
prof_cons_show(buf);
sprintf(buf, "PID: %d", pid);
prof_cons_show_themed("pid", "self", "bold_cyan", buf);
sprintf(buf, "Parent PID: %d", ppid);
prof_cons_show_themed("pid", "parent", "cyan", buf);
prof_cons_alert();
}