Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
feac5066
Commit
feac5066
authored
Oct 28, 2013
by
vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interface.c: fixed bug with tabs after help command. Added new items to help
parent
16b8105d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
interface.c
interface.c
+8
-4
No files found.
interface.c
View file @
feac5066
...
@@ -488,7 +488,7 @@ void interpreter (char *line UU) {
...
@@ -488,7 +488,7 @@ void interpreter (char *line UU) {
do_get_history
(
Peers
[
index
],
limit
);
do_get_history
(
Peers
[
index
],
limit
);
}
}
}
else
if
(
!
memcmp
(
line
,
"help"
,
4
))
{
}
else
if
(
!
memcmp
(
line
,
"help"
,
4
))
{
print_start
();
//
print_start ();
push_color
(
COLOR_YELLOW
);
push_color
(
COLOR_YELLOW
);
printf
(
printf
(
"help - prints this help
\n
"
"help - prints this help
\n
"
...
@@ -502,17 +502,21 @@ void interpreter (char *line UU) {
...
@@ -502,17 +502,21 @@ void interpreter (char *line UU) {
"send_text <peer> <text-file-name> - sends text file as plain messages
\n
"
"send_text <peer> <text-file-name> - sends text file as plain messages
\n
"
"chat_info <chat> - prints info about chat
\n
"
"chat_info <chat> - prints info about chat
\n
"
"user_info <user> - prints info about user
\n
"
"user_info <user> - prints info about user
\n
"
"fwd <user> <msg-seqno> - forward message to user. You can see message numbers starting client with -N
\n
"
"rename_chat <char> <new-name>
\n
"
"load_photo/load_video/load_video_thumb <msg-seqno> - loads photo/video to download dir
\n
"
"view_photo/view_video/view_video_thumb <msg-seqno> - loads photo/video to download dir and starts system default viewer
\n
"
"show_license - prints contents of GPLv2
\n
"
);
);
pop_color
();
pop_color
();
print_end
();
rl_on_new_line
();
//print_end ();
printf
(
"
\033
[1K
\033
H"
);
printf
(
"
\033
[1K
\033
H"
);
}
else
if
(
!
memcmp
(
line
,
"show_license"
,
12
))
{
}
else
if
(
!
memcmp
(
line
,
"show_license"
,
12
))
{
char
*
b
=
char
*
b
=
#include "LICENSE.h"
#include "LICENSE.h"
;
;
print_start
();
printf
(
"%s"
,
b
);
printf
(
"%s"
,
b
);
print_end
();
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment