client: Support $if Empire in .inputrc
Set the application name to "Empire" to support Empire-specific customization of readline. Use in .inputrc looks like this: $if Empire set bell-style audible set history-size 500 else set bell-style visible $endif Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
ba484d1389
commit
6a0f9d9874
2 changed files with 3 additions and 1 deletions
|
@ -91,7 +91,8 @@ The filename for the \fBreadline\fP startup file, overriding the
|
||||||
default of \fI~/.inputrc\fP (see \fBREADLINE\fP below).
|
default of \fI~/.inputrc\fP (see \fBREADLINE\fP below).
|
||||||
.SH READLINE
|
.SH READLINE
|
||||||
When compiled with the GNU \fBreadline\fP library, the client supports
|
When compiled with the GNU \fBreadline\fP library, the client supports
|
||||||
fancy line editing and persistent history. See the readline
|
fancy line editing and persistent history. Its application name for
|
||||||
|
application-specific settings is \fBEmpire\fP. See the readline
|
||||||
documentation for details.
|
documentation for details.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
\fIemp_server\fR(6), \fIreadline\fR(3).
|
\fIemp_server\fR(6), \fIreadline\fR(3).
|
||||||
|
|
|
@ -567,6 +567,7 @@ play(int sock, char *history_file)
|
||||||
if (isatty(0)) {
|
if (isatty(0)) {
|
||||||
use_readline = 1;
|
use_readline = 1;
|
||||||
rl_already_prompted = 1;
|
rl_already_prompted = 1;
|
||||||
|
rl_readline_name = "Empire";
|
||||||
if (history_file)
|
if (history_file)
|
||||||
read_history(history_file);
|
read_history(history_file);
|
||||||
rl_bind_key('\t', rl_insert); /* Disable tab completion */
|
rl_bind_key('\t', rl_insert); /* Disable tab completion */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue