On 2/23/07, Gauthier, Dave <[EMAIL PROTECTED]> wrote:
I'm experimenting with Term::Readline as a way to emulate a CLI from within perl. One of the annoying things it does is to alter the display characteristics of the string I ask the "readline" method to use as a prompt. It always gets underlined, sometimes the color gets changed and sometimes it's in bold. Seems to be a function of the terminal characteristics, but I'm not sure which ones :-(
Sounds like the "ornaments" mentioned in the docs. $term->ornaments(0); # maybe?
Also, while I've got your attention, the up/down arrows (prev/next in the history of commands) seem to work, but you have to hit the up or down arrow twice before it'll respond. Any ideas?
I can't reproduce that behavior, but there seems to be something odd going on. For me, a single arrow suffices to switch, but it takes two presses to continue in the same direction, and this doesn't seem to affect history items added before the input loop is begun. It's not clear to me what's happening here; it may be a bug in Term::ReadLine::Perl. (Is that also the Term::ReadLine package you're using?) Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/