From feac5066280d401f5d11c2a7e3962441df41496c Mon Sep 17 00:00:00 2001 From: vysheng Date: Mon, 28 Oct 2013 23:14:34 +0400 Subject: [PATCH] interface.c: fixed bug with tabs after help command. Added new items to help --- interface.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/interface.c b/interface.c index b5155fb..b5e9d3d 100644 --- a/interface.c +++ b/interface.c @@ -488,7 +488,7 @@ void interpreter (char *line UU) { do_get_history (Peers[index], limit); } } else if (!memcmp (line, "help", 4)) { - print_start (); + //print_start (); push_color (COLOR_YELLOW); printf ( "help - prints this help\n" @@ -502,17 +502,21 @@ void interpreter (char *line UU) { "send_text - sends text file as plain messages\n" "chat_info - prints info about chat\n" "user_info - prints info about user\n" + "fwd - forward message to user. You can see message numbers starting client with -N\n" + "rename_chat \n" + "load_photo/load_video/load_video_thumb - loads photo/video to download dir\n" + "view_photo/view_video/view_video_thumb - loads photo/video to download dir and starts system default viewer\n" + "show_license - prints contents of GPLv2\n" ); pop_color (); - print_end (); + rl_on_new_line (); + //print_end (); printf ("\033[1K\033H"); } else if (!memcmp (line, "show_license", 12)) { char *b = #include "LICENSE.h" ; - print_start (); printf ("%s", b); - print_end (); } }