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
68e3e1a4
Commit
68e3e1a4
authored
Oct 14, 2015
by
Michele Sorcinelli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add command line option for bell notifications
'--alert/A'
parent
2052f4b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
interface.c
interface.c
+1
-1
main.c
main.c
+7
-1
No files found.
interface.c
View file @
68e3e1a4
...
...
@@ -104,7 +104,7 @@ extern int enable_json;
int
disable_auto_accept
;
int
msg_num_mode
;
int
disable_colors
;
int
alert_sound
;
extern
int
alert_sound
;
extern
int
binlog_read
;
int
safe_quit
;
...
...
main.c
View file @
68e3e1a4
...
...
@@ -128,6 +128,7 @@ int ipv6_enabled;
char
*
start_command
;
int
disable_link_preview
;
int
enable_json
;
int
alert_sound
;
int
exit_code
;
struct
tgl_state
*
TLS
;
...
...
@@ -480,6 +481,7 @@ void usage (void) {
printf
(
" --wait-dialog-list/-W send dialog_list query and wait for answer before reading input
\n
"
);
printf
(
" --disable-colors/-C disable color output
\n
"
);
printf
(
" --disable-readline/-R disable readline
\n
"
);
printf
(
" --alert/-A enable bell notifications
\n
"
);
printf
(
" --daemonize/-d daemon mode
\n
"
);
printf
(
" --logname/-L <log-name> log file name
\n
"
);
printf
(
" --username/-U <user-name> change uid after start
\n
"
);
...
...
@@ -632,6 +634,7 @@ void args_parse (int argc, char **argv) {
{
"wait-dialog-list"
,
no_argument
,
0
,
'W'
},
{
"disable-colors"
,
no_argument
,
0
,
'C'
},
{
"disable-readline"
,
no_argument
,
0
,
'R'
},
{
"alert"
,
no_argument
,
0
,
'A'
},
{
"daemonize"
,
no_argument
,
0
,
'd'
},
{
"logname"
,
required_argument
,
0
,
'L'
},
{
"username"
,
required_argument
,
0
,
'U'
},
...
...
@@ -655,7 +658,7 @@ void args_parse (int argc, char **argv) {
int
opt
=
0
;
while
((
opt
=
getopt_long
(
argc
,
argv
,
"u:hk:vNl:fEwWCRdL:DU:G:qP:S:e:I6b"
while
((
opt
=
getopt_long
(
argc
,
argv
,
"u:hk:vNl:fEwWCR
A
dL:DU:G:qP:S:e:I6b"
#ifdef HAVE_LIBCONFIG
"c:p:"
#else
...
...
@@ -741,6 +744,9 @@ void args_parse (int argc, char **argv) {
case
'R'
:
readline_disabled
++
;
break
;
case
'A'
:
alert_sound
=
1
;
break
;
case
'd'
:
daemonize
++
;
break
;
...
...
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