Subject: | TextMemo and \n |
Date: | Wed, 09 May 2007 18:10:50 +0200 |
To: | bug-CursesWidgets [...] rt.cpan.org |
From: | Mateusz Koreń <mkoren [...] wp.pl> |
I tried to insert enter sign (i.e. \n) into a Curses::Widgets::TextMemo
instance and found that, however I can do it on initialization in the
VALUE => "smth\nsmth", I cannot do it using the input_key method, which
is a bit of a pain in the ass, even if there is (and I haven't found it)
a simple way to insert \n into it, because I have to service this key
separately in my every instance. I isolated the problem in TextMemo.pm
input_key method in the line 440:
return if $ro || $in !~ /^[[:print:]]$/;
Are there any reasons for this line (especially regarding the next one)?
Is there any simple workaround using the unchanged library?
System information (if useful anyhow):
Ubuntu 6.06 LTS 2.6.15-28-amd64-k8 #1 SMP PREEMPT
perl 5.8.7-10ubuntu1
libcurses-widgets-perl 1.997-2
----------------------------------------------------
Ekstraliga żużlowa - sprawdź koniecznie kolejne rozgrywki! Kliknij:
http://klik.wp.pl/?adr=www.ekstraliga.wp.pl&sid=1129