public inbox for [email protected]
help / color / mirror / Atom feedFrom: Ron Johnson <[email protected]>
To: pgsql-general <[email protected]>
Subject: Re: psql command line editing
Date: Thu, 13 Feb 2025 14:11:15 -0500
Message-ID: <CANzqJaB5nyTnFsneikXnPr9hXTL-7_nRTHoOYjOyF=3mbFQYGA@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<CANzqJaCHXvZRC6xJbxg80DoWNmm-ohFP+u=VqpsXd6wtqXXpmw@mail.gmail.com>
<[email protected]>
<CANzqJaDON5n_covMuRLA2WKTxrnG_xGYENer84GAjKSWDTH+QA@mail.gmail.com>
<[email protected]>
On Wed, Feb 12, 2025 at 3:29 PM Adrian Klaver <[email protected]>
wrote:
> On 2/12/25 12:03, Ron Johnson wrote:
> > On Wed, Feb 12, 2025 at 2:29 PM Tom Lane <[email protected]
> > <mailto:[email protected]>> wrote:
>
> > There's got to be something in your shell config which says "use emacs
> > keys" instead of "use vi keys".
>
> From man readline:
>
> "By default, the line editing commands are similar to those of emacs. A
> vi-style line editing interface is also available."
>
> To change from the default would involve setting editing-mode in
> /etc/inputrc or ~/.inputrc.
>
It appears that the RHEL default /etc/initrc file defines a bunch of escape
sequences "for linux console and RH/Debian xterm" cursor keys when in emacs
mode.
Our servers are RHEL, my ssh client emulates xterm, and is in the default
emacs mode. Thus, the cursor keys automagically work for me, and I just
learned that I've been in emacs mode this whole time!
--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!
view thread (14+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: psql command line editing
In-Reply-To: <CANzqJaB5nyTnFsneikXnPr9hXTL-7_nRTHoOYjOyF=3mbFQYGA@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox