perl-curses.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Index: lib/Curses/UI.pm
  2. ===================================================================
  3. RCS file: /u/rse/wrk/cui/cvs/cui/lib/Curses/UI.pm,v
  4. retrieving revision 1.1.1.1
  5. diff -u -d -u -d -r1.1.1.1 UI.pm
  6. --- lib/Curses/UI.pm 2002/11/20 15:00:33 1.1.1.1
  7. +++ lib/Curses/UI.pm 2002/11/20 15:12:54
  8. @@ -65,6 +65,7 @@
  9. -cursor_mode => 0, # What is the current cursor_mode?
  10. -debug => undef, # Turn on debugging mode?
  11. -language => undef, # Which language to use?
  12. + -overlapping => 1, # Whether overlapping widgets are supported
  13. %userargs,
  14. @@ -118,6 +119,7 @@
  15. sub clear_on_exit(;$) { shift()->accessor('-clear_on_exit', shift()) }
  16. sub cursor_mode(;$) { shift()->accessor('-cursor_mode', shift()) }
  17. sub lang(;$) { shift()->accessor('-language_object', shift()) }
  18. +sub overlapping(;$) { shift()->accessor('-overlapping', shift()) }
  19. # TODO: document
  20. sub debug(;$)
  21. Index: lib/Curses/UI/Widget.pm
  22. ===================================================================
  23. RCS file: /u/rse/wrk/cui/cvs/cui/lib/Curses/UI/Widget.pm,v
  24. retrieving revision 1.1.1.1
  25. diff -u -d -u -d -r1.1.1.1 Widget.pm
  26. --- lib/Curses/UI/Widget.pm 2002/11/20 15:00:33 1.1.1.1
  27. +++ lib/Curses/UI/Widget.pm 2002/11/20 15:41:37
  28. @@ -460,7 +460,7 @@
  29. my $parent = $this->parent;
  30. $parent->focus($this) if defined $parent;
  31. - $this->draw(1);
  32. + $this->draw(1) if ($this->root->overlapping);
  33. return $this;
  34. }
  35. @@ -943,6 +943,8 @@
  36. my $show_cursor = $this->{-nocursor} ? 0 : 1;
  37. $this->root->cursor_mode($show_cursor);
  38. + $this->draw(1) if (not $this->root->overlapping);
  39. +
  40. return $this;
  41. }
  42. @@ -951,6 +953,7 @@
  43. my $this = shift;
  44. $this->{-focus} = 0;
  45. $this->run_event('-onblur');
  46. + $this->draw(1) if (not $this->root->overlapping);
  47. return $this;
  48. }