1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 19:56:45 +02:00

added status bar to prompt and fixed some bugs

This commit is contained in:
Jfreegman
2013-09-06 19:59:45 -04:00
parent 9c7cad0d55
commit 261310b091
7 changed files with 183 additions and 75 deletions

View File

@ -44,6 +44,7 @@
/* Export for use in Callbacks */
char *DATA_FILE = NULL;
char *SRVLIST_FILE = NULL;
ToxWindow *prompt = NULL;
void on_window_resize(int sig)
{
@ -392,7 +393,7 @@ int main(int argc, char *argv[])
init_term();
Tox *m = init_tox();
ToxWindow *prompt = init_windows(m);
prompt = init_windows(m);
if (f_loadfromfile)
load_data(m, DATA_FILE);
@ -411,6 +412,8 @@ int main(int argc, char *argv[])
attroff(COLOR_PAIR(RED) | A_BOLD);
}
prompt_init_statusbar(prompt, m);
while (true) {
/* Update tox */
do_tox(m, prompt);