2013-10-23 10:26:17 -04:00
|
|
|
/*
|
|
|
|
This file is part of telegram-client.
|
|
|
|
|
|
|
|
Telegram-client is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Telegram-client is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this telegram-client. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
Copyright Vitaly Valtman 2013
|
|
|
|
*/
|
2013-10-03 08:38:25 -04:00
|
|
|
#ifndef __INTERFACE_H__
|
|
|
|
#define __INTERFACE_H__
|
2013-10-31 19:18:34 -04:00
|
|
|
#include "structures.h"
|
2013-10-13 06:18:08 -04:00
|
|
|
|
2013-10-23 06:24:59 -04:00
|
|
|
#define COLOR_RED "\033[0;31m"
|
|
|
|
#define COLOR_REDB "\033[1;31m"
|
2013-10-13 06:18:08 -04:00
|
|
|
#define COLOR_NORMAL "\033[0m"
|
|
|
|
#define COLOR_GREEN "\033[32;1m"
|
|
|
|
#define COLOR_GREY "\033[37;1m"
|
2013-10-16 15:19:39 -04:00
|
|
|
#define COLOR_YELLOW "\033[33;1m"
|
2013-10-18 12:00:47 -04:00
|
|
|
#define COLOR_BLUE "\033[34;1m"
|
2013-10-18 15:30:24 -04:00
|
|
|
#define COLOR_MAGENTA "\033[35;1m"
|
2013-10-13 06:18:08 -04:00
|
|
|
|
|
|
|
|
2013-10-03 08:38:25 -04:00
|
|
|
char *get_default_prompt (void);
|
|
|
|
char *complete_none (const char *text, int state);
|
|
|
|
char **complete_text (char *text, int start, int end);
|
|
|
|
void interpreter (char *line);
|
2013-10-11 16:52:20 -04:00
|
|
|
|
|
|
|
void rprintf (const char *format, ...) __attribute__ ((format (printf, 1, 2)));
|
2013-10-13 06:18:08 -04:00
|
|
|
void iprintf (const char *format, ...) __attribute__ ((format (printf, 1, 2)));
|
|
|
|
void logprintf (const char *format, ...) __attribute__ ((format (printf, 1, 2)));
|
|
|
|
void hexdump (int *in_ptr, int *in_end);
|
2013-10-16 15:19:39 -04:00
|
|
|
|
|
|
|
struct message;
|
2013-10-31 19:18:34 -04:00
|
|
|
union peer;
|
2013-10-16 15:19:39 -04:00
|
|
|
void print_message (struct message *M);
|
2013-10-31 19:18:34 -04:00
|
|
|
void print_chat_name (peer_id_t id, union peer *C);
|
|
|
|
void print_user_name (peer_id_t id, union peer *U);
|
2013-10-21 14:24:31 -04:00
|
|
|
//void print_media (struct message_media *M);
|
|
|
|
void pop_color (void);
|
|
|
|
void push_color (const char *color);
|
|
|
|
void print_start (void);
|
|
|
|
void print_end (void);
|
2013-10-24 03:38:32 -04:00
|
|
|
void print_date_full (long t);
|
2013-10-28 18:33:13 -04:00
|
|
|
|
|
|
|
void update_prompt (void);
|
2013-10-03 08:38:25 -04:00
|
|
|
#endif
|