Boris Faure
45b7d20425
trim selection before trying to open it as url
2015-08-24 23:45:14 +02:00
Boris Faure
cf58c1ee76
add context menu to open a selection as an url. Closes T584
2015-08-24 23:09:24 +02:00
Boris Faure
144e0b5068
add option to disable terminology escape codes that could be considered
...
security issues by some
They are enabled by default.
2015-08-23 20:57:49 +02:00
Boris Faure
5c9d98cf22
add error handlers on textblocks. Should fix T2672
2015-08-23 16:41:15 +02:00
Boris Faure
1400b122ec
bad copy/paste. CID1316546
2015-08-18 22:37:10 +02:00
Boris Faure
7fd86d8968
warn about window operations' escape codes being not supported
2015-08-17 23:18:50 +02:00
Boris Faure
b80bedc7c2
do not report unsanitized input. See CVE-2003-0063
2015-08-17 23:18:49 +02:00
Boris Faure
a33a937ab7
add powerlines to word separators
2015-08-16 21:48:22 +02:00
Boris Faure
716cb03b5b
fix small issue on word selection and simplify code
2015-08-16 21:40:58 +02:00
godfath3r
8e8207dae1
Dont use : as a separator but trim it from selected word. Fixes T2602
...
Reviewers: billiob
Maniphest Tasks: T2602
Differential Revision: https://phab.enlightenment.org/D2931
2015-08-16 20:36:38 +02:00
Mike Blumenkrantz
8d4b06617f
use event length instead of strlen() when dropping something into a terminal
...
the data member of Elm_Selection_Data may not be nul terminated, so
any string operation on this is liable to crash
2015-08-13 14:46:02 -04:00
Carsten Haitzler
4b25721a1d
terminology themes - use theme in home dir over system one always
...
checking modified time between user and system themes is just not a
good idea - we never do this anywhere in e. user installed theme
alwasy overrides system one. modified time is not relevant.
2015-08-11 13:15:16 +09:00
Boris Faure
fe58cd058b
only use beacon when it seems efficient
2015-08-10 21:44:05 +02:00
Boris Faure
d0bedb9a8a
backlog: update beacon while browsing
2015-08-10 21:31:24 +02:00
Boris Faure
69cffca8b0
fix splitting when no term focused. oops
2015-08-10 21:02:27 +02:00
Boris Faure
db471aec09
correctly fix coverity issue found in termiolink.c
2015-08-10 00:28:33 +02:00
Boris Faure
3738402a9d
fix wrong condition. CID1315743
2015-08-09 14:19:50 +02:00
Boris Faure
7af60a58c8
BACKLOG_ROW_GET() should not be called with a "screen" value
...
the backlog is independent of the screen size. Thus a single line in the
backlog can span many lines on the screen.
2015-08-09 14:10:12 +02:00
Boris Faure
b4c91eee47
fix scroll after resize
2015-08-08 16:40:05 +02:00
godfath3r
93c7deeb3e
Correct rewrite of splittable container
...
Reviewers: billiob
Differential Revision: https://phab.enlightenment.org/D2933
2015-08-08 12:05:04 +02:00
Boris Faure
49be05a02f
do not expand window on zoom, resize the content. Closes T886
2015-08-06 22:40:19 +02:00
Boris Faure
3716c7ec51
apply zoom level/font size to all terms in a window
2015-08-06 21:53:14 +02:00
Boris Faure
fc79e38575
rewrite whether a term container is splittable. CID1315267 and CID1315268
2015-08-06 21:50:58 +02:00
Boris Faure
41579e92e8
remove logically dead code. CID1315103 and CID1315104
2015-08-06 21:39:20 +02:00
Boris Faure
5c37589e39
fix resize when cursor alone on last line
2015-08-05 22:57:01 +02:00
godfath3r
c2e1c2c3fa
Fix crash when split is too small and miniview is shown.
...
Summary: Fixes T2450
Reviewers: billiob
Maniphest Tasks: T2450
Differential Revision: https://phab.enlightenment.org/D2919
2015-08-05 22:02:09 +02:00
godfath3r
eea13ce939
Don't split terminal endlessly.
...
Summary: Previously terminology would split the terminal as many times as user hit split button/shortcut. Now splitting is limited to only when there are at least 2 cells left. (horizontally or vertically) Also Fixes T2638
Reviewers: billiob
Maniphest Tasks: T2638
Differential Revision: https://phab.enlightenment.org/D2915
2015-08-05 21:55:56 +02:00
Boris Faure
423d06fed3
allow different backgrounds via tybg. Closes T2444
2015-08-03 21:45:05 +02:00
Boris Faure
21764bbf85
remove wrong assert when no backlog ever generated
2015-08-03 21:23:38 +02:00
Boris Faure
f40c63bbb6
typo
2015-08-03 20:52:54 +02:00
Boris Faure
8fbffdd869
renames to make the code more consistant
2015-08-03 20:44:55 +02:00
Boris Faure
35c8fd79c0
speed up browsing backlog
...
have a "beacon": single point where the link between an offset in the
backlog and one in screen coordinates
2015-08-03 20:44:55 +02:00
Boris Faure
34592ab5b3
new resize/backlog implementation. Closes T2461
...
idea: store full lines in the backlog. No need to change them on resize
2015-08-03 20:43:17 +02:00
Boris Faure
e2853ab0a5
rename main_term_evas_object_get() to term_termio_get()
2015-08-02 22:53:01 +02:00
godfath3r
10b7b19bc9
Add 'Show miniview by default' in options.
...
Summary: Fixes T1876
Reviewers: billiob, raster
Maniphest Tasks: T1876
Differential Revision: https://phab.enlightenment.org/D2869
2015-08-02 22:44:32 +02:00
Boris Faure
0265c9bd88
cleanup --font handling. Closes T2433
2015-08-02 22:27:54 +02:00
Mike Blumenkrantz
eb25dabf09
fix compile warning
...
tycat.c: In function ‘handle_edje’:
tycat.c:180:40: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
(o, rp, "e/desktop/background") == EINA_TRUE)
2015-07-28 16:07:03 -04:00
Boris Faure
ee6a319f17
add some documentation
2015-07-22 23:16:23 +02:00
Chris Michael
25ec6d06cb
terminology: Fix formatting
...
NB: No functional changes
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-22 12:24:33 -04:00
Chris Michael
23045a08a7
terminology: Fix formatting
...
NB: No functional changes, just formatting
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-22 11:42:46 -04:00
Boris Faure
5db007e579
fix segv when spliting from controls. Closes T2568
2015-07-15 23:20:02 +02:00
Jean-Philippe Andre
09b4fddf84
escapes: pretty-print some escapse and avoid ESC in debug logs
...
ERR("Hello '%c'", ESC) would result in "Hello '\033'" which means
the parent terminal (another terminology, maybe) would then try to
interpret ' as an escape char (ESC is \033 or 0x1b), and so it would
then forward more escapes to the parent.
Also, avoid printing BEL (and, well, beeping) when we are just
printing an error log.
I believe all those "Unhandled escape" logs should go to WRN or higher
log levels. Any thoughts, @billiob ?
See T2506 (for the test file)
2015-06-24 13:46:48 +09:00
Boris Faure
0fa0a5d9c8
force focus even if win is not yet focused. Closes T2416
2015-06-21 17:50:30 +02:00
Carsten Haitzler
03d1edddaf
terminology config - fix whitespace + indenting
2015-06-16 14:17:25 +09:00
Boris Faure
a07a63048c
fix crash from object being swallowed twice. Closes T2463
2015-06-11 23:55:35 +02:00
Boris Faure
1ad8055d28
remove useless termio_theme_get()
2015-06-11 22:29:53 +02:00
Boris Faure
5d6544ed76
do not update an url if Location is local
2015-06-03 23:04:03 +02:00
Boris Faure
566033f78d
do not remove links when there is a popup due to such link
2015-06-03 23:03:07 +02:00
Boris Faure
681bb029c2
ensure cursor coordinates are always valid, 2nd version
2015-06-03 23:02:31 +02:00
Carsten Haitzler
074eece5f7
Revert "ensure cursor coordinates are always valid"
...
This reverts commit 1f3f779258
.
this breaks terminal scrolling entirely! can't scroll anymore at all
in standard shell. just try a simple: find / -print
2015-06-03 15:00:13 +09:00
Boris Faure
7b72052773
remove callbacks when deleting termio
2015-06-02 23:23:56 +02:00
Boris Faure
bac8e078c7
add some debug to fix focus issues
2015-06-02 23:11:16 +02:00
Boris Faure
1f3f779258
ensure cursor coordinates are always valid
2015-06-02 22:48:50 +02:00
Boris Faure
c86b35309c
rename a bunch of _termpty_*() to termpty_*()
2015-06-02 21:47:06 +02:00
Boris Faure
9ecda225b8
fix focus wrt settings. Closes T2460
2015-06-01 21:19:14 +02:00
Boris Faure
231ff2514a
fix focus issue with ctxpopup. Closes T2455
2015-05-31 17:38:02 +02:00
kidanger
bd9f8591e1
sel: fix incorrect event struct use
2015-05-31 15:59:42 +02:00
Boris Faure
16c184a9d2
fix link detection on links starting at first char of the screen.
...
Closes T2438
2015-05-27 23:20:08 +02:00
Boris Faure
f2239735ab
fix bell. we want it even if the term is focused
2015-05-13 20:53:50 +02:00
Boris Faure
948c1399cd
fix focus issue wrt tabs
...
elm_object_focus_set() triggers a focus_out on the window even though an
object inside it is getting the focus…
2015-05-06 21:31:52 +02:00
Boris Faure
27179b6525
restore animation when moving between tabs. Closes T2380
2015-04-30 21:06:06 +02:00
Boris Faure
f64356baac
fix focus issue. Closes T2376
2015-04-30 20:18:29 +02:00
Boris Faure
9e043c0425
display background on new tab. Closes T2378
2015-04-30 19:33:00 +02:00
Boris Faure
563b592b81
new tab inherits wdir. Closes T2379
2015-04-30 19:11:31 +02:00
Boris Faure
6234a290eb
config: copy "not in eet" info in config_fork(). Fixes "font reset" binding
...
Ref: #18
2015-04-26 18:04:50 +02:00
Boris Faure
da0a6284cd
keys: add underscore as special key. Should close T2369
2015-04-26 13:14:56 +02:00
Boris Faure
d2e39f818e
avoid possible division by 0. Closes CID1295447
2015-04-25 14:56:53 +02:00
Stefan Schmidt
79761712c6
build: Add term_container.h to source files to make sure it gets distributed
...
Would not end up in the tarball if not listed here.
2015-04-24 08:42:11 +02:00
Boris Faure
2228945f2c
refactor win.c to use the Term_Container abstraction
2015-04-23 20:07:59 +02:00
Boris Faure
be62d87f89
separate "termstate" from cursor state and screens. Closes T725
2015-04-23 20:02:53 +02:00
Carsten Haitzler
caf4e92302
terminology config - allow gst1 as vid mod config - adjust limit range
2015-04-19 21:34:22 +09:00
Boris Faure
c2b26e0999
fix selecting tabs
2015-04-18 23:12:39 +02:00
Boris Faure
0e18a185fe
correctly handle empty lines when doing selections
2015-04-18 22:44:42 +02:00
Boris Faure
688f417814
config: do not add F11 as default binding to Fullscreen
2015-04-16 21:33:03 +02:00
Boris Faure
d1416cc735
colors ui: "improved" color namming
2015-04-14 22:18:52 +02:00
Boris Faure
52ceae82b1
add meta/hyper to key bindings. Closes T1985
2015-04-13 21:37:09 +02:00
Boris Faure
981f76c6e3
add ugly timeout to http head when trying to preview links
2015-04-08 23:40:11 +02:00
Jean-Philippe Andre
674c680052
Add .dds to list of image extensions, for tycat
2015-04-07 14:49:44 +09:00
Boris Faure
7e4276c033
right click on a selection shows popup to copy it
...
Closes T2246
2015-04-05 12:14:46 +02:00
Carsten Haitzler
16402da20a
fix terminology popup handling to work again
...
popup handling was broken when adding url head checking. it ALWAYS
used the external helpder path regardless of config requesting to
handle internally if possible. this fixes that.
@fix
2015-04-03 19:50:16 +09:00
Boris Faure
80bb25baaa
fix terminology not starting with newer config
2015-04-01 20:40:17 +02:00
Chris Michael
c328ba006e
terminology: Use proper event structure for mouse up callback
...
Summary: When catching evas mouse up callbacks, we should be using the
Evas_Event_Mouse_Up structure for the event
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-03-30 15:22:20 -04:00
Boris Faure
709a55889f
Revert "fix colors and show darkgray. Closes T2245"
...
This reverts commit 834ee01532
.
2015-03-30 20:47:35 +02:00
Boris Faure
834ee01532
fix colors and show darkgray. Closes T2245
2015-03-29 20:37:17 +02:00
Boris Faure
29cf913951
termio: make code more readable. Closes CID1291865
2015-03-29 18:45:00 +02:00
Boris Faure
e6c45c593d
win: cleanup: rename Term.term to Term.termio
2015-03-22 15:11:10 +01:00
Daniel Zaoui
6aee349409
Revert "have the "xterm" cursor on the textgrid"
...
This reverts commit 144053f882
.
It totally breaks the terminal splitting.
2015-03-22 08:22:14 +02:00
Boris Faure
0895a1e608
should set "hand2" cursor on links but doesn't work
2015-03-18 18:21:23 +01:00
Boris Faure
144053f882
have the "xterm" cursor on the textgrid
2015-03-18 18:03:16 +01:00
Boris Faure
4abdf4b327
code cleanup: s/if (X) free(X);/free(X);/
2015-03-18 15:23:39 +01:00
Jean Guyomarc'h
73c9e82777
config: typo in config upgrade names
...
Summary: If CONF_VER was 4, config should be upgraded to 5.
Reviewers: billiob
Differential Revision: https://phab.enlightenment.org/D2179
2015-03-17 20:21:07 +01:00
Boris Faure
ed178f5a13
typo
2015-03-17 18:47:26 +01:00
Boris Faure
33322d04af
toggle fullscreen by pressing F11
2015-03-17 18:46:39 +01:00
Boris Faure
7edeea3503
correctly swap term states. Ref T725
2015-03-17 17:15:50 +01:00
Boris Faure
688bf414e4
right trim selections
...
Also add a (near-dumb) string buffer abstraction because working with
Eina_Strbuf, an opaque structure is a PITA.
2015-03-08 20:22:44 +01:00
Boris Faure
b4ba773e17
fix CSI DECSET 1049. Should fix T725
2015-03-01 17:20:18 +01:00
Boris Faure
65d729ce32
font selector: use bg/fg for the preview from config/theme
2015-03-01 17:20:18 +01:00
Boris Faure
4d7708a0f1
tyls: rewrite size_print to avoid arithmetic exception
2015-02-26 23:47:28 +01:00
Boris Faure
6c2e2dfbf5
tyls: fix warnings
...
size comparison
unused variable
2015-02-26 23:47:28 +01:00
Thibaut Broggi
85edd0407c
tyls: remove leaks and fix write() checking
...
leaks were due to a "return 0" in main()
removing it, so that the exit functions from ecore can run properly
changing the way write() was checked, now we check if all chars are printed
2015-02-26 23:47:28 +01:00
Thibaut Broggi
03b88bafc7
tyls: change options management and refactor
...
adding an option "-a" that display hidden files
changing the way options are managed: arguments can no be passed in any order
refactoring size_print function to support ZB and YB
2015-02-26 23:47:22 +01:00
Boris Faure
27304c456f
make terminology start on solaris
2015-02-23 23:33:06 +01:00
Boris Faure
cf1a9a3a01
verify that tcgetattr() does not fail
2015-02-23 23:33:01 +01:00
Boris Faure
ac12f8eec8
handle failure to termio_add()
2015-02-23 23:29:15 +01:00
Boris Faure
12ef99bcf2
fix segfault when Term widget can not be created
2015-02-23 22:52:33 +01:00
Boris Faure
122fa9da0c
add some error messages
...
Also change level of critical error messages
2015-02-23 22:51:33 +01:00
Boris Faure
f13d9ad111
fix compilation on solaris
2015-02-23 22:20:18 +01:00
Boris Faure
2de1cd87b6
pid_t can be long (on solaris)
2015-02-23 21:51:28 +01:00
Aurélien Larcher
2d710e5705
define MIN/MAX in case they're not defined
...
Used for OpenIndiana
2015-02-23 21:25:10 +01:00
Boris Faure
141cfd959d
url head: handle links that are notimages/movies
2015-02-23 20:17:48 +01:00
Boris Faure
be30c069f3
close media popup on escape
2015-02-21 12:24:28 +01:00
Boris Faure
5d169ebd71
correctly check if ecore_con_url_head() is available
2015-02-21 11:40:10 +01:00
Boris Faure
76e9ae6481
do an HTTP HEAD to get media type when poping media
2015-02-21 11:40:10 +01:00
Boris Faure
6762578ace
do only once ecore_con_(url_)init/shutdown()
2015-02-21 11:40:10 +01:00
Boris Faure
ca2d7846a9
fix normal selection after box selection
2015-02-19 23:30:28 +01:00
Boris Faure
e4d357ace2
make terminology work on solaris
...
tcsetattr() should only be called on the slave fd. On linux, both master
or slave are accepted, not on solaris.
2015-02-17 22:08:47 +01:00
Boris Faure
f80d9634e3
fix selection when backscrolling and new content arrives
...
Thanks to Davide Andreoli for the bug report
2015-02-16 22:15:00 +01:00
Boris Faure
feccb7bcab
fix single line selection with ctrl down
2015-02-16 20:50:13 +01:00
Boris Faure
5b4e6de54a
tybg: make tybg without argument display the default wallpaper
...
The ty* tools need some love…
2015-02-15 20:41:31 +01:00
Conrad Meyer
4ea6bdb04e
make terminology compile on efl < 1.8. Patch by Conrad Meyer
2015-02-15 20:29:47 +01:00
Boris Faure
896d28afc3
update contributors
2015-02-15 14:11:37 +01:00
Boris Faure
9a75587d34
bring --split option back to life
2015-02-15 13:45:38 +01:00
Boris Faure
296cdcd102
usual round of fixes to make it compile with efl 1.7
2015-02-14 12:08:50 +01:00
Boris Faure
cf1c8f7c02
move selection when content underneath scrolls
2015-02-13 22:59:56 +01:00
Boris Faure
168395c3e6
revalidate links when scrolling due to mouse wheel. Closes T2111
2015-02-13 22:58:41 +01:00
Boris Faure
4cad406233
remove dead assignment
2015-02-11 21:42:19 +01:00
Boris Faure
337fd3bdb1
minor selection fixes
...
do not consider "click + shift click" if there was a focus out in the
meantime.
disable selection on click when app steals the mouse
2015-02-10 23:55:25 +01:00
Boris Faure
a3a8e370ee
fix signedness comparison issue
2015-02-07 12:03:44 +01:00
broggi_t
4b4deb3ad3
tyls : make the code prettier and more flexible
2015-02-07 12:02:19 +01:00
broggi_t
2a397f35cd
fix some possible bug in tyalpha, tybg, typop, tyq commands
...
make the code prettier in tyls
remove useless exit(0) at the end of the main (just before some return 0)
2015-02-07 12:02:19 +01:00
Boris Faure
9814b10ad2
correctly handle Alt-Enter
2015-02-06 23:12:32 +01:00
Boris Faure
cc6b11a6f5
make selection scroll when at the edge of the terminal. Closes T1944
2015-02-06 22:31:51 +01:00
Boris Faure
f0151cecf2
consider "blocks" as word separators
2015-02-06 22:10:10 +01:00
Boris Faure
26f2607095
select links as words. Closes T2038
2015-02-06 22:10:10 +01:00
Boris Faure
5a9dcf1ed3
do not apply extend fix when selection is box
2015-02-06 22:10:10 +01:00
Boris Faure
788f3e7eb7
rewrite selection system. Closes T1893
2015-02-06 22:09:52 +01:00
Boris Faure
6a2b3ae871
selection: add click then shift-click
2015-02-06 20:48:03 +01:00
Boris Faure
d18a47c5c6
selection: be able to "continue" a selection to a line with shift+triple-click
2015-02-06 20:48:03 +01:00
Boris Faure
da474a4c68
cleanup _sel_set() api
2015-02-06 20:48:03 +01:00
Boris Faure
bae16a33b9
we're in 2015
2015-02-03 20:44:46 +01:00
Boris Faure
c6b5093af5
fix compilation when gettext is not found. Closes T2083
2015-02-03 20:26:25 +01:00
Carsten Haitzler
6268dc32e4
terminology - fix double click selection and jed display
...
this fixes breaks introduced by
e94051dd86
(the previous commit).
latest commit: e94051dd86
breaks 2 things.
1. double-click to select a "word" is broken. the right end of the selection is
stuck at the point where the cursor is, not the right end of the word. try it.
at least that is what i see. either way double-click to select a word is now
broken. ;(
2. what used to be black whitespace bg is now "empty" chars (so i see
terminology bg). this breaks jed output pretty badly.
see...
working:
http://www.enlightenment.org/ss/e-54d05f357a3391.24747752.png
not working:
http://www.enlightenment.org/ss/e-54d05f672a4df7.83729511.png
2015-02-03 14:45:23 +09:00
Boris Faure
e94051dd86
make selection consistent when selecting space with no text. Closes T2013
2015-01-30 00:24:55 +01:00
Boris Faure
87d653ea4d
add xterm 777 notification support. Closes T1765
2015-01-12 23:13:43 +01:00
Boris Faure
bfa9cd30e7
fix shadowed variable
2015-01-11 13:48:05 +01:00
Boris Faure
cd04b71611
check tcsetattr()
2015-01-10 21:02:05 +01:00
Boris Faure
36e5ca2165
"handle" HTS
2015-01-10 21:02:04 +01:00
Boris Faure
da809eb023
"handle" TBC
2015-01-10 21:02:04 +01:00
Carsten Haitzler
0104ce64a9
input methods - display preedit text inside grid - makes it work on wayland
...
@fix - this makes preedit text while composiing display within
terminology like elm entry and edje entry do. no overlayed preedit
window/box. this means that the pre-display has to be done by
terminology, which this does, but it means wayland now can display
preedit strings in terminology like in elm/edje entries too.
2015-01-07 22:35:49 +09:00
Boris Faure
6c398abf3a
cleanup
2014-12-21 18:20:57 +01:00