X-Git-Url: https://ruderich.org/simon/gitweb/?p=fcscs%2Ffcscs.git;a=blobdiff_plain;f=bin%2Ffcscs;h=8194f9410c580991a4a8b08ab047ed1b1a44007a;hp=69f6f8595f176dd934ad6befeb4e7ee76a6f9413;hb=a2487880bae64aa72c98f20111a063200831a74b;hpb=36909ff6fcb2e8b5397d510030ab9cdba12622da diff --git a/bin/fcscs b/bin/fcscs index 69f6f85..8194f94 100755 --- a/bin/fcscs +++ b/bin/fcscs @@ -500,8 +500,8 @@ sub run_in_background { # closes the window (because the parent process has exited). local $SIG{HUP} = 'IGNORE'; - # Necessary for GNU screen or it'll keep the window open until the - # paste command has run. + # Necessary for GNU screen or it'll keep the window open until an + # external command has run. close STDIN or die $!; close STDOUT or die $!; close STDERR or die $!; @@ -830,6 +830,9 @@ sub mapping_mode_search { $screen->cursor(0); + $screen->prompt(name => undef, value => undef); # clear prompt + $screen->draw_prompt($config); + return { select => 'search', matches => \@last_matches, @@ -1098,23 +1101,23 @@ Defaults in parentheses. =over -=item B enable debug mode, writes to I<~/.config/fcscs/log> (C<0>) +=item B enable debug mode, writes to I<~/.config/fcscs/log> (C<0>) -=item B start in this mode, must be a valid mode mapping (C<\&mapping_mode_url>) +=item B start in this mode, must be a valid mode mapping (C<\&mapping_mode_url>) -=item B set multiplexer ("screen" or "tmux") if not autodetected (C) +=item B set multiplexer ("screen" or "tmux") if not autodetected (C) -=item B ignore case when searching (C<0>) +=item B ignore case when searching (C<0>) -=item B ignore case unless one uppercase character is searched (C<1>) +=item B ignore case unless one uppercase character is searched (C<1>) -=item B sleep x us before running paste command (C<100_000>) +=item B sleep x us before running paste command (C<100_000>) -=item B GNU Screen's msgwait variable, used when yanking (C<5>) +=item B GNU Screen's msgwait variable, used when yanking (C<5>) =item B additional accept key like return, set to C<\n> to disable (C) -=item B browser command as array reference (C<['x-www-browser']>) +=item B browser command as array reference (C<['x-www-browser']>) =back @@ -1126,17 +1129,17 @@ Example: =cut my %setting = ( # options - debug => 0, - initial_mode => \&mapping_mode_url, - multiplexer => undef, - ignorecase => 0, - smartcase => 1, - paste_sleep => 100_000, - screen_msgwait => 5, + debug => 0, + initial_mode => \&mapping_mode_url, + multiplexer => undef, + ignorecase => 0, + smartcase => 1, + paste_sleep => 100_000, + screen_msgwait => 5, # global mappings alternative_return => 's', # commands - browser => ['x-www-browser'], + browser => ['x-www-browser'], ); =head2 REGEXPS