diff options
author | James Booth <boothj5@gmail.com> | 2013-02-17 02:10:56 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-02-17 02:10:56 +0000 |
commit | bced3d4b36c2080b6dee2c2aa14b64c8cf405cc5 (patch) | |
tree | 96aeb660a422139f6524842cb68e1309176e80e9 /src/ui | |
parent | 44d2f8da7a235997049bac68fea746682ae49e9f (diff) | |
download | profani-tty-bced3d4b36c2080b6dee2c2aa14b64c8cf405cc5.tar.gz |
Added autocomplete for /software command
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/ui.h | 2 | ||||
-rw-r--r-- | src/ui/windows.c | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/ui/ui.h b/src/ui/ui.h index 378cea69..14d03ef0 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -168,6 +168,8 @@ void cons_show_info(PContact pcontact); void cons_show_caps(PContact pcontact); void cons_show_themes(GSList *themes); void cons_show_login_success(ProfAccount *account); +void cons_show_software_version(const char * const jid, const char * const name, + const char * const version, const char * const os); // status bar actions void status_bar_refresh(void); diff --git a/src/ui/windows.c b/src/ui/windows.c index a7bf5eec..7a34b17a 100644 --- a/src/ui/windows.c +++ b/src/ui/windows.c @@ -1206,6 +1206,25 @@ cons_show_caps(PContact pcontact) } void +cons_show_software_version(const char * const jid, const char * const name, + const char * const version, const char * const os) +{ + if ((name != NULL) || (version != NULL) || (os != NULL)) { + cons_show(""); + cons_show("%s:", jid); + } + if (name != NULL) { + cons_show(" Name : %s", name); + } + if (version != NULL) { + cons_show(" Version : %s", version); + } + if (os != NULL) { + cons_show(" OS : %s", os); + } +} + +void cons_show_status(const char * const contact) { PContact pcontact = contact_list_get_contact(contact); |