Eg. when you're running nice things like Perl or Ruby REPLs, you have code/command completion exposed via GNU Readline. What I want to do is set some elisp/env variable when entering/exiting such a program to indicate that I want shell-mode
to pass the TAB key onto those programs.
Note that C-q TAB
also does not work, so I think that Readline is also ignoring it because TERM=dumb
, but setting it to eg. vt100 also doesn't do the trick, so it might even be looking at EMACS=t
.
RET
, then receives output until it recognizes a prompt. Completion must therefore be solved on its side. – wasamasa Feb 01 '16 at 06:22comint-send-*
functions allow you to send input to the process. You could certainly write a command which would send the input you wanted, and bind that to TAB. Whether you'd get back the output you want in a form that was usable is another question, but you might as well try it and see what happens. – phils Sep 26 '18 at 02:45