From owner-freebsd-questions@FreeBSD.ORG Thu May 5 15:13:42 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB34A106566B for ; Thu, 5 May 2011 15:13:42 +0000 (UTC) (envelope-from pwnedomina@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 334DF8FC17 for ; Thu, 5 May 2011 15:13:41 +0000 (UTC) Received: by wyf23 with SMTP id 23so2215523wyf.13 for ; Thu, 05 May 2011 08:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=/R7EqzI3X0ebFg4h3Qo0R71JLfFBLKNLhcQfiynI9cI=; b=KqYJnvoyVDmreAT9ObmB4VzLOesPwhgUXjEg/H5OVf5jHIOv79CmdhwrnkwznC6RS9 ZFqYL4p8x+uGU4TQ/FSXtrez2EicU1u69S4+UTV+G8vk9eeh9aX3FXTBsR293bQNgXXy CiEYlPClqh21p2wpYEsxTSnQwDkN+4qe7Jy90= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Cy9RxwVFnky5/6TYKg5bRnqUKtiE0xVSh7pA6hQM/FkqK9/O+wP/o6PAyz9fDs/Yhv MuXO28HSqpLFfFe4NjAHJAxbBLqw+VDruqNzsz9fceMP7EhnSV9xaC0/AmTAA751v3Lx HcJF2V69xSh3lbbY/Yx+FKjInHzutITgqRhaU= Received: by 10.227.182.79 with SMTP id cb15mr2680211wbb.49.1304608420697; Thu, 05 May 2011 08:13:40 -0700 (PDT) Received: from [192.168.1.71] ([2.80.111.248]) by mx.google.com with ESMTPS id o23sm1417761wbc.10.2011.05.05.08.13.39 (version=SSLv3 cipher=OTHER); Thu, 05 May 2011 08:13:39 -0700 (PDT) Message-ID: <4DC2CCD7.3080406@gmail.com> Date: Thu, 05 May 2011 16:14:15 +0000 From: pwnedomina User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pt-PT; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Polytropon References: <4DC1BEA8.6030108@gmail.com> <20110504224931.9ffd5682.dcdowse@gmx.net> <4DC1E23E.3020001@gmail.com> <20110505014556.50dcea0e.dcdowse@gmx.net> <4DC27128.8040508@gmail.com> <20110505143748.4be94f6f.freebsd@edvax.de> In-Reply-To: <20110505143748.4be94f6f.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: rox-fm 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: Thu, 05 May 2011 15:13:42 -0000 Em 05-05-2011 12:37, Polytropon escreveu: > On Thu, 05 May 2011 09:43:04 +0000, pwnedomina wrote: >> ok, ive choosen "reply to all". my question now is >> i have setted the command prompt to >> "|[%n@%m:%c]%#" >> but i intend to place color red in the [] brackets, how can i accomplish >> this?| > It looks like you are configuring a C shell prompt, correct? > Make sure you have the following settings in ~/.cshrc (or in > /ect/csh.cshrc, if you want a global setting): > > set promptchars = "%#" > set prompt = "%n@%m:%~%# " > > This would give you the STANDARD prompt - note the space after > the prompt character and the absense of the brackets. > > You want red color - I'm not sure if this is supported in csh. > At least I know that bold printing is possible. Have a look > at this: > > set prompt = "[%B%n@%m:%~%b]%# " > > This uses %B and %b to switch on and off bold printing. Refer > to "man csh", section "Special shell variables" and scroll > down to "prompt" - there are some more special settings to > customize the prompt. It mentions "%{string%}" for escape > sequences and can MAYBE be used for changing color. > > Is the pipe character at the beginning of the prompt intended? > If yes, use this: > > set prompt = "|[%B%n@%m:%~%b]%# " > > I've kept the space at the end of the prompt for better > readability. Remove it if desired. > > > according to this page http://understudy.net/custom.html C shell support colors, how can i turn this prompt set prompt = "[%B%n@%m:%~%b]%# " with red color on brackets and white color on text?