… | |
… | |
109 | } |
109 | } |
110 | |
110 | |
111 | sub on_start { |
111 | sub on_start { |
112 | my ($self) = @_; |
112 | my ($self) = @_; |
113 | |
113 | |
|
|
114 | $self->cmd_parse ("\x1b[?25l\x1b[?7l"); |
|
|
115 | $self->refresh; |
|
|
116 | |
114 | # might fail, but try anyways |
117 | # might fail, but try anyways |
115 | $self->grab ($self->{data}{event}{time}, 1) |
118 | $self->grab ($self->{data}{event}{time}, 1) |
116 | and $self->allow_events_async; |
119 | and $self->allow_events_async; |
117 | |
120 | |
118 | on_button_press $self, $self->{data}{event} if $self->{data}{event}{button}; |
121 | on_button_press $self, $self->{data}{event} if $self->{data}{event}{button}; |
119 | |
|
|
120 | $self->cmd_parse ("\x1b[?25l\x1b[?7l"); |
|
|
121 | refresh $self; |
|
|
122 | |
122 | |
123 | () |
123 | () |
124 | } |
124 | } |
125 | |
125 | |
126 | sub on_map_notify { |
126 | sub on_map_notify { |