HighLine - examples for using "list"

Gregory B. wrote:

So… ruby community… do you want Perl6::Form ?

Yes.

Cheers,
Dave

On Apr 16, 2006, at 4:28 PM, Gregory B. wrote:

Exegesis 7

This seems like it could be a huge win for Ruport as well… :wink:

Hmm… this does sound interesting… and could definitely be good for
Ruport too. Unfortunately for the next 4->5 weeks, I have to do
boring ‘real’ work at work and school. After that, I’m all good to go
though, so this might be one of the first things I jump on.

I checked the source. It’s 1,300+ lines of code. That won’t be an
easy port. I still say it could be nice though…

James Edward G. II

On 4/16/06, Sy Ali [email protected] wrote:

As an aside, I was thinking of writing some kind of wrapper to help
with the colour functions in HighLine, so that I cound use strings
like this:

Just to round off my comment in this thread…

I did take some time to play with this colour markup concept, and I
found an inventive solution. Unfortunately HighLine wasn’t working at
home so I got it working with ansicolor[1].

Example of use:
colour_codes(“@rred @Rbold red\n”)
colour_codes(“@ggreen @Gbold green\n”)
colour_codes(“@bblue @Bbold blue\n”)
colour_codes(“@ccyan @Cbold cyan\n”)
colour_codes(“@mmagenta @Mbold magenta\n”)
colour_codes(“@yyellow @Ybold yellow\n”)
colour_codes(“@wwhite @Wbold white\n”)
colour_codes(“@w”) # A single colour code can be passed.
colour_codes(“@@an at symbol @xan invalid code can be optionally
displayed\n”)

[1] http://term-ansicolor.rubyforge.org/

On 4/16/06, James Edward G. II [email protected] wrote:

at least some good ideas there:
I checked the source. It’s 1,300+ lines of code. That won’t be an
easy port. I still say it could be nice though…

One of the hackers in the BYU Ruby U. Group is already working on
this. I’m cross-posting to try to get the conversation started.

James Edward G. II


thanks,
-pate

[email protected], Gregory B. [email protected],
“James Edward G. II” [email protected],

On 4/16/06, Gregory B. [email protected] wrote:

But I’m not sure if that’s going to happen or if it’s really
something HighLine needs.

Porting the perl lib might be a cheap and easy way out.

Just a quick comment on this older thread. I ended up getting
columnization working well, thanks to Text::Reform[1] … if fuller
columnization support for Highline is still on the radar, perhaps
lifting the functionality from them would be possible?

[1] http://rubyforge.org/frs/?group_id=294
Their test cases demonstrate the functionality pretty well…