From owner-freebsd-questions@freebsd.org Wed Oct 12 16:16:51 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9579C0ECD3 for ; Wed, 12 Oct 2016 16:16:51 +0000 (UTC) (envelope-from roger@qxxy.com) Received: from mail-vk0-x22c.google.com (mail-vk0-x22c.google.com [IPv6:2607:f8b0:400c:c05::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A9809AC0 for ; Wed, 12 Oct 2016 16:16:51 +0000 (UTC) (envelope-from roger@qxxy.com) Received: by mail-vk0-x22c.google.com with SMTP id 2so50078686vkb.3 for ; Wed, 12 Oct 2016 09:16:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qxxy.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DOBIq7u/57nbnyzfeZ8S2ybFepaMzGnjNgXJJtqFr98=; b=IleJsItSRlEuYu+GAQuW2iKAuqg4avp31Dhi86Be21PI+UG1Yt7l6W0BZUlRp0TLFW 8trkdwOItea0L5nFlWFtTHjqKGGUxByffGnuYmNg0kkF4IdaDC2hhpqB4HlaG3zfagEU sxe6q3yVLXhE0eW4W8WPYZ7IjLzeaWTmEk2k8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DOBIq7u/57nbnyzfeZ8S2ybFepaMzGnjNgXJJtqFr98=; b=MXHXIVd2Gl+JrsPs86SCoh1i7ef/WtrbtkLlLxaN2R1BU7BRH2SSFsO219xrK1gTW3 UgTn694YnHDf8LwqzuPYXh+1Urnn44R36AQhv4CCeQUlmpDO8S5tZ1MOVxyRm1eyHrrN RZ2AqCzgAzodJmDUDkjK2uNkRH6WAYj1aaruozjmZlQxykbsApKmr+jj74IiWZMYZsXL PM7pgoT6w26FSIC65GWNGLF3ETVBkxhDtxI/Pzj/xAKd7bpwDY8zHo0UtLN7F6Lm5633 OH9Vdz7nnlyBtV07iaTfmRG1GqbiIFcKeCaWecOj7E77Pr7b1la92BTt8sbm2j5Jy0t4 Liyw== X-Gm-Message-State: AA6/9RlHzbpZykyJ6W74e3ish6A7+2D3XqW7asx2oqRrniILrLiXE3DJ8QV22k/Z9X8LrUUNspKp6NTY/MgtmQ== X-Received: by 10.31.63.85 with SMTP id m82mr962618vka.146.1476289010704; Wed, 12 Oct 2016 09:16:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.116.11 with HTTP; Wed, 12 Oct 2016 09:16:10 -0700 (PDT) X-Originating-IP: [50.90.149.220] In-Reply-To: References: From: Roger Pate Date: Wed, 12 Oct 2016 12:16:10 -0400 Message-ID: Subject: Re: $PS1 does not render command-line prompt in color in a FreeBSD VM To: James E Keenan Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2016 16:16:52 -0000 On Tue, Oct 11, 2016 at 9:56 PM, James E Keenan wrote: > This question concerns display of colors in the command-line prompt on two > different FreeBSD installations. > ... which in the terminal looks like: > > [jkeenan] $ > > where 'jkeenan' is in red and all the rest is in white. So far so good. > > Yesterday I installed FreeBSD-11 as a VM on the same Linux host -- only this > time I switched to using VMWare to house the VM. I brought over my > .profile, .shrc, .vimrc, etc., files from the 10.3 VM to this new one. I > expected them to Just Work. However the terminal inside the VMWare console > seems to be unable to digest the codes for color in the assignment to $PS1. > That value for $PS1 is rendering as: > > [[31mjkeenan[0m] $ > > ... all rendered in white; nothing in red. The control sequences to change > from white to red and back again are simply being literally displayed. How did you "bring over" your files from one VM to the other? Did your escape characters get stripped? If they did, that would explain what you see.