microdc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microdc-devel] Re: microdc-devel Digest, Vol 30, Issue 4


From: Josh Watts
Subject: [microdc-devel] Re: microdc-devel Digest, Vol 30, Issue 4
Date: Wed, 30 Sep 2009 18:22:12 -0400

I don't really have time to put up a good full-featured patch, but I did find where you can easily set your own fonts. Public chat messages are generated on lines 705 and 708 of hub.c, and to get a bright font (aka "bold" in ANSI), change the line to something like this:

Original: flag_putf(DC_DF_PUBLIC_CHAT, first ? _("[%s] Public: %s \n") : _(" | %s%s\n"), first?timestamp:"", quotearg(head)); Modified: flag_putf(DC_DF_PUBLIC_CHAT, first ? _("[%s] Public: \e[1m%s \e[22m\n") : _(" | %s\e[1m%s\e[22m\n"), first?timestamp:"", quotearg(head));

It works much like HTML, where each ANSI control starts with "\e[" and ends with "m". You can specify multiple numberic flags, separated by semicolons. You can read quite a bit about this at:
http://graphcomp.com/info/specs/ansi_col.html
or jump straight to a list of colors/fonts:
http://pueblo.sourceforge.net/doc/manual/ansi_color_codes.html

My example above makes the text "bold", which is supposed to be "brighter" version of the font color currently used.

Another useful spot to modify is lines 740 and 743, which are where private messages are printed.


Enjoy!

--
Josh Watts


Date: Wed, 30 Sep 2009 02:11:38 +1000
From: Dean Hamstead <address@hidden>
Subject: Re: [microdc-devel] microdc2 feature request
To: address@hidden
Cc: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=UTF-8; format=flowed

It would be nice if certain messages could be turned off, or have some
sort of tabbed message windows.


Dean

address@hidden wrote:
Hi, man!

I try microdc2 several days ago, and I like it! It's exactly what I want. But I think "clear" command will be usefull ))) And adding color's support will simplify usage.
Thanx from "console's maniac" ))

--
Best regard,
        pentabion (at) lab (dot) com
aka pentabion


------------------------------------------------------------------------

_______________________________________________
microdc-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/microdc-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]