Re: defining Esc key to delete line in Command Window

Rik <[email protected]> Mon, 3 May 2021 17:23:15 -0700
Newsgroups gmane.comp.gnu.octave.maintainers
Message-ID <MTAwMDAzNS5ub21hZA.1620087801@quikprotect>
On 05/03/2021 04:13 PM, [email protected] wrote:
> Subject:
> Re: transposing comma problem
> From:
> Hamed Shakouri <[email protected]>
> Date:
> 05/03/2021 04:12 PM
>
> To:
> octave-maintainers <[email protected]>
>
> List-Post:
> <mailto:[email protected]>
> Precedence:
> list
> MIME-Version:
> 1.0
> References:
> <CAOBG-Tim1yREiim8xycqdZjUuP=9KNn04OUU7MpL90N4v9YvGg@mail.gmail.com>
> <[email protected]>
> <CAOBG-ThvhDmPWnXCJQTmbU7d_WNdHGacOzj4ZCYi6x2a6wXong@mail.gmail.com>
> <CAOBG-Tg5BXS93LY7YF_Qz2G5x0O7pDVThaFx2+V35GfFrHR4iQ@mail.gmail.com>
> <[email protected]>
> <CAOBG-TijKxoXPQdJ0t0gwkDZvbga7udL4Gt=jhn0SrM2yvsKsg@mail.gmail.com>
> <CAOBG-Tiuq2ED-CouoNL3AQB4eRA=5RfNaF9rL=x=qdSQ8wRxtQ@mail.gmail.com>
> <[email protected]>
> <CAJWf-13ff+rR0Oz_-m9sdgM7iu1DxEy3Oa=LyhOLc64kW9LK6A@mail.gmail.com>
> <CAJWf-12TiuoduY_qtTwbYx3psdd7_0JDWe-=Cnp33chZm9VEww@mail.gmail.com>
> <CAOBG-TjbC03-idxdRz23fiJXvKtJsb0o6c2v6eyvk1oJWvQxgA@mail.gmail.com>
> <trinity-410cc0b3-c68a-466d-b587-df144175fdce-1620023118277@3c-app-gmx-bs59>
> <CAOBG-ThndfB60fHsg8bfWnB7pa5zatbRoYysqoq23FBnPrpPsA@mail.gmail.com>
> In-Reply-To:
> <CAOBG-ThndfB60fHsg8bfWnB7pa5zatbRoYysqoq23FBnPrpPsA@mail.gmail.com>
> Message-ID:
> <CAOBG-Thj2t=H2vtyKxF0KArwuAY7Eju=j=1p+LS+sKi=QFLoVA@mail.gmail.com>
> Content-Type:
> multipart/related; boundary="000000000000fd8fd705c1751969"
> Message:
> 1
>
>
> Hi there,
>
> Thanks to all the OCTAVE developers.
> I had posted this suggestion before (when I started working with OCTAVE 4).
> Please consider defining Escape key for deleting the entire line in the
> command window.
> I can explain why this is important, if you are interested.
>

If implemented, this would absolutely have to be configurable.  Not
everyone in the world works the same way.  Ask a 'vi' user whether Esc
should be mapped to kill-line and you will get a hostile response.

You might look into readline bindings and your .inputrc if you want to
configure how line-editing works.

--Rik