From owner-freebsd-questions@FreeBSD.ORG Mon May 15 16:13:21 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2907916ACC7 for ; Mon, 15 May 2006 16:13:21 +0000 (UTC) (envelope-from atom.powers@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55B7143D76 for ; Mon, 15 May 2006 16:13:17 +0000 (GMT) (envelope-from atom.powers@gmail.com) Received: by nz-out-0102.google.com with SMTP id i28so161950nzi for ; Mon, 15 May 2006 09:13:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iGezWgsQ802Lmy0JH187T+ZhTTJhLr7wcQTD4owgj+RmgEjUnx6mWP9z2SVcCslS1nUwij2Xt6wX6LwFoS2ibIQw/Xh9VylMa0tDDA/9zYNfUL5dTwwOIip2+9tCuNLsZV/6bEVqWJX1ubvd1NHCYnMumiDniixKJwOg15cO2ZA= Received: by 10.65.219.7 with SMTP id w7mr2028013qbq; Mon, 15 May 2006 09:13:16 -0700 (PDT) Received: by 10.65.150.9 with HTTP; Mon, 15 May 2006 09:13:16 -0700 (PDT) Message-ID: Date: Mon, 15 May 2006 09:13:16 -0700 From: "Atom Powers" To: Salvatore In-Reply-To: <4468A418.5000406@freemail.it> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4468A418.5000406@freemail.it> Cc: freebsd-questions@freebsd.org Subject: Re: Smile in the terminal prompt X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 May 2006 16:13:22 -0000 On 5/15/06, Salvatore wrote: > Hi, > my terminal (bash) prompt is: > > PS1=3D'\e[0;31m\]\e[7m[\h - \u] [\w]\e[m\]\e[27m\n[\!]$ ' > > After upgrading to freebsd 6.1, the prompt looks different: > - it shows two smiles at both end of the first line and the red > background is white. The smile face is the graphical representation of one of the special ascii characters (characters #00 through #30); I don't remember exactly which one. So it seems your prompt is printing the the graphic of the special character instead of printing the character's function. > Does that happens to you too if you set the prompt above? > I know that the prompt is wrong (it lacks the start invisible chars \[; > a better version could be PS1=3D'\[\e[1;37m\]\[\e[41m\][\h - \u] > [\w]\[\e[0m\]\n[\!]$ '), > but WHY before the upgrade it looked right and now it shows these smiles? Maybe your shell changed, or your term setting, or your font? My first guess would be the term setting. For some reason or another your teminal is reading a special character from your PS1 setting and printing the graphic of that character. --=20 -- Perfection is just a word I use occasionally with mustard. --Atom Powers--