]> ruderich.org/simon Gitweb - fcscs/fcscs.git/commitdiff
Screen::draw_prompt(): add debug() calls
authorSimon Ruderich <simon@ruderich.org>
Wed, 27 Jan 2016 16:29:37 +0000 (17:29 +0100)
committerSimon Ruderich <simon@ruderich.org>
Wed, 27 Jan 2016 16:29:37 +0000 (17:29 +0100)
bin/fcscs

index 66c8410bc7a24a372568063c078b7b57dff8f3b7..50faa1adccef22af48defbfa9271a0f6c8760cbe 100755 (executable)
--- a/bin/fcscs
+++ b/bin/fcscs
@@ -264,6 +264,8 @@ package Screen {
     sub draw_prompt {
         my ($self, $config) = @_;
 
+        $self->debug('draw_prompt', 'started');
+
         my $x = 0;
         my $y = $self->height - 1;
 
@@ -273,17 +275,20 @@ package Screen {
         # Draw prompt flags.
         if (defined (my $s = $self->{prompt}{flags})) {
             $s = "[$s]";
+            $self->debug('draw_prompt', $s);
             $self->draw_clipped($y, $x, $config->{attribute}{prompt_flags}, $s);
             $x += length($s) + 1; # space between next element
         }
         # Draw prompt name.
         if (defined (my $s = $self->{prompt}{name})) {
             $s = "[$s]";
+            $self->debug('draw_prompt', $s);
             $self->draw_clipped($y, $x, $config->{attribute}{prompt_name}, $s);
             $x += length($s) + 1;
         }
         # Draw prompt value, e.g. a search field.
         if (defined (my $s = $self->{prompt}{value})) {
+            $self->debug('draw_prompt', $s);
             $self->draw_clipped($y, $x, undef, $s);
             $x += length($s) + 1;
         }