From owner-freebsd-questions@FreeBSD.ORG Thu May 5 17:30: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 D2B52106566B for ; Thu, 5 May 2011 17:30:42 +0000 (UTC) (envelope-from pwnedomina@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 1A6F48FC1B for ; Thu, 5 May 2011 17:30:41 +0000 (UTC) Received: by wwk4 with SMTP id 4so5544419wwk.1 for ; Thu, 05 May 2011 10:30: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=0I2xxtwwKnI4Fd23WhB3VQDrhRJyyEyBM7x2DWLWuSw=; b=HIzX7PU/GiavCNd4XUjJ8JnG1mUkvZ4LxLykOEzYHqty3eDg4FJja2Oo6Yp6qjbyU0 mBaXutcRiYFu/cqzrOPs9aYmU3Aqhq3sAG1Hw8RI6029aBBIqE5h8NMIJXRqdaZJkXXQ GHOKz5L1uaSwbpM2C97Z4GZhbSW/f/PoZB1N0= 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=a+hDK3rUbdPR4q+x+Gbv2WrjJDGHH7QigAwdbiYmIJeHzh7pkDhejd9tBuZJgxEQRL w58SYKHUtJs7dbfoRDsxC8KQezz84lFR/71zuNn39x1iMbRwTfTNAQaUnf8zHQH0ZJOs Do2M6Ult6sLtBUknpHNVyyEujIrhsMzbO5t1o= Received: by 10.227.197.205 with SMTP id el13mr2827718wbb.84.1304616640583; Thu, 05 May 2011 10:30:40 -0700 (PDT) Received: from [192.168.1.71] ([2.80.111.248]) by mx.google.com with ESMTPS id t16sm484626wbg.40.2011.05.05.10.30.39 (version=SSLv3 cipher=OTHER); Thu, 05 May 2011 10:30:39 -0700 (PDT) Message-ID: <4DC2ECF3.9010403@gmail.com> Date: Thu, 05 May 2011 18:31: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> <4DC2CCD7.3080406@gmail.com> <20110505192047.137782cb.freebsd@edvax.de> In-Reply-To: <20110505192047.137782cb.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 17:30:43 -0000 Em 05-05-2011 17:20, Polytropon escreveu: > On Thu, 05 May 2011 16:14:15 +0000, pwnedomina wrote: >> 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? > Have a look at the page you mentioned above and you'll > easily find the answer, especially if you consult the > section > > http://understudy.net/custom.html#color_prompts > > and then scroll down to "TC Shells" - keep in mind that > FreeBSD's C shell is a TC shell (/bin/csh and /bin/tcsh > are the same program). > > I've tried the example (on FreeBSD 7) from the web page > you mentioned and found that > > set prompt = "%{\033[31m%}[%{\033[0m%}%B%n@%m:%~%b%{\033[31m%}]%{\033[0m%}%# " > > works as intended. %{\033[31m%} switches red color on, and > %B/%b applies bold face for the text inside the brackets. > > In the section > > http://understudy.net/custom.html#table2 > > you'll find a reference for the other colors "programming > codes". You could, for example, use a different color for > root and nonroot shells, or change color depending on specific > shell accounts on your system. > > You can also use other attributes like %S/%s for standout > (here: inverse) mode, or %U/%u for underline mode. However, > not every terminal (emulator) is capable of displaying them > as intended, for example the text mode console cannot do > unterlining, vt100 can do blinking _and_ underlining, but > can't do colors, xterm can do underlining, but _not_ blinking, > but can do colors... and so on. > > > the example you supply worked fine. thanks for helping.