Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
d21e6812
...
d21e6812de7744323709555e7d3c063dcd2538e8
authored
2003-08-18 13:59:50 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(ml_readline_with_intr): New function.
1 parent
00f4455e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
mail/mail.h
mail/mailline.c
mail/mail.h
View file @
d21e681
...
...
@@ -320,6 +320,7 @@ extern void ml_clear_interrupt __P ((void));
extern
void
ml_readline_init
__P
((
void
));
extern
int
ml_reread
__P
((
const
char
*
prompt
,
char
**
text
));
extern
char
*
ml_readline
__P
((
char
*
prompt
));
extern
char
*
ml_readline_with_intr
__P
((
char
*
prompt
));
extern
char
*
alias_expand
__P
((
char
*
name
));
extern
void
alias_destroy
__P
((
char
*
name
));
...
...
mail/mailline.c
View file @
d21e681
...
...
@@ -176,6 +176,14 @@ ml_readline (char *prompt)
return
ml_readline_internal
();
}
char
*
ml_readline_with_intr
(
char
*
prompt
)
{
char
*
str
=
ml_readline
(
prompt
);
if
(
_interrupted
)
printf
(
"
\n
"
);
return
str
;
}
#ifdef WITH_READLINE
...
...
Please
register
or
sign in
to post a comment