Le 20/1/15 05:57, Alexander Svyazin a écrit :
There is a working example of text coloring in my toy MUD client http://smalltalkhub.com/#!/~AlexanderSvyazin/MudTalk <http://smalltalkhub.com/#%21/%7EAlexanderSvyazin/MudTalk>. It actually has support of ANSI escape sequences (only colors yet) :) For now it uses plain Morph, not Spec, AFAIR Spec text model was not flexible enough for my needs and it was too hard to extend for me (but I don't remember the details).

I agree and this is something that we will have to think about.

This client should work in last release version of Pharo and last development version too (I use development version), just load ConfigurationOfMudTalk and run 'ConfigurationOfMudTalk loadDevelopment'. It is slightly structured pile of code but it's a toy and educational project so I'm trying to use *everything* that I see.

always good to have this kind of resources.
Thanks Alexander



On Tue, Jan 20, 2015 at 3:51 AM, ErikStayton <erikstay...@gmail.com <mailto:erikstay...@gmail.com>> wrote:

    Hi Stef, I don't have a good minimal example to hand, but my UI is
    just a
    simple Spec model with two widgets, the aforementioned TextModel and a
    TextInputFieldModel that I use to actually take user commands.

    I am not wedded to Spec, if it doesn't handle colors well. If it is a
    long-shot to get it working I will pick something else. Would it
    be better
    to go for a straight Morph setup? Is that what the system browser
    uses to
    get its syntax highlighting/colors?

    I can put together a minimal example so people can play with Spec
    and see if
    it works, but if I'm better off dropping Spec I can jump straight
    to that.
    Thoughts?

    Thanks again,
    Erik



    --
    View this message in context:
    
http://forum.world.st/Best-approach-to-multiple-text-colors-in-Spec-tp4800245p4800541.html
    Sent from the Pharo Smalltalk Users mailing list archive at
    Nabble.com.



Reply via email to