1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 03:56:45 +02:00

refactor chat history to allow scrolling

This commit is contained in:
Jfreegman
2014-03-24 07:18:58 -04:00
parent 7384440a3d
commit e5b6e0ad9f
14 changed files with 621 additions and 185 deletions

View File

@ -30,6 +30,7 @@
#include <limits.h>
#include "toxic_windows.h"
#include "misc_tools.h"
extern ToxWindow *prompt;
@ -65,6 +66,11 @@ void print_time(WINDOW *window)
wattroff(window,COLOR_PAIR(BLUE));
}
void get_time_str(uint8_t *buf)
{
strftime(buf, TIME_STR_SIZE, "[%H:%M:%S] ", get_time());
}
/* XXX: FIX */
unsigned char *hex_string_to_bin(char hex_string[])
{