… | |
… | |
16 | |
16 | |
17 | if ($row == $self->{hover}) { |
17 | if ($row == $self->{hover}) { |
18 | $rend = $self->{press} ? "\x1b[m" : "\x1b[30;46m"; |
18 | $rend = $self->{press} ? "\x1b[m" : "\x1b[30;46m"; |
19 | } |
19 | } |
20 | |
20 | |
21 | $cmd .= "$rend\x1b[K" . $self->locale_encode ($item->{text}) . "\015\012"; |
21 | $cmd .= "$rend\x1b[K"; |
|
|
22 | $cmd .= $self->locale_encode ($item->{render}->($item)); |
|
|
23 | $cmd .= "\015\012"; |
22 | |
24 | |
23 | $row++; |
25 | $row++; |
24 | } |
26 | } |
25 | |
27 | |
26 | $self->cmd_parse (substr $cmd, 0, -2); |
28 | $self->cmd_parse (substr $cmd, 0, -2); |
… | |
… | |
130 | # should definitely not fail |
132 | # should definitely not fail |
131 | $self->grab ($self->{data}{event}{time}, 1) |
133 | $self->grab ($self->{data}{event}{time}, 1) |
132 | and $self->allow_events_async; |
134 | and $self->allow_events_async; |
133 | } |
135 | } |
134 | |
136 | |
135 | sub on_destroy { |
|
|
136 | } |
|
|
137 | |
137 | |
138 | |
138 | |
139 | |
139 | |
140 | |
140 | |
141 | |
141 | |