Bug#517656: ikiwiki: too long underline of questions for automatic setup

Niko Tyni ntyni at debian.org
Mon Feb 1 09:28:41 UTC 2010


On Sun, Mar 01, 2009 at 03:08:22PM -0500, Joey Hess wrote:
> Paul Menzel wrote:
> > is the too long underline intended? Please take a look at the attached screenshot.
> 
> This is not done by code in ikiwiki, but by Term::ReadLine:
> 
> % perl -MTerm::ReadLine -e '$r=Term::ReadLine->new("foo"); $r->readline("foo    ")'
> 
> AFAICS, the text is intended to be bold, not underlined. Of course, bold
> trailing spaces are indistingishable from non-bold. gnome terminal choses to
> underline them, which does not display so well.

No, the prompt is intended to be underlined. Term::Readline uses
termcap(5) capabilities us ("start underlining") and ue ("end
underlining") by default to make the prompt stand out.

This is configurable, just try

 perl -MTerm::ReadLine -e '$r=Term::ReadLine->new("foo"); $r->ornaments("md,me"); $r->readline("foo    ")'

to make it use bold mode instead.

I don't see much to fix on the perl side except possibly mention that
underlining is the default. OTOH, if that matters to somebody they should
explicitly configure what they want anyway.

Joey, are you OK with reassigning this back to ikiwiki?
-- 
Niko Tyni   ntyni at debian.org






More information about the Perl-maintainers mailing list