2009-10-29, 07:23(+00), Stephane CHAZELAS: > 2009-10-28, 20:28(-04), Dave Rutherford: > [...] >> Add to .Xdefaults: XTerm*answerbackString: ^[[2~ >> Add to .bashrc (and .profile if it doesn't source .bashrc): >> bind '"^[[2~": overwrite-mode' >> PROMPT_COMMAND='echo -n ^E' > [...] > > Along those lines, you could use the TIOCSTI ioctl. That would > be system dependant instead of terminal dependant. Like sti.c: [...] > PROMPT_COMMAND="sti \$'\05'"
Sorry, that should have been PROMPT_COMMAND="sti \$'\e[2~'" Assuming ^[[2~ is bound to overwrite-mode. -- Stéphane