Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tief9-000p9t-Vg for pgsql-general@arkaria.postgresql.org; Thu, 13 Feb 2025 19:14:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tief7-00D0BG-Vt for pgsql-general@arkaria.postgresql.org; Thu, 13 Feb 2025 19:14:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tief7-00D05z-KS for pgsql-general@lists.postgresql.org; Thu, 13 Feb 2025 19:14:14 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tief6-000dKe-2B for pgsql-general@lists.postgresql.org; Thu, 13 Feb 2025 19:14:13 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-21c2f1b610dso28958125ad.0 for ; Thu, 13 Feb 2025 11:14:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739474052; x=1740078852; darn=lists.postgresql.org; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=RsCmnqWAggeK6oGPm6sE5GzaUi4VFBSpg4+zemqOmZw=; b=Xvr27cLqoi3zOV1T47jvqsU1K4UoablnidKUTVe5bqJFGDdGAchuSmnaCp9ElDL2u1 h/TTCOt/Vs4xAnYSTmFKJVKm+sBmc7MVlp9XvbTTQgXtUx77x1uoo+D9R8X2WXFAX4yv imhdUmqwvLbXmUYQ8PNxMMbky3f1oU9FHxttBEsURCpnwI7kzN7ilTnn1rJZ0oRuHYjW oQrJxJSLugMyLMVFH3Gawa63hywPc80oQEk7NoRay8UdhWuX96+zAyRj0RaxMSndSifA xgiQpWVayonS3WjK468e5Mhq/YPPVCfLak9R/ZwY1vnKzpzrKbDAGcvyFIelGqa7JbNJ j7PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739474052; x=1740078852; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=RsCmnqWAggeK6oGPm6sE5GzaUi4VFBSpg4+zemqOmZw=; b=vgYNjsG8uBrMPF/es2yuoCP/FhHCf1+5L9ckJXJ9Y4oWkGmJu6aMNxpmZd5Mktggo8 5ctBqk92S4lXWFzlCeGpr+VdNjKg0cDPfOF8D0NiHcY72vPeW6EYUB75Wo0Hcl4DcSIr hwNDvJoPSY4nSYWNg4FASWwrgiITT1eFZ+zx7MjJUEkygjfsTPqgpwCg4SKdUKq7R2mZ hKw7s3IufjQYQKnOmEdofP7wGRs8y3H4KPsiLRm6tjqzRUwZ10WuKw5ZSu+Ks0MNj+q9 /3CQgxHQdI2WZvP+DMFVJ8bDXZq4xNfG8PCj1nJFAvAuuBTLumg7iQn4tvdikIkAmOE5 kxVA== X-Gm-Message-State: AOJu0YznfkAVe+B4vYRWP8gLnfBLpCH2leHRkKv1aj8Wj/XwtDDdx10V Po79x38ApcC62eYOrU39+X+M2yXxWkMu7rWCSM8H5l0j0NMd0pclgU4u5A== X-Gm-Gg: ASbGncu1Fd3X2G+l8GECHJv7S35PIu8Pzg6KwYNPOwl+sMaqo1TBp5Al54EGIxPwu2A lUB0q53Ubi1HCuFcAF8anTdKtcL2etaJQ+VF6/N7WF4KOuO09jji2d2Kwee9RSwcTsAbvX364R4 BTnpaBfOXm560pNtTF0FIOw1Aab9xyfRve49KYxPYiSI0H0sRevhSHbIfM5h25StWi9Mc3Pe+X/ aA7y6C7dqzMxfPz9EzmG25nVxbmIsGetF8Z2B62scMCBXd3fYYF/EcN9JEko6kAkbCF0GdAU9ni DIJdszaArY88IpWhYd4vKdzJsIBsP3GAN2K76aAP16ZNSDVtYUTL6ECDK/J1N9RtFQ== X-Google-Smtp-Source: AGHT+IHHbncVl7ud72sZHDvCe59ZvItMKoytZ30CcoOPOVbzPJbEHLmHC0A17h5BBGq6bs7e7O7tng== X-Received: by 2002:a17:903:2f8d:b0:21f:7082:1137 with SMTP id d9443c01a7336-220d20d8a91mr85184945ad.22.1739474051484; Thu, 13 Feb 2025 11:14:11 -0800 (PST) Received: from ?IPV6:2601:681:4c01:7310:c4b0:67a6:c593:4419? ([2601:681:4c01:7310:c4b0:67a6:c593:4419]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-220d537c921sm15591195ad.104.2025.02.13.11.14.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Feb 2025 11:14:11 -0800 (PST) Content-Type: multipart/alternative; boundary="------------ha08uEFWG1oOtzaoQhJMbmsp" Message-ID: Date: Thu, 13 Feb 2025 12:14:10 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: psql command line editing To: pgsql-general@lists.postgresql.org References: <61255ab-6249-1226-7db6-4ecc3e4c127b@appl-ecosys.com> <3370941.1739388555@sss.pgh.pa.us> <4e1966c1-1f24-47e5-9c87-8cf466216b6b@aklaver.com> Content-Language: en-CA From: Rob Sargent In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------ha08uEFWG1oOtzaoQhJMbmsp Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2/13/25 12:11, Ron Johnson wrote: > 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 , and butter sauce. > Don't boil me, I'm still alive. > lobster! We're an ancient -not to say insidious- cult. --------------ha08uEFWG1oOtzaoQhJMbmsp Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 2/13/25 12:11, Ron Johnson wrote:
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!
We're an ancient -not to say insidious- cult.
--------------ha08uEFWG1oOtzaoQhJMbmsp--