From nobody Sun May 5 13:59:50 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) client-ip=216.205.24.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1585321892; cv=none; d=zohomail.com; s=zohoarc; b=mn7/CkcvX8qNSlgd5ij+3zUeQsXNhiHtZU7kEmKf3Dp1LI7+U1HwTCq37OkVdpSvnacUxnbmWo9bj7UdfAdH0H/v+Absu61esEfFXFs2XyyHSQgW/JLSMdJ//gC2m4HFJhBw/IoXwrip2kd8GfQL5R8q2iJ0ykIFw4diH1/7eH0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585321892; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=EFc0MgDR8mMTiALkcuW1Gp4CdpBdo7OgKUcgBxI1hCA=; b=LNojM2v7qFp+azsM4WBn2o7r7P1QKYhE8I58olTFpQeCEBXQztutZg0C1wwKbxFD72g1UzCZeKP1rWAnoXTvb7qfrw1+uIzpDAvB3N6TuFcUpU9hG4x8nQO16w66zUaQZgpkbHA72vsWBY9O9iGT6DF1z3xw/sAkG1inJyZyjXY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by mx.zohomail.com with SMTPS id 1585321892200636.2793065856087; Fri, 27 Mar 2020 08:11:32 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-309-kSnlyvzKNqGBnUOhEPLlhQ-1; Fri, 27 Mar 2020 11:11:28 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4E143107ACC9; Fri, 27 Mar 2020 15:11:22 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C7305A0A90; Fri, 27 Mar 2020 15:11:20 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 4CD368A05A; Fri, 27 Mar 2020 15:11:18 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02RFBGLa009591 for ; Fri, 27 Mar 2020 11:11:16 -0400 Received: by smtp.corp.redhat.com (Postfix) id 883241001B07; Fri, 27 Mar 2020 15:11:16 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.110.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8C05B1001F43; Fri, 27 Mar 2020 15:11:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585321890; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=EFc0MgDR8mMTiALkcuW1Gp4CdpBdo7OgKUcgBxI1hCA=; b=QpW6P/65//f2QV7GBqBVOY9Z3Xfz0fURRm0N7zQBttcBDplx+kbvJwPKmfjvFlnkSt9oCc 3BvFMn27dy46Bse31WdondMX3f6s7tpT+Fs7PjRJBFuUdLHjSkN3d1da36ZXHmO0SsnvAW 0zEVNmR2E7WlovrYWP1Rk5TPjFweoJE= X-MC-Unique: kSnlyvzKNqGBnUOhEPLlhQ-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH] tools: explain that '^' means 'Ctrl' for console escape sequence Date: Fri, 27 Mar 2020 15:11:11 +0000 Message-Id: <20200327151111.114657-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Michal Privoznik --- tools/virsh-domain.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 8591e483a5..ada0189685 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -3002,7 +3002,11 @@ cmdRunConsole(vshControl *ctl, virDomainPtr dom, } =20 vshPrintExtra(ctl, _("Connected to domain %s\n"), virDomainGetName(dom= )); - vshPrintExtra(ctl, _("Escape character is %s\n"), priv->escapeChar); + vshPrintExtra(ctl, _("Escape character is %s"), priv->escapeChar); + if (priv->escapeChar[0] =3D=3D '^') { + vshPrintExtra(ctl, " (Ctrl + %c)", priv->escapeChar[1]); + } + vshPrintExtra(ctl, "\n"); fflush(stdout); if (virshRunConsole(ctl, dom, name, flags) =3D=3D 0) return true; --=20 2.24.1