Commit Graph

816 Commits

Author SHA1 Message Date
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 455d3f2147 Fix mild theme for tab switching
Tab switching suffers from painful color changes esp. when using black theme.
Mostly just copy&paste from default.edc and removing some of the shininess.
2013-05-10 16:52:42 +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 a1a3abe525 add arcconifg for terminology. 2013-05-08 12:29:41 +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 cc5b3942fa and add sounds dir to makefiles so we can dist. 2013-05-06 19:13:02 +09:00
Carsten Haitzler 3e0435e4d1 make use of eo audio and multisense in terminology.... bell..
keyboard... muhahahaha!
2013-05-06 19:09:55 +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
Carsten Haitzler dae102610c adjust todo some more. 2013-04-30 11:40:05 +09:00
Carsten Haitzler f90d96e28a update TODO as current status is.. better. 2013-04-30 11:34:43 +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
Godfath3r 5010b5fa0c update man to document alt+num shortcuts 2013-04-28 17:45:06 +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