diff options
Diffstat (limited to 'testing/toxic/chat.c')
-rw-r--r-- | testing/toxic/chat.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/testing/toxic/chat.c b/testing/toxic/chat.c index b835cf2d..19f5c972 100644 --- a/testing/toxic/chat.c +++ b/testing/toxic/chat.c | |||
@@ -107,19 +107,16 @@ static void chat_onKey(ToxWindow* self, int key) { | |||
107 | } | 107 | } |
108 | else if(key == '\n') { | 108 | else if(key == '\n') { |
109 | 109 | ||
110 | printf("Get times to int"); | ||
111 | int inthour = timeinfo->tm_hour; //Pretty bad, but it gets the job done | 110 | int inthour = timeinfo->tm_hour; //Pretty bad, but it gets the job done |
112 | int intmin = timeinfo->tm_min; | 111 | int intmin = timeinfo->tm_min; |
113 | char min[2]; | 112 | char min[2]; |
114 | char hour[2]; | 113 | char hour[2]; |
115 | printf("Turn to varible"); | ||
116 | sprintf(hour,"%d",inthour); | 114 | sprintf(hour,"%d",inthour); |
117 | if (intmin < 10) { | 115 | if (intmin < 10) { |
118 | sprintf(min,"0%d",intmin); | 116 | sprintf(min,"0%d",intmin); |
119 | } else { | 117 | } else { |
120 | sprintf(min,"%d",intmin); | 118 | sprintf(min,"%d",intmin); |
121 | } | 119 | } |
122 | printf("Display"); | ||
123 | wattron(ctx->history, COLOR_PAIR(2)); | 120 | wattron(ctx->history, COLOR_PAIR(2)); |
124 | wprintw(ctx->history,"%s",hour); | 121 | wprintw(ctx->history,"%s",hour); |
125 | wprintw(ctx->history,":%s ",min); | 122 | wprintw(ctx->history,":%s ",min); |