Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlbYw-0005Kl-CF for pgsql-general@arkaria.postgresql.org; Mon, 02 May 2022 19:18:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nlbYu-0000e0-4Q for pgsql-general@arkaria.postgresql.org; Mon, 02 May 2022 19:18:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlbYt-0000dq-Q9 for pgsql-general@lists.postgresql.org; Mon, 02 May 2022 19:18:23 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlbYn-0004Hc-ND for pgsql-general@lists.postgresql.org; Mon, 02 May 2022 19:18:23 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id F2CCB2A0108 for ; Mon, 2 May 2022 12:18:14 -0700 (PDT) Date: Mon, 2 May 2022 12:18:14 -0700 (PDT) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: External psql editor In-Reply-To: <06c83dc5167c9a1b3a724cab7e257591b5798ff9.camel@nc.rr.com> Message-ID: References: <7fef2d5f-6698-0bb5-11fe-ffd042a24ab1@wi3ck.info> <89e71248-2fa8-c6ee-9546-93286947ed3b@appl-ecosys.com> <972d9c5f4293b858a5b505e6af8debd1ca16cf3c.camel@nc.rr.com> <478d98fa-93a6-3c27-a9d4-8d735fdba18a@appl-ecosys.com> <06c83dc5167c9a1b3a724cab7e257591b5798ff9.camel@nc.rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2 May 2022, Reid Thompson wrote: >> Apparently, psql is different. > I believe that psql also uses readline, so my thought was that maybe these > instructions could enable you to map the 'move' keystrokes that you're > familiar with to be used while on the psql command line. A very quick test > seems to indicate that you can. Reid, Nope. No difference. Learning to put the '\e' at the end of the command line rather than at the head did the job. All's well. Thanks, Rich