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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Josh Watts
Take a look at the display and log settings. Type "set display<tab>"  
to see the list:

connections - When connecting to or receiving a connection from someone
debug - Lots of debug info
download - When downloads begin
joinpart - When someone joins/leaves the hub
publicchat - General chat from everyone
searchresults - When search results come in
upload - When uploads begin


Most the above produce way too much chatter, so I usually leave it at  
"publicchat connections"

--
Josh Watts

> Message: 1
> Date: Wed, 30 Sep 2009 02:11:38 +1000
> From: Dean Hamstead <[hidden email]>
> Subject: Re: [microdc-devel] microdc2 feature request
> To: [hidden email]
> Cc: [hidden email]
> Message-ID: <[hidden email]>
> 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
>
> [hidden email] 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
>> [hidden email]
>> http://lists.nongnu.org/mailman/listinfo/microdc-devel
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 30 Sep 2009 10:22:39 -0400
> From: Josh Watts <[hidden email]>
> Subject: [microdc-devel] Re: microdc-devel Digest, Vol 30, Issue 3
> To: [hidden email]
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset="us-ascii"
>
>> Message: 1
>> Date: Sun, 27 Sep 2009 20:37:37 +0400 (MSD)
>> From: [hidden email]
>> Subject: [microdc-devel] microdc2 feature request
>> To: [hidden email]
>> Message-ID: <[hidden email]>
>> Content-Type: text/plain; charset="utf-8"
>>
>> 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
>>
>
> While there is no clear function, you can get the same effect by
> typing Ctrl-L. ;-)
>
> And I agree, some ANSI colors would indeed make things awesome, enough
> so I think I'm going to work up a patch to allow for it. ^.^
>
> --
> Josh Watts
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.gnu.org/pipermail/microdc-devel/attachments/20090930/35d63fa7/attachment.html
>
> ------------------------------
>
> _______________________________________________
> microdc-devel mailing list
> [hidden email]
> http://lists.nongnu.org/mailman/listinfo/microdc-devel
>
>
> End of microdc-devel Digest, Vol 30, Issue 4
> ********************************************



_______________________________________________
microdc-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/microdc-devel
Reply | Threaded
Open this post in threaded view
|

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

Josh Watts
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 <[hidden email]>
> Subject: Re: [microdc-devel] microdc2 feature request
> To: [hidden email]
> Cc: [hidden email]
> Message-ID: <[hidden email]>
> 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
>
> [hidden email] 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
>> [hidden email]
>> http://lists.nongnu.org/mailman/listinfo/microdc-devel



_______________________________________________
microdc-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/microdc-devel