bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to start in "overwrite-mode"


From: Stephane CHAZELAS
Subject: Re: how to start in "overwrite-mode"
Date: Thu, 29 Oct 2009 08:09:53 +0000 (UTC)
User-agent: slrn/pre1.0.0-11 (Linux)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]