Commit Graph

671 Commits

Author SHA1 Message Date
Boris Faure 6ea42c38ae fix mouse scroll on mode SGR/NONE. Closes T661 2013-12-15 21:54:52 +01:00
Boris Faure 73310b6c88 fix mouse scroll in mc. Closes T661 2013-12-15 21:33:23 +01:00
Chris Michael edcf25c9af Remove 2 variables which are not needed.
After we fetch geometry, we are only using w & h for comparison. X/Y
are never used, so remove those two variables.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-12-14 09:00:53 +00:00
Chris Michael a31e29e016 Remove EINA_UNUSED for function parameter that is actually used.
'data' is used in this function for terminal assignment, so remove the
EINA_UNUSED from the function declaration.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-12-13 18:54:15 +00:00
Cedric BAIL 5f15fae4e7 tabs: improve behavior by making possible to navigate between them by using mouse wheel.
More theme work is needed, but first step for T449.
2013-12-13 14:59:26 +09:00
Cedric BAIL d4445b87f9 autotools: we do include file from subdir, so we need this option 2013-12-13 14:58:12 +09:00
Aleksandar Popadić e170f85ce3 Do not switch buffer if buffer already switched.
Summary:
Mutt does this. It sets the alternate buffer, it disables it, it
disables it again and enables it back.

Test Plan:
Run mutt, quit mutt, run mutt, quit mutt. You should see the
residual background from mutt.

Reviewers: billiob

Differential Revision: https://phab.enlightenment.org/D371
2013-12-10 21:45:11 +01:00
Aleksandar Popadić 59a7627e86 Fix reflow on resize when in alternate buffer. Closes T637
Summary:
After commit 05d091483a screen swap form
alternate buffer to primary buffer is not the same as the reversed. Take this
into account when resizing.

Test Plan: Build history, man echo, resize, quit manual.

Reviewers: billiob

Differential Revision: https://phab.enlightenment.org/D370
2013-12-10 21:23:32 +01:00
Carsten Haitzler 6cbc4c1a09 wrap code - line2 COULD be NULL technically, so handle that case 2013-12-06 19:00:23 +09:00
Boris Faure 05d091483a fix changing state when swapping buffers. Closes T605
For some reason, this is not a real swap. Thanks to gregkh for the great
bug report.
2013-12-05 22:48:58 +01:00
Boris Faure c93c431279 have a list with the keybindings
This is ugly, makes evas complain… but it's better than nothing and users
might discover the bindings about the "tab" switcher…
And we're in feature-freeze.
2013-12-04 22:51:45 +01:00
Boris Faure 2ae7fada13 add dummy option about key bindings 2013-12-04 22:07:13 +01:00
Boris Faure bb86f4b07b cleanup options code 2013-12-04 21:42:16 +01:00
Carsten Haitzler 83b8fec527 theme selector - use gengrid instead of list
this makes the theme selector look much nicer. it's a step in the
right direction, but not 100% there. did this more as an example for
people filling in wallpaper and color selector (colors will need to
have a scheme/theme and preview too and then a way to edit a custom
theme/scheme).
2013-12-03 15:25:37 +09:00
Aleksandar Popadić b31638a630 Fix resize from width=1 to wider.
Test Plan:
Shrink terminal to width=1 and expand. Empty lines appear above
prompt line.

Reviewers: billiob

Differential Revision: https://phab.enlightenment.org/D361
2013-12-02 21:51:03 +01:00
Boris Faure da8c2ce773 emulate cursors if needed on mouse wheel. Closes T411
This is done when in alternate buffer and no mouse mode is set.
2013-12-01 23:40:58 +01:00
Boris Faure fa0cdc0e1d remove unused parameter 2013-12-01 23:19:54 +01:00
Aleksandar Popadić d0c6c1d457 Rewrite reflow on resize
Summary:
simplify code (treat every resize as a single case) and fill the lines
from the bottom up

Reviewers: billiob

Differential Revision: https://phab.enlightenment.org/D355
2013-12-01 19:47:12 +01:00
Boris Faure fae338a84f typo. Closes T544 2013-12-01 19:07:39 +01:00
Boris Faure 185249b6bd use more safety macros on Termio *sd 2013-12-01 18:50:45 +01:00
Boris Faure 54aa692ee2 fix selection pasting on wrong term. Closes T408 2013-12-01 18:22:17 +01:00
Boris Faure fd38df3108 fix controls button "copy" not reflecting correct selection state 2013-12-01 16:49:35 +01:00
Boris Faure 49b08115c9 mouse down focuses a term, whatever the button 2013-12-01 16:35:10 +01:00
Boris Faure 81a7d98f2f fix handling of DCH. Closes T537
As characters are deleted, the remaining characters between the cursor and
right margin move to the left. Character attributes move with the characters.
The terminal adds blank spaces with no visual character attributes at the right
margin. DCH has no effect outside the scrolling margins.
2013-11-23 19:31:49 +01:00
Aleksandar Popadić 11db9a1117 Fix screen swap when using alternate buffer.
Summary:
The circular_offset should not be set to 0 because the first line from
screen2 is copied to the offset line in screen.

Test Plan:
Try "man echo", scroll down and exit. The screen is not restored
properly.

Reviewers: billiob

Reviewed By: billiob

Differential Revision: https://phab.enlightenment.org/D345
2013-11-22 22:17:02 +01:00
Boris Faure 0380b657c4 be able to do selections in a row
I do need to write some tests on all that selection mess…
2013-11-21 23:01:59 +01:00
Boris Faure c6af3675de fix "shift + dbl click" used to extend selection to a word.
imho, this feature is useless…
2013-11-21 22:45:32 +01:00
Boris Faure b149052d64 do not bring back a selection from the dead 2013-11-20 23:12:19 +01:00
Boris Faure e5efdabd27 do not send mouse tracking when ctrl/shift are pressed. Closes T39, T535
Do just like xterm. It uses them to show some popups.
Ctrl+mouse makes box selection.
2013-11-20 23:07:07 +01:00
Boris Faure 509a5d1a7b fix scrolling with selection on irssi in tmux. Closes T404 2013-11-18 22:30:26 +01:00
Boris Faure df2b87308b add termpty_screen_swap() to simplify code 2013-11-18 21:41:30 +01:00
Aleksandar Popadić 7447178071 Fix screen refresh with screen, ssh, vim, ...
Summary: This closes T143.

Reviewers: billiob

Reviewed By: billiob

Maniphest Tasks: T143

Differential Revision: https://phab.enlightenment.org/D340
2013-11-18 20:45:47 +01:00
Boris Faure f8edf059d4 fix scrolling bug. Closes T106
Was fixed with help from great bug report by thomasg.

scroll_rev was ok
2013-11-17 17:28:32 +01:00
Boris Faure 40f0dc6950 simplify code 2013-11-17 17:28:32 +01:00
Boris Faure 4bc3357a91 improve debug output 2013-11-17 17:28:32 +01:00
Carsten Haitzler ecb2962dd5 capitalize option label 2013-11-17 15:11:19 +09:00
Boris Faure 35627a9395 remove useless code 2013-11-15 22:52:12 +01:00
Boris Faure 03802df2a9 simple click doesn't create one-char selection
(for real…)
2013-11-15 22:21:51 +01:00
Boris Faure 05ea863dc5 disable selection when resizing
because I don't want to deal with that for the moment
2013-11-14 23:24:45 +01:00
Boris Faure 2fcdd866ad remove debug =] 2013-11-14 23:10:08 +01:00
Boris Faure 997b83cad4 fix simple click producing one-char selection 2013-11-14 23:04:12 +01:00
Boris Faure 8c7dab9fdf remove selection when content selected changes 2013-11-11 18:08:02 +01:00
Boris Faure bc15fc6ff6 keep selection when scrolling 2013-11-10 22:13:19 +01:00
Boris Faure d682db21fb selection to the edges scrolls 2013-11-10 18:16:39 +01:00
Boris Faure 90d3bf483c fix stretching selection 2013-11-10 18:16:39 +01:00
Boris Faure 082942ef55 fix clicking to unselect 2013-11-10 18:16:39 +01:00
Boris Faure c16786416d simplify selection code 2013-11-10 18:16:39 +01:00
Boris Faure e9db7e6ed9 _smart_xy_to_cursor() now returns inside coordinates 2013-11-10 18:16:39 +01:00
Boris Faure 4ac9704be2 "#if defined(SUPPORT_DBLWIDTH)"--
and let the compiler remove the calls whenever needed
2013-11-10 18:16:39 +01:00
Boris Faure 4a9e61cb2e fix selection going up/left 2013-11-10 18:16:39 +01:00