… | |
… | |
170 | moment, it reacts to clicking with the left mouse button by trying to |
170 | moment, it reacts to clicking with the left mouse button by trying to |
171 | move the text cursor to this position. It does so by generating as many |
171 | move the text cursor to this position. It does so by generating as many |
172 | cursor-left or cursor-right keypresses as required (the this only works |
172 | cursor-left or cursor-right keypresses as required (the this only works |
173 | for programs that correctly support wide characters). |
173 | for programs that correctly support wide characters). |
174 | |
174 | |
175 | It only works when clicking into the same line (possibly extended over |
175 | To avoid too many false positives, this is only done when: |
176 | multiple rows) as the text cursor and on the primary screen, to reduce the |
176 | |
177 | risk of misinterpreting. The normal selection isn't disabled, so quick |
177 | =over 4 |
|
|
178 | |
|
|
179 | =item - the mouse is on the same (multi-row-) line as the text cursor. |
|
|
180 | |
|
|
181 | =item - the primary screen is currently being displayed. |
|
|
182 | |
|
|
183 | =item - the text cursor is visible. |
|
|
184 | |
|
|
185 | =back |
|
|
186 | |
|
|
187 | The normal selection mechanism isn't disabled, so quick successive clicks |
178 | successive clicks might interfere with selection creation in harmless |
188 | might interfere with selection creation in harmless ways. |
179 | ways. |
|
|
180 | |
189 | |
181 | =item tabbed |
190 | =item tabbed |
182 | |
191 | |
183 | This transforms the terminal into a tabbar with additional terminals, that |
192 | This transforms the terminal into a tabbar with additional terminals, that |
184 | is, it implements what is commonly refered to as "tabbed terminal". The topmost line |
193 | is, it implements what is commonly refered to as "tabbed terminal". The topmost line |
… | |
… | |
1376 | |
1385 | |
1377 | =item $screen = $term->current_screen |
1386 | =item $screen = $term->current_screen |
1378 | |
1387 | |
1379 | Returns the currently displayed screen (0 primary, 1 secondary). |
1388 | Returns the currently displayed screen (0 primary, 1 secondary). |
1380 | |
1389 | |
|
|
1390 | =item $cursor_is_hidden = $term->hidden_cursor |
|
|
1391 | |
|
|
1392 | Returns wether the cursor is currently hidden or not. |
|
|
1393 | |
1381 | =item $view_start = $term->view_start ([$newvalue]) |
1394 | =item $view_start = $term->view_start ([$newvalue]) |
1382 | |
1395 | |
1383 | Returns the row number of the topmost displayed line. Maximum value is |
1396 | Returns the row number of the topmost displayed line. Maximum value is |
1384 | C<0>, which displays the normal terminal contents. Lower values scroll |
1397 | C<0>, which displays the normal terminal contents. Lower values scroll |
1385 | this many lines into the scrollback buffer. |
1398 | this many lines into the scrollback buffer. |