Commit Graph

599 Commits

Author SHA1 Message Date
Boris Faure 612400507f add termio_win_get(); 2013-06-09 12:03:51 +02:00
Boris Faure f5cad4ff7f compat: only clear cells when scrolling to add text
and to delete lines, but not when just moving the cursor
2013-06-09 12:03:51 +02:00
Boris Faure c41fb7f0b1 compat: add some csi dec private modes TODOs 2013-06-09 12:03:51 +02:00
Boris Faure 861bcf04a9 handle DCS status string requests 2013-06-09 12:03:51 +02:00
Jean-Philippe Andre 34c7586ff5 Enhance link copy UX
Now right-click on a link will allow you to copy said link
Keep link hilight active when control popup is on
And discard when control menu goes away...
2013-06-09 11:57:31 +02:00
Boris Faure ce9220ef35 fix termio_selection_get() on backscroll
Add a newline if trying to select after the end of line
2013-06-06 23:02:32 +02:00
Boris Faure 1f069a2fbe cleanup and fix _termio_link_find(); 2013-06-06 23:02:32 +02:00
Boris Faure 0c1739cd28 selection: fix multiline backscroll selection
If the 2nd selected line has a width of 4 but the cursor was at pos 6 on
the 1st line, this line would get lost.
2013-06-04 23:10:58 +02:00
Boris Faure ba9467d780 termiolink: minor optimization 2013-06-04 23:08:05 +02:00
Boris Faure 21cd9d5cec fix link detection when hover the h in ttp:/…
When the separator in the left is found, we may only have ' ht' so far.
2013-06-02 18:52:28 +02:00
Carsten Haitzler 64f4ece250 simplify code to make separators in single func. 2013-05-24 16:00:46 +09:00
Boris Faure 8e576f3978 reflow: do not add a newline when consolidation backscroll 2013-05-23 23:04:33 +02:00
Boris Faure e8499b46aa fix reflow on horizonal expansion 2013-05-23 22:34:14 +02:00
Boris Faure 17a70c5ba2 fix detecting link on last char of a backscroll line 2013-05-21 21:47:22 +02:00
Boris Faure 034d4cf9de termio_selection_get() set length of the string returned
Also fix possible segfault in _termio_link_find().
2013-05-21 21:45:34 +02:00
Boris Faure 3d804bf38d tycat: fix videos aspect ratio when emotion_object_video_handled_get() fails
Sometimes, emotion_object_video_handled_get() will return NULL. In that case, the video will be stretched to the terminal's width but only 3 lines high. Use A/R information for better scaling.
Also support videos and fix aspect ratio.

Patch by jpeg.
2013-05-20 16:16:21 +02:00
Boris Faure 4f6aed0488 tycat: Add -g option to limit the size of the images
Patch by jpeg
2013-05-20 16:08:00 +02:00
Boris Faure 18e97fa840 termio: return NULL when selection is empty
This fixes issues with link detection in backscroll.
2013-05-20 15:57:20 +02:00
Boris Faure cec34b56e8 fix 1st alloc with _alloc_new
Since al->last was not set correctly, the 1st allocated buffer of each
block were given twice.
2013-05-18 22:28:05 +02:00
Boris Faure 73ad810c31 Fix -g (X geometry) option
Position was not taken into account.

Patch by jpeg.
2013-05-14 19:21:26 +02:00
Carsten Haitzler 12aebb559b add ethumb queue if ethumd not there since ethumb doesnt queue for us. 2013-05-12 12:16:09 +09:00
Carsten Haitzler b5a0abc3a7 shorten labels for options so options fit in default term size. 2013-05-11 00:04:29 +09:00
Carsten Haitzler 2ab6290839 Terminology: fix tab hotkey with UIM-XIM
Tab switch hotkeys are broken when using UIM-XIM.
Ctrl-1 displays "1" and doesn't switch tab as the control code is
supposedly handled by the IMF (even if it is not by configuration).

Note: not sure what the behaviour should be if UIM is configured to
catch Ctrl-1 sequences?

Setup UIM-XIM if possible.
Export ECORE_IMF_MODULE=xim.
Open terminology, create tab, press Ctrl-1. Should switch tab and not
display "1".
2013-05-08 12:30:37 +09:00
Carsten Haitzler c2535d52b6 Revert "move ctrl+0,1,2... before imf processing so it works with imf on."
This reverts commit dd23ed64be.
2013-05-08 12:26:05 +09:00
Carsten Haitzler dd23ed64be move ctrl+0,1,2... before imf processing so it works with imf on. 2013-05-08 12:23:33 +09:00
Carsten Haitzler 229b92f72f ctrl+0,1,2,3...9 for tab switching. 2013-05-07 14:51:02 +09:00
Carsten Haitzler 5549fc05a0 add compressed backscroll to terminology...
we get about 0.35-0.4 or so ratio of compression. it also now
defragments memory used for backscroll and holed it in mmaped blocks
so when the blocks go all memory goes used for backscroll.
2013-05-05 23:10:44 +09:00
Carsten Haitzler d81de278d0 warn--... 2013-05-05 12:34:07 +09:00
Carsten Haitzler 3fc3ce4c79 add whitepsace debug mode and termsave abstraction infra. 2013-05-04 11:45:45 +09:00
Daniel Juyung Seo 043bbe70b9 config.c: set the default value of tab zoom animation time to 0.5 if the value equals 0. 2013-05-03 22:23:45 +09:00
Daniel Juyung Seo 742c4a71af Revert "config.c: bump up the CONF_VER to 2 because I just added a new configuration for tab_zoom."
I will fix this in a correct way.

This reverts commit 19491ac0bb.
2013-05-03 22:08:02 +09:00
Daniel Juyung Seo 19491ac0bb config.c: bump up the CONF_VER to 2 because I just added a new configuration for tab_zoom. 2013-05-03 21:40:03 +09:00
Daniel Juyung Seo ee735ae32c config tab_zoom: make the tab zoom animation time configurable.
I prefer faster zoom for tab. Now you can configure the animation time from options -> behavior settings.
2013-05-03 20:51:55 +09:00
Daniel Juyung Seo a927ace445 options_behavior.c: removed unnecessary variable. 2013-05-03 20:51:55 +09:00
Carsten Haitzler 854dd69c31 clean some formatting. 2013-05-03 19:53:41 +09:00
Boris Faure b6d2b1b4ad revert a bunch of commits that weren't ready for prime time
664c5a23: Revert "compat: csi parameters are always decimal"
3694c88c: Revert "compat: handle cursor-controls chars in ESC sequences"
16e143f9: Revert "compat: add margin top support on Origin mode"
4daccf1f: Revert "compat: add ugly testing code to change between 80/132 cols"
d5be8a64: Revert "add termio_win_get();"
cff21ea5: Revert "compat: only clear cells when scrolling to add text"
13a11e5a: Revert "compat: add some csi dec private modes TODOs"
65f07f77: Revert "handle DCS status string requests"
2013-05-02 10:33:39 +02:00
Daniel Juyung Seo 33b1854eae main.c: display the current tab number. 2013-05-01 15:49:57 +09:00
Boris Faure 7a92b145e5 fix issue when buffer cuts last unicode 2013-04-28 22:47:14 +02:00
Boris Faure fa1817bbd4 remove dbg 2013-04-28 21:23:46 +02:00
Boris Faure 664c5a2392 compat: csi parameters are always decimal
There can be some leading zeros.
2013-04-28 17:35:48 +02:00
Boris Faure 3694c88ccb compat: handle cursor-controls chars in ESC sequences 2013-04-27 21:17:14 +02:00
Boris Faure 16e143f970 compat: add margin top support on Origin mode 2013-04-22 22:38:56 +02:00
Boris Faure 4daccf1fe4 compat: add ugly testing code to change between 80/132 cols 2013-04-22 22:28:50 +02:00
Boris Faure d5be8a6483 add termio_win_get(); 2013-04-21 23:07:14 +02:00
Boris Faure cff21ea5b8 compat: only clear cells when scrolling to add text
and to delete lines, but not when just moving the cursor
2013-04-21 21:51:07 +02:00
Boris Faure 13a11e5a92 compat: add some csi dec private modes TODOs 2013-04-21 21:51:07 +02:00
Boris Faure 65f07f7700 handle DCS status string requests 2013-04-21 21:51:07 +02:00
Boris Faure 59ad20f6f8 improve device attributes queries 2013-04-21 21:51:07 +02:00
Carsten Haitzler bf3e2ab5c0 comment-- 2013-04-22 01:11:50 +09:00
Carsten Haitzler a6abe0919a complete message send-back to term pty. 2013-04-22 01:11:08 +09:00
Carsten Haitzler 377511d7f8 more work on inlined edje objects - allow multiple chid's to be active
to feed back multiple signals/events from differentinline objects.
2013-04-22 00:37:11 +09:00
Boris Faure 07f4b23b16 reflow: fix segv sometimes when vertically shrinking 2013-04-20 17:38:31 +02:00
Carsten Haitzler 3c5eb88047 fix up param parser for edje inlines 2013-04-20 22:41:10 +09:00
Carsten Haitzler f5b84edbfd more work ok direct edje inline content. u can send messages toit now
on init... and get signals... and drag events... but cant get messages
yet.
2013-04-20 16:54:11 +09:00
Carsten Haitzler bbdf50fd62 protect against segv. see comments. 2013-04-20 12:50:31 +09:00
Carsten Haitzler ef00ad2010 1. make notes of crash in term resizing.
2. fix memset to use term cell filler that handles block refs.
2013-04-20 12:07:13 +09:00
Carsten Haitzler 3aa98cd6f6 allow for raw edje files to be inlined ANd to set tet, emit signals to
them etc.
2013-04-20 10:37:05 +09:00
Carsten Haitzler 1f1fcf2dd2 escape filenames for terminology helpers. 2013-04-19 00:19:21 +09:00
Carsten Haitzler ea2c4bc670 remove -l opt in summary. 2013-04-19 00:02:28 +09:00
Carsten Haitzler 4dd17b80aa alt + 1,2,3,...8,9,0 switch TO terminal tab # 1, 2, ... 8, 9, 10 2013-04-18 23:56:12 +09:00
Boris Faure 56c13a1bb3 one less tab… 2013-04-17 22:02:50 +02:00
Godfath3r 174368be27 add geometry as a config parameter
We can now save custom geometry for terminology to start.
2013-04-17 22:02:14 +02:00
Carsten Haitzler b949583c34 glue in beep flag on sel creation if you missed a beep in a hidden tab. 2013-04-17 12:50:19 +09:00
Carsten Haitzler d201252033 track if a bell was missed in a background tab and display a "missed"
count and emit a signal to indicate you missed something. right now
you dont know which though has the missed bell. thats another stage -
pass missed flag to sel and display it in the theme.
2013-04-17 00:35:44 +09:00
Carsten Haitzler 6ad334c864 zero out fmt bits for dbl width chars for spare cell. 2013-04-15 23:54:47 +09:00
Carsten Haitzler ea2956b28f cover delayed delete being for already deleted panel from other window. 2013-04-15 23:54:47 +09:00
Carsten Haitzler fc60732d64 use cwd of term when creating new ones with splits and tabs. 2013-04-15 23:54:47 +09:00
Carsten Haitzler f005e70d4a fix selection loss handling with multiple wins in 1 process. 2013-04-15 23:54:47 +09:00
Carsten Haitzler 86b0d64c54 fix focus restoration when creating new tabs or splits by allowing cb
to restore it.
2013-04-15 13:33:23 +09:00
Boris Faure 0c47c4ba4d reflow: fix horizontal shrinking 2013-04-12 22:13:17 +02:00
Boris Faure 274e2b13b2 reflow: fix vertical shrinking 2013-04-12 22:13:17 +02:00
Boris Faure ce65369d57 reflow: fix displaying history on vertical expansion 2013-04-12 22:13:17 +02:00
Boris Faure b749acfc3c reflow: use termpty_cell_copy() instead of memcpy()
Also get rid of _termpty_text_copy().
2013-04-12 22:13:17 +02:00
Boris Faure ea60fdf9a4 reflow: fix setting cursor position on vertical shrink 2013-04-12 22:13:17 +02:00
Boris Faure 66e8493154 reflow: skip last empty lines when vertically shrinking 2013-04-12 22:13:17 +02:00
Boris Faure a7858ecc2e reflow: display content from backlog when vertically expanding 2013-04-12 22:13:17 +02:00
Boris Faure fc7dcbdad6 reflow: don't let resize to 1x1
this occurs on terminolog start. dunno why ftm but it annoys me
2013-04-12 22:13:17 +02:00
Boris Faure 57032d607e reflow: do not shrink unused lines 2013-04-12 22:13:17 +02:00
Boris Faure 9c9a05e958 reflow: do not always reset circular_offset on resize 2013-04-12 22:13:16 +02:00
Boris Faure df08549f84 reflow: horizontally shrink the screen buffer 2013-04-12 22:13:16 +02:00
Boris Faure 74aa62f13c reflow: horizontally shrink backlog 2013-04-12 22:13:16 +02:00
Boris Faure d90396a803 reflow: define OLD_SCREEN() on a higher level 2013-04-12 22:13:16 +02:00
Boris Faure f810600875 reflow: move cursor line when horizontally expanding 2013-04-12 22:13:16 +02:00
Boris Faure 25928a31b4 reflow: shrink vertically in place if needed 2013-04-12 22:13:16 +02:00
Boris Faure 55d2d0e483 reflow: dummy vertical shrink 2013-04-12 22:13:16 +02:00
Boris Faure 0556318761 reflow: change _text_save_top() termpty_text_save_top()
also change prototype
2013-04-12 22:13:16 +02:00
Boris Faure b605913b1d reflow: fix backscroll expansion when full 2013-04-12 22:13:16 +02:00
Boris Faure 18c8aff57c reflow: add vertically expansion support 2013-04-12 22:13:16 +02:00
Boris Faure 591529c05f reflow: WIP: vertical expansion 2013-04-12 22:13:16 +02:00
Boris Faure 852400f039 reflow: correctly set line length when pushing to backscroll 2013-04-12 22:13:16 +02:00
Boris Faure 050892a04c reflow: remove empty lines due to screen expansion 2013-04-12 22:13:16 +02:00
Boris Faure 04cfd43af4 reflow: rewrap correctly between backscroll and screen
Refs: #1184
2013-04-12 22:13:16 +02:00
Boris Faure ee9e6af8c0 reflow: add backscroll expanding
Refs: #1184
2013-04-12 22:13:16 +02:00
Boris Faure 8208428e89 reflow: expand screen
Refs: #1184
2013-04-12 22:13:16 +02:00
Boris Faure 9511fe6f01 fix mouse interactions using urxvt style (in mc)
Bug easily fixed with the help of ptyproxy :)
2013-04-08 18:26:58 +02:00
Boris Faure 8e9443a58c fix clearing screen till the end 2013-04-08 18:26:58 +02:00
Carsten Haitzler f0670d0c8a this should fix a seg on exit. 2013-04-08 10:52:10 +09:00
Carsten Haitzler 87d585bd07 show overlay with number of open tabs - keep it faded out until you
mouseover. click to bring up tab switcher. mouse controls on tab
switcher work now... click to select. up & down arrow work too...
2013-04-06 23:30:45 +09:00
Carsten Haitzler 5444820f19 fix up artiifacts in tab selector zoom.
fix up video./audio restart in sel by not duplicating (instead add 1 edje obj
level in between and include bg with term. may affect other themes).
2013-04-06 14:02:05 +09:00
Stefan Schmidt fc04ce9b4d tyls: Don't print -l option as it is not implemented.
A bit confusing to show it but then do nothing like what it suggests.
Can come back once we have it implemented.
2013-03-28 15:01:50 +00:00
Carsten Haitzler 4caebb56b7 fix some media handling of mp3's and music files with tyls+thumb links. 2013-03-28 20:14:56 +09:00
Carsten Haitzler f477acf0cf warn-- 2013-03-25 16:12:05 +09:00
Carsten Haitzler fa4ebb5b2f icons for buttons, theme overlay (for now) and some theme polishing
for terminology sel
2013-03-24 19:56:01 +09:00
Carsten Haitzler 72e813bf2a fix segv happiness in term tab sel. 2013-03-23 15:50:16 +09:00
Godfath3r 28071e731e fix boxsel misbehaviour when pasting with middle click.
When in terminology, user selects some text with boxselection (shift +
click/drag) and pastes in the same window with middle click.
The box selection then transforms into normal. Now it's fixed.
2013-03-22 20:37:04 +01:00
Sebastian Dransfeld 74e62b2d32 Only search for theme once
Efreet uses one cache file for one theme. So by cycling themes we blow
the cache, and thus slowing things down considerably. We should find one
theme, and then stick with it.
2013-03-20 12:22:27 +01:00
Sebastian Dransfeld 4aa421fe24 Include <Efreet.h> directly 2013-03-20 12:22:27 +01:00
Carsten Haitzler 64196937ab some cleaning up of pending things.. so we can do a terminology 0.3
:)
2013-03-20 19:00:05 +09:00
Carsten Haitzler edd37bbae7 track term titles properly and put them in tab sel views. done for the
moment.
2013-03-20 13:47:56 +09:00
Carsten Haitzler 29dd7608c2 improve tab sel look to have its own. 2013-03-20 12:55:15 +09:00
Carsten Haitzler 1880987f63 fix tab switching to zoom FROM current TO next/prev slot properly when
just next/prev switching.
2013-03-20 09:04:05 +09:00
Sebastian Dransfeld 21abbe6db8 terminology: guard for evas 1.8 features 2013-03-19 20:20:22 +01:00
Carsten Haitzler e60db60b12 guess what the cat dragged in... "tabs" in terminology. just a
selector right now that u call up from keybindings. if u switch terms
it kicks in with some visuals too. theme stuff is currently not
done/ready at all. just recycling terminolgy bg edje atm. havent done
anything to:

1. track "window titles" per term and put into tab term previews
2. make preview look decent (some shadowing and spacing between terms
etc.)
3. track/display things like bell alerts

still need to have a way to suspend/unsuspend invisible terms so media
stuff pauses in playback etc. etc.
2013-03-19 19:49:47 +09:00
Carsten Haitzler 53fcba486a sync term list sizes on resize 2013-03-18 09:36:58 +09:00
Boris Faure 193d308093 clear text with codepoint 0 instead of space 2013-03-17 21:39:14 +01:00
Carsten Haitzler 3a436ac0fe printf-- 2013-03-17 23:54:08 +09:00
Carsten Haitzler eca8593193 infra for multiple terms per split slot. 2013-03-17 23:52:13 +09:00
Carsten Haitzler 7d90f43fff restore terminology escapes. 2013-03-14 20:27:36 +09:00
Jean-Philippe Andre ffd8f82a52 Fix last commit
Invalid buffer size
2013-03-14 12:14:34 +09:00
Jean-Philippe Andre 3223e32949 Fix crashes in escape sequence parsings
Crashes happen when using cat against binary files (png, mp4, ...)

Buffer overflow in _handle_esc_dcs()
Suspected overflow in _handle_esc_terminology()
Invalid return value in _handle_esc_terminology()
Don't write "ABC\r\n" on ENQ symbol
Silence some errors
2013-03-14 12:14:34 +09:00
Daniel Juyung Seo e34ac90739 tyls.c: removed unused variables. 2013-03-12 02:00:30 +09:00
Daniel Juyung Seo 150799348a termio.c: check elm rather than ecore for the drag and drop.
1. This includes ecore check as well.
2. Check the version more properly.
2013-03-12 01:50:06 +09:00
Carsten Haitzler 58597e51e7 fix tyls -m 2013-03-11 20:53:43 +09:00
Carsten Haitzler de8141dec6 tyls now uses standard icons names for normal files (not starting with
/) so u see icons for files as well as thumbnails for videos, images,
svg's etc...

and now when u clikc on the icon... u launch it (folders launch in
efm... other file types open via the standard tools like with efm/e
etc. and highlighted links)
2013-03-11 20:44:27 +09:00
Carsten Haitzler 735d93fbc4 1. add the ability to have a link AND image path in inline images and
thumbs (allows for different thumbnail compared to what it links to).
2. fix if media obj is deleted on its own (stop button).
2013-03-11 16:56:07 +09:00
Boris Faure 01bf2409bd fix segfault
when there is no cell, do not try to do stuff based on it.
2013-03-10 19:08:30 +01:00
Carsten Haitzler 6be6249ccd oops forgot a printf removal. 2013-03-09 00:16:11 +09:00
Carsten Haitzler 2217166f40 make terminology handle multiple uri dnd of files and display in a
slideshow queue. :)
2013-03-09 00:13:32 +09:00
Daniel Juyung Seo 8a3f6335ff terminology main.c: use macros for panes content parts and make code cleaner.
SVN revision: 84332
2013-02-24 06:53:29 +00:00
Carsten Haitzler bc4014a2ba adapt to dnd changes.
SVN revision: 84297
2013-02-22 08:49:21 +00:00
Carsten Haitzler 7397aced7e u can dnd stuff TO terminology.. and it pastest in as text.. file
lists from efm, text from editors/browsers...

u can dnd links (file uril links terminology recognizes) TO other apps
or terminals... beware it uses a button. it's a bit ugly atm. need to
un-uglify.

both these need efl 1.8



SVN revision: 84283
2013-02-21 13:23:48 +00:00
Carsten Haitzler 3756f251b7 more extns known in tyls.
SVN revision: 84071
2013-02-19 00:46:56 +00:00
Carsten Haitzler 2ebc8c42c6 stop jumping! zoom gestures are being called now.. :/
SVN revision: 84066
2013-02-18 16:07:30 +00:00
Carsten Haitzler 437ac7ba0b clock on thumbs opens popmedia. :)
SVN revision: 84065
2013-02-18 15:31:54 +00:00
Boris Faure 54837f4d7d fix split with elm 1.7. Thanks to Godfath3r.
SVN revision: 84026
2013-02-17 16:55:42 +00:00
Boris Faure 081f27552b fix clearing lines with circular buffer.
Fixes #2263.

SVN revision: 84004
2013-02-16 18:16:25 +00:00
Boris Faure 48276b7cf4 box selection on alt/ctrl/shift
SVN revision: 83999
2013-02-16 14:44:45 +00:00
Carsten Haitzler 0ed5a96d9d quick - forgot exec checks.
SVN revision: 83934
2013-02-15 05:08:11 +00:00
Boris Faure 5cfede02a6 add box selection by pressing shift while selecting text.
Patch from Panagiotis Galatsanos aka Godfath3r.

SVN revision: 83926
2013-02-14 21:44:16 +00:00
Carsten Haitzler af064b227a extn info repeated and.. missing.
SVN revision: 83897
2013-02-14 15:53:55 +00:00
Carsten Haitzler 104e1b51cb make tyls more.. colorful. :)
SVN revision: 83896
2013-02-14 15:53:29 +00:00
Daniel Juyung Seo 84047693f8 terminology main.c: set the focus to the new split terminal.
SVN revision: 83836
2013-02-12 04:32:36 +00:00
Carsten Haitzler c0dcca4c2d no sleep on nul bytes - seems as if term hangs.. when its just slow...
SVN revision: 83705
2013-02-07 06:48:03 +00:00
Carsten Haitzler 19ee5d50b1 fix spinning - blinking curaor from cmdbox entry.... only create when
needed and delete when not. :)



SVN revision: 83613
2013-02-04 21:12:41 +00:00
Carsten Haitzler 1af758d9c1 fix tyls -m
SVN revision: 83569
2013-02-02 07:39:47 +00:00
Carsten Haitzler f32952ce49 redundant set to 0.
SVN revision: 83568
2013-02-02 07:39:29 +00:00
Carsten Haitzler 156b168979 inline thumb mode uses ethumb now... :)
SVN revision: 83566
2013-02-01 14:10:51 +00:00
Carsten Haitzler 800383bb0b oops - slowness with link finding test case. fixed. now screaming
fast again :)



SVN revision: 83500
2013-01-31 05:23:25 +00:00
Mike McCormack 83d1371953 terminology: Fix warning
Signed-off-by: Mike McCormack <mike@atratus.org>

SVN revision: 83499
2013-01-31 03:31:03 +00:00
Boris Faure 684c7499ad load about from theme if possible
SVN revision: 83494
2013-01-30 23:09:47 +00:00