mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 21:13:02 +01:00
commit
503e4e0058
3
chat.c
3
chat.c
@ -107,19 +107,16 @@ static void chat_onKey(ToxWindow* self, int key) {
|
||||
}
|
||||
else if(key == '\n') {
|
||||
|
||||
printf("Get times to int");
|
||||
int inthour = timeinfo->tm_hour; //Pretty bad, but it gets the job done
|
||||
int intmin = timeinfo->tm_min;
|
||||
char min[2];
|
||||
char hour[2];
|
||||
printf("Turn to varible");
|
||||
sprintf(hour,"%d",inthour);
|
||||
if (intmin < 10) {
|
||||
sprintf(min,"0%d",intmin);
|
||||
} else {
|
||||
sprintf(min,"%d",intmin);
|
||||
}
|
||||
printf("Display");
|
||||
wattron(ctx->history, COLOR_PAIR(2));
|
||||
wprintw(ctx->history,"%s",hour);
|
||||
wprintw(ctx->history,":%s ",min);
|
||||
|
Loading…
Reference in New Issue
Block a user