Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkvMW-0007Ee-Hs for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 17:56:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fkvMU-0002QO-Ku for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 17:56:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkvMU-0002QF-0w for pgsql-general@lists.postgresql.org; Wed, 01 Aug 2018 17:56:38 +0000 Received: from mail-lf1-x141.google.com ([2a00:1450:4864:20::141]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fkvMM-0006g5-BD for pgsql-general@postgresql.org; Wed, 01 Aug 2018 17:56:36 +0000 Received: by mail-lf1-x141.google.com with SMTP id b22-v6so13923730lfa.3 for ; Wed, 01 Aug 2018 10:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=G/YDdRcRkYov6tAO+Mjmgegic6YgST6I6nxHysM/zKw=; b=p7fM1NAmCxh16a2yR3iIwGU40l8TqSRAlEJQxgZVZR0XvcbnphPFvWHzYCu504smLg I9uyd1Yd6f0jvzoPRXgTZjdDvaTxUjEl+8htJPVhKB7clgkTgi7SJM4VG3NkbeOqNv/o wupoELgZP4YIn4TfaKstLJXD4/zza6TWykXs996s2V/BHWIliq1AfUXsmdgoJ+jvzk3i PGS1MVoqnYEEbt2n73OqRd80lxWa6lbkdnTntIz0KUtw46sVM/5Z+9bTldVMbJq5TcFu 5lC7aDPvym7ZNN8azD2e4XGyMoRqo/vp1AC9rFRD1ny6ltoqbaT34Cy0BUXgfmnlgzRU 3i2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=G/YDdRcRkYov6tAO+Mjmgegic6YgST6I6nxHysM/zKw=; b=a540zkNj2LBFg8c9FmPo4CYw/kQBCk2dVf1mM7G+10gwsFvtxj5qd0d36WHqBpgwQG BY0zBvj0K3m+3jmaVd9DX80ZzTfTrzyeX4kb3JxIMdkLwZTE+DILi33xaaKBD499LndN 3ksYB2j0Ai60cm1h1akG2iWu73KdCbKMkNGaBhkQIBjayZA6isTvDZ6iXFQ46Ty1SB/x 91X194DEyzNHHcPviknDpsKdMdsvfse7PfWCJR8kTOKN3kENOZDabpVp5FTBb2EwYKuL y89UiYm4ERxc3hVIqFsgE1f6+q4Rx+dtYWLEhOONlEHcTHwPoXjuK2A/yTA2jZ7wyKws 6SOw== X-Gm-Message-State: AOUpUlHWdBDNUAbkOBC3z7RRttZBLZZsWgF1IZfvPaLJ+JDImiP6QNq/ zHe4ZUHaPjfNSBcZuOPfGEHd5OMIux3tXX80Tdg= X-Google-Smtp-Source: AAOMgpdqOjB7w6qtnMfKoqi8+6Tjg4sn1DjVLj+macYPj7bpqRRgUANGcduQdhrq2mlerGvcFSecITAjxAZkDhalY08= X-Received: by 2002:a19:4d0a:: with SMTP id a10-v6mr15694139lfb.5.1533146187276; Wed, 01 Aug 2018 10:56:27 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:7357:0:0:0:0:0 with HTTP; Wed, 1 Aug 2018 10:55:46 -0700 (PDT) In-Reply-To: <26302.1533131249@sss.pgh.pa.us> References: <26302.1533131249@sss.pgh.pa.us> From: ik Date: Wed, 1 Aug 2018 20:55:46 +0300 Message-ID: Subject: Re: Adding terminal title support for psqlrc To: Tom Lane Cc: pgsql-general@postgresql.org Content-Type: multipart/alternative; boundary="000000000000e1a64405726369ac" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000e1a64405726369ac Content-Type: text/plain; charset="UTF-8" hi, Thank you, it does not effect the terminal title. As Adrian answered me, it is not supported :/ On Wed, Aug 1, 2018 at 4:47 PM, Tom Lane wrote: > ik writes: > > Is there a way to add terminal title information for psqlrc that cn > display > > what schema I am, operation that is execute and stuff like that? > > Most terminal programs recognize escape sequences to set the window > title. So you could set values for PROMPTn that cause updates in > the title. There's an example in > > https://www.postgresql.org/docs/devel/static/app-psql. > html#APP-PSQL-PROMPTING > > although it's just talking about a color change. > > regards, tom lane > --000000000000e1a64405726369ac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
hi,

Thank you, it does not e= ffect the terminal title.

As Adrian answered me, it is no= t supported :/



On Wed, Aug 1, 2018 at 4:47 PM, Tom = Lane <tgl@sss.pgh.pa.us> wrote:
ik <idokan@gm= ail.com> writes:
> Is there a way to add terminal title information for psqlrc that cn di= splay
> what schema I am, operation that is execute and stuff like that?

Most terminal programs recognize escape sequences to set the window<= br> title.=C2=A0 So you could set values for PROMPTn that cause updates in
the title.=C2=A0 There's an example in

https://www.postgresql.= org/docs/devel/static/app-psql.html#APP-PSQL-PROMPTING

although it's just talking about a color change.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 regards, tom lane

--000000000000e1a64405726369ac--