Allow ascii in rooms, changed themes

This commit is contained in:
James Booth
2016-02-25 02:02:02 +00:00
parent bb8bb9de5c
commit fe1585ecfd
3 changed files with 5 additions and 4 deletions

View File

@@ -3,7 +3,8 @@ import subprocess
def _cmd_ascii(text):
recipient = prof.get_current_recipient()
if recipient:
room = prof.get_current_muc()
if recipient or room:
proc = subprocess.Popen(['figlet', '--', text], stdout=subprocess.PIPE)
ascii_out = proc.communicate()[0].decode('utf-8')
prof.send_line(u'\u000A' + ascii_out)

View File

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

View File

@@ -3,7 +3,7 @@ import platform
def _cmd_platform():
result_summary = platform.platform()
prof.cons_show(result_summary)
prof.cons_show_themed("platform", "line", None, result_summary)
def prof_init(version, status):
synopsis = [