Search Postgresql Archives

Re: psql command line editing

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

 



On Wed, Feb 12, 2025 at 3:29 PM Adrian Klaver <adrian.klaver@xxxxxxxxxxx> wrote:
On 2/12/25 12:03, Ron Johnson wrote:
> On Wed, Feb 12, 2025 at 2:29 PM Tom Lane <tgl@xxxxxxxxxxxxx
> <mailto:tgl@xxxxxxxxxxxxx>> 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!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux