Currently, tmux does not provide any reply to the enquiry character,
even if the parent terminal has one defined. This patch allows the
user to specify an answerback in a window option "enq-answerback"
with default value "".
I found this necessary for systems that expect a certain value in
response to an ENQ character.
---
input.c | 3 +++
options-table.c | 5 +++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/input.c b/input.c
index 259fad1..7bcf5d3 100644
--- a/input.c
+++ b/input.c
@@ -945,6 +945,9 @@ input_c0_dispatch(struct input_ctx *ictx)
switch (ictx->ch) {
case '\000': /* NUL */
break;
+ case '\005': /* ENQ */
+ input_reply(ictx, options_get_string(&wp->window->options,
"enq-answerback"));
+ break;
case '\007': /* BEL */
wp->window->flags |= WINDOW_BELL;
break;
diff --git a/options-table.c b/options-table.c
index 5da095b..80037d2 100644
--- a/options-table.c
+++ b/options-table.c
@@ -506,6 +506,11 @@ const struct options_table_entry
window_options_table[] = {
.default_num = 1
},
+ { .name = "enq-answerback",
+ .type = OPTIONS_TABLE_STRING,
+ .default_str = ""
+ },
+
{ .name = "force-height",
.type = OPTIONS_TABLE_NUMBER,
.minimum = 0,
--
1.7.1
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users