Right, but that doesn't seem like something that is needed nowadays.
On Fri, Oct 25, 2013 at 06:26:13PM -0500, Aaron Oakley wrote: > It's used as a method of identification. Hardware terminals would have a > way to set a string that would be sent as if the user typed it on the > keyboard in response to an ENQ from the server. For example, it could be > set to the building/room/terminal number to identify to the server where > the terminal was connecting from. > Xterm has an option for this called**answerbackString which defaults to an > empty string and is configurable. > > On Fri, Oct 25, 2013 at 4:55 PM, Nicholas Marriott > <[1]nicholas.marri...@gmail.com> wrote: > > Hi > I don't like the idea of an option for this. > What is it used for? What does xterm reply? > > -------- Original message -------- > From: Aaron Oakley <[2]oakley.aa...@gmail.com> > Date: 25/10/2013 20:33 (GMT+00:00) > To: [3]tmux-users@lists.sourceforge.net > Subject: [PATCH] Add option to enable ENQ (^E) answerback > > 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 > > -- > Thanks, > Aaron Oakley > > References > > Visible links > 1. mailto:nicholas.marri...@gmail.com > 2. mailto:oakley.aa...@gmail.com > 3. mailto:tmux-users@lists.sourceforge.net ------------------------------------------------------------------------------ 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