From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Colorized REPL Date: Fri, 4 Jan 2013 08:57:02 -0800 (PST) Message-ID: <1357318622.49328.YahooMailNeo@web120406.mail.ne1.yahoo.com> References: <1354692089.25329.71.camel@Renee-desktop.suse> <1354697316.25329.83.camel@Renee-desktop.suse> <1354703255.25329.107.camel@Renee-desktop.suse> <87a9tmajov.fsf@gnu.org> <1355106191.22533.63.camel@Renee-desktop.suse> <87zk1l1t3x.fsf@gnu.org> <1356942598.2785.174.camel@Renee-desktop.suse> <87623dvy88.fsf@gnu.org> Reply-To: Mike Gran NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1357318630 32327 80.91.229.3 (4 Jan 2013 16:57:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jan 2013 16:57:10 +0000 (UTC) Cc: "guile-devel@gnu.org" To: =?utf-8?B?THVkb3ZpYyBDb3VydMOocw==?= , Nala Ginrut Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Jan 04 17:57:26 2013 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TrAaD-0006ci-5K for guile-devel@m.gmane.org; Fri, 04 Jan 2013 17:57:25 +0100 Original-Received: from localhost ([::1]:34893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrAZx-0005MK-P7 for guile-devel@m.gmane.org; Fri, 04 Jan 2013 11:57:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrAZt-0005MF-VF for guile-devel@gnu.org; Fri, 04 Jan 2013 11:57:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TrAZs-0004BB-Qo for guile-devel@gnu.org; Fri, 04 Jan 2013 11:57:05 -0500 Original-Received: from nm7.bullet.mail.ne1.yahoo.com ([98.138.90.70]:40835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrAZs-0004B3-KK for guile-devel@gnu.org; Fri, 04 Jan 2013 11:57:04 -0500 Original-Received: from [98.138.90.52] by nm7.bullet.mail.ne1.yahoo.com with NNFMP; 04 Jan 2013 16:57:03 -0000 Original-Received: from [98.138.89.175] by tm5.bullet.mail.ne1.yahoo.com with NNFMP; 04 Jan 2013 16:57:03 -0000 Original-Received: from [127.0.0.1] by omp1031.mail.ne1.yahoo.com with NNFMP; 04 Jan 2013 16:57:03 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 757612.14718.bm@omp1031.mail.ne1.yahoo.com Original-Received: (qmail 55096 invoked by uid 60001); 4 Jan 2013 16:57:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1357318622; bh=1OJkpOCxmepK7f0NFLfBQ9HQpDdzyEAasCQJ6GqVPtA=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=XPOYeAicSoFaI3CYeOVpaMoJKCChRQtvRSF+0S5vicdiYLVZoqyTci9I+I/5zUHKe+Scyjit/PXPKBC/dd28qy5EfSmD8kddmKR3MWLxu1vZ35nlioPmdmcykZWY2DCM4nV2qvsCIvv6dLECOuyeG1OW7xBjl7/JVvvYmz4743M= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=AYf80tQTigRHx+NY5QnWokEQeK14Y7svCobKxjip/6we3oGarFJtIMiNRAW0LQPv9q6Vt6WB7nQs13iNhgxiRdhtXtrXonAJsJKxrY1Wkt3r05FGYIFzb4ovnfGJkV4BxSHU+uh55WAuhdlZbFibsRIZ/k7kuq1lJOmorUL5GSk=; X-YMail-OSG: pnZyouEVM1leQ1lljS0eTam6ferqyCVtKOOkxj1BlItcV8t pefxW8RLUxeW_j0Fv_lCTIBm2YInmRngabvdMzUv_ObsyTRnm09OrLAfZQ_L ptiovEEzihQ_GBmDGH.0jxmLivvL3ByeO5idX29cN.pXwihOLKoubKgC1e0R o9.EFF1HZvFsNQt0bi48XvBjWO2NyNEVFpE2mK1tpt6073Qld64_xdNWWtdd eIr9_YwVLM88.iZtASJJHMnb_c0aqaKMqCXUf2ih2DNIlw.CpQtUpgGUeSv4 MxG1mtKhYNfBBuAK47eZakEnfPGJ6s1d2_ISlfx8g5c7NVm0pnocdHZgYhF5 79Ptip6ONzDMA.xQoVMlP6KFM.XI7WInFQciUzxUJFKE.c9dTlqdmH5OqSKt drKArnq5GDX2_uAiGkyIEjjrtQ2.dF3IN7kotyCaj7r3EM7oPmKTwzyUoUxx fsuDCeVQemWs.fWqIy.zksZ6DOHc7NjkvLZTz8rH51zTNsxDSNx8qw86D Original-Received: from [71.130.212.224] by web120406.mail.ne1.yahoo.com via HTTP; Fri, 04 Jan 2013 08:57:02 PST X-Rocket-MIMEInfo: 001.001, SGkgTmFsYSwgTHVkby0KCj4gQ291bGQgeW91IGNvbW1lbnQgdGhpcz_CoCBJ4oCZbSBub3QgY2xlYXIgb24gd2hhdCBlYWNoIGZpZWxkIGlzLgo.IAo.PiArKGRlZmluZSAqY29sb3ItbGlzdCoKPj4gK8KgIGAoKENMRUFSwqAgwqAgwqAgLsKgICIwIikKPj4gK8KgIMKgIChSRVNFVMKgIMKgIMKgIC7CoCAiMCIpCj4.ICvCoCDCoCAoQk9MRMKgIMKgIMKgIMKgIC7CoCAiMSIpCj4.ICvCoCDCoCAoREFSS8KgIMKgIMKgIMKgIC7CoCAiMiIpCj4.ICvCoCDCoCAoVU5ERVJMSU5FwqAgLsKgICI0IikKPj4gK8KgIAEwAQEBAQ-- X-Mailer: YahooMailWebService/0.8.129.483 X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 98.138.90.70 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15369 Archived-At: Hi Nala, Ludo-=0A=0A> Could you comment this?=C2=A0 I=E2=80=99m not clear o= n what each field is.=0A> =0A>> +(define *color-list*=0A>> +=C2=A0 `((CLEAR= =C2=A0 =C2=A0 =C2=A0 .=C2=A0 "0")=0A>> +=C2=A0 =C2=A0 (RESET=C2=A0 =C2=A0 = =C2=A0 .=C2=A0 "0")=0A>> +=C2=A0 =C2=A0 (BOLD=C2=A0 =C2=A0 =C2=A0 =C2=A0 .= =C2=A0 "1")=0A>> +=C2=A0 =C2=A0 (DARK=C2=A0 =C2=A0 =C2=A0 =C2=A0 .=C2=A0 "2= ")=0A>> +=C2=A0 =C2=A0 (UNDERLINE=C2=A0 .=C2=A0 "4")=0A>> +=C2=A0 =C2=A0 (U= NDERSCORE=C2=A0 .=C2=A0 "4")=0A>> +=C2=A0 =C2=A0 (BLINK=C2=A0 =C2=A0 =C2=A0= .=C2=A0 "5")=0A>> +=C2=A0 =C2=A0 (REVERSE=C2=A0 =C2=A0 .=C2=A0 "6")=0A>> += =C2=A0 =C2=A0 (CONCEALED=C2=A0 .=C2=A0 "8")=0A>> +=C2=A0 =C2=A0 (BLACK=C2= =A0 =C2=A0 =C2=A0 .=C2=A0 "30")=0A>> +=C2=A0 =C2=A0 (RED=C2=A0 =C2=A0 =C2= =A0 =C2=A0 .=C2=A0 "31")=0A>> +=C2=A0 =C2=A0 (GREEN=C2=A0 =C2=A0 =C2=A0 .= =C2=A0 "32")=0A>> +=C2=A0 =C2=A0 (YELLOW=C2=A0 =C2=A0 =C2=A0 .=C2=A0 "33")= =0A>> +=C2=A0 =C2=A0 (BLUE=C2=A0 =C2=A0 =C2=A0 =C2=A0 .=C2=A0 "34")=0A>> += =C2=A0 =C2=A0 (MAGENTA=C2=A0 =C2=A0 .=C2=A0 "35")=0A>> +=C2=A0 =C2=A0 (CYAN= =C2=A0 =C2=A0 =C2=A0 =C2=A0 .=C2=A0 "36")=0A>> +=C2=A0 =C2=A0 (WHITE=C2=A0 = =C2=A0 =C2=A0 .=C2=A0 "37")=0A>> +=C2=A0 =C2=A0 (ON-BLACK=C2=A0 =C2=A0 .=C2= =A0 "40")=0A>> +=C2=A0 =C2=A0 (ON-RED=C2=A0 =C2=A0 =C2=A0 .=C2=A0 "41")=0A>= > +=C2=A0 =C2=A0 (ON-GREEN=C2=A0 =C2=A0 .=C2=A0 "42")=0A>> +=C2=A0 =C2=A0 (= ON-YELLOW=C2=A0 .=C2=A0 "43")=0A>> +=C2=A0 =C2=A0 (ON-BLUE=C2=A0 =C2=A0 .= =C2=A0 "44")=0A>> +=C2=A0 =C2=A0 (ON-MAGENTA=C2=A0 .=C2=A0 "45")=0A>> +=C2= =A0 =C2=A0 (ON-CYAN=C2=A0 =C2=A0 .=C2=A0 "46")=0A>> +=C2=A0 =C2=A0 (ON-WHIT= E=C2=A0 =C2=A0 .=C2=A0 "47")))=0A=0AFor what it is worth,=C2=A0below is the= ECMA-48 standard's=0Aconcept of what these values do.=C2=A0 ECMA-48 lists = "7"=0Aas reverse, instead of "6".=C2=A0 =0A=0A=0A0 default=0A1 bold=0A2 fai= nt=0A4 singly underlined=0A5 slowly blinking=0A6=C2=A0rapidly blinking=0A7 = negative image=0A8 concealed characters=0A30 black display=0A31 red display= =0A32 green display=0A33 yellow display=0A34 blue display=0A35 magenta disp= lay=0A36 cyan display=0A37 white display=0A40 black background=0A41 red bac= kground=0A42 green background=0A43 yellow background=0A44=C2=A0blue backgro= und=0A45 magenta background=0A46 cyan background=0A47 white background=0A= =0AOf course, each terminal=0Ais different in practice. The only way to be = sure you=0Aare getting it right is to go through terminfo.=0AOTOH, these da= ys when everything behaves almost like=0Acolor xterm, maybe parsing terminf= o is just being=0Apedantic.=0A=0AThanks,=0A=0AMike Gran=0A