… | |
… | |
165 | =item readline (enabled by default) |
165 | =item readline (enabled by default) |
166 | |
166 | |
167 | A support package that tries to make editing with readline easier. At |
167 | A support package that tries to make editing with readline easier. At |
168 | the moment, it reacts to clicking shift-left mouse button by trying to |
168 | the moment, it reacts to clicking shift-left mouse button by trying to |
169 | move the text cursor to this position. It does so by generating as many |
169 | move the text cursor to this position. It does so by generating as many |
170 | cursor-left or cursor-right keypresses as required (the this only works |
170 | cursor-left or cursor-right keypresses as required (this only works |
171 | for programs that correctly support wide characters). |
171 | for programs that correctly support wide characters). |
172 | |
172 | |
173 | To avoid too many false positives, this is only done when: |
173 | To avoid too many false positives, this is only done when: |
174 | |
174 | |
175 | =over 4 |
175 | =over 4 |
… | |
… | |
1285 | mouseWheelScrollPage name override_redirect pastableTabs path perl_eval |
1285 | mouseWheelScrollPage name override_redirect pastableTabs path perl_eval |
1286 | perl_ext_1 perl_ext_2 perl_lib pointerBlank pointerBlankDelay |
1286 | perl_ext_1 perl_ext_2 perl_lib pointerBlank pointerBlankDelay |
1287 | preeditType print_pipe pty_fd reverseVideo saveLines scrollBar |
1287 | preeditType print_pipe pty_fd reverseVideo saveLines scrollBar |
1288 | scrollBar_align scrollBar_floating scrollBar_right scrollBar_thickness |
1288 | scrollBar_align scrollBar_floating scrollBar_right scrollBar_thickness |
1289 | scrollTtyKeypress scrollTtyOutput scrollWithBuffer scrollstyle |
1289 | scrollTtyKeypress scrollTtyOutput scrollWithBuffer scrollstyle |
1290 | secondaryScreen secondaryScroll selectstyle shade term_name title |
1290 | secondaryScreen secondaryScroll shade term_name title |
1291 | transient_for transparent transparent_all tripleclickwords utmpInhibit |
1291 | transient_for transparent transparent_all tripleclickwords utmpInhibit |
1292 | visualBell |
1292 | visualBell |
1293 | |
1293 | |
1294 | =cut |
1294 | =cut |
1295 | |
1295 | |
… | |
… | |
1625 | automatically be updated. |
1625 | automatically be updated. |
1626 | |
1626 | |
1627 | C<$text> is in a special encoding: tabs and wide characters that use more |
1627 | C<$text> is in a special encoding: tabs and wide characters that use more |
1628 | than one cell when displayed are padded with C<$urxvt::NOCHAR> (chr 65535) |
1628 | than one cell when displayed are padded with C<$urxvt::NOCHAR> (chr 65535) |
1629 | characters. Characters with combining characters and other characters that |
1629 | characters. Characters with combining characters and other characters that |
1630 | do not fit into the normal tetx encoding will be replaced with characters |
1630 | do not fit into the normal text encoding will be replaced with characters |
1631 | in the private use area. |
1631 | in the private use area. |
1632 | |
1632 | |
1633 | You have to obey this encoding when changing text. The advantage is |
1633 | You have to obey this encoding when changing text. The advantage is |
1634 | that C<substr> and similar functions work on screen cells and not on |
1634 | that C<substr> and similar functions work on screen cells and not on |
1635 | characters. |
1635 | characters. |
… | |
… | |
1954 | my $env = $self->{term}->env; |
1954 | my $env = $self->{term}->env; |
1955 | # we can't hope to reproduce the locale algorithm, so nuke LC_ALL and set LC_CTYPE. |
1955 | # we can't hope to reproduce the locale algorithm, so nuke LC_ALL and set LC_CTYPE. |
1956 | delete $env->{LC_ALL}; |
1956 | delete $env->{LC_ALL}; |
1957 | $env->{LC_CTYPE} = $self->{term}->locale; |
1957 | $env->{LC_CTYPE} = $self->{term}->locale; |
1958 | |
1958 | |
1959 | urxvt::term->new ($env, "popup", |
1959 | my $term = urxvt::term->new ( |
|
|
1960 | $env, "popup", |
1960 | "--perl-lib" => "", "--perl-ext-common" => "", |
1961 | "--perl-lib" => "", "--perl-ext-common" => "", |
1961 | "-pty-fd" => -1, "-sl" => 0, |
1962 | "-pty-fd" => -1, "-sl" => 0, |
1962 | "-b" => 1, "-bd" => "grey80", "-bl", "-override-redirect", |
1963 | "-b" => 1, "-bd" => "grey80", "-bl", "-override-redirect", |
1963 | "--transient-for" => $self->{term}->parent, |
1964 | "--transient-for" => $self->{term}->parent, |
1964 | "-display" => $self->{term}->display_id, |
1965 | "-display" => $self->{term}->display_id, |
1965 | "-pe" => "urxvt-popup") |
1966 | "-pe" => "urxvt-popup", |
1966 | or die "unable to create popup window\n"; |
1967 | ) or die "unable to create popup window\n"; |
|
|
1968 | |
|
|
1969 | unless (delete $term->{urxvt_popup_init_done}) { |
|
|
1970 | $term->ungrab; |
|
|
1971 | $term->destroy; |
|
|
1972 | die "unable to initialise popup window\n"; |
|
|
1973 | } |
1967 | } |
1974 | } |
1968 | |
1975 | |
1969 | sub DESTROY { |
1976 | sub DESTROY { |
1970 | my ($self) = @_; |
1977 | my ($self) = @_; |
1971 | |
1978 | |