Commit Graph

59 Commits

Author SHA1 Message Date
Oliver Mangold d8bbedf883 Made keybindings customizable from config 2019-05-31 10:56:16 +02:00
Danilo Spinella fdd9ed4284 Add support for cross-compiling 2019-05-24 18:49:31 +02:00
Björn Steinbrink 9aaf970fba Revert "Use std::make_unique from c++14 #360"
This reverts commit 8dd8f55088.

The make_unique function in util/memory.hh is not at all like
std::make_unique. The former is just a plain wrapper for the unique_ptr
constructor and makes the resulting unique_ptr take ownership of the
instance identified by the given pointer.

std::make_unique on the otherhand allocates a new instance of a given
type and makes creates a unique_ptr that has ownership of that instance.

So what the patch did was to allocate a char pointer, that did not
point at the string we're interested in, but instead points at the
pointer that points to that string. This means that the string that was
meant to be freed by the unique_ptr upon leaving its scope leaks.

Additionally, the check in open_selection() wasn't adapted to handle
the extra layer of indirection added by this change, so it always
assumed that there was some selection, and tried to open it, completely
breaking mouse usage.
2018-02-12 14:52:01 +01:00
0xcpy 8dd8f55088 Use std::make_unique from c++14 #360 2018-02-05 19:47:28 +01:00
eroen 8c2adbc2c9 Fix order of arguments in tic command
hanetzer in #gentoo-chat on freenode reported errors like this when building
termite-12:

    tic -x termite.terminfo -o /tmp/portage/x11-terms/termite-9999/image//usr/share/terminfo
    tic: Too many file names.  Usage:
        tic [-e names] [-o dir] [-R name] [-v[n]] [-V] [-w[n]] [-1aCDcfGgIKLNrsTtUx] source-file

Moving the input filename to the end of the tic invocation seems to resolve
this for them, but I am unable to reproduce the issue.
2017-07-27 00:49:54 +02:00
kapsh 9c1b4bbb2d Removed unnecessary mkdir 2016-02-11 23:56:19 +03:00
kapsh d80afe171c Default config added to install target 2016-02-11 23:48:41 +03:00
Daniel Micay 67dc8905e5 drop warning triggered by glib/gtk macros 2015-06-22 12:18:46 -04:00
Daniel Micay 7f03ded730 port to vte 0.38.0
VTE is not making any attempt to maintain API stability. The following
changes to the API impacted Termite, despite it avoiding deprecated
functions:

* vte_pty_set_term removed (hopefully without an impact...)
* vte_terminal_get_child_exit_status replaced with new signal parameter
* beep signal -> bell signal
* vte_char_attributes -> VteCharAttributes
* sync suffix added to I/O functions along with some parameter changes
* rgba suffix removed from all color functions
* inner-border attribute replaced with GtkStyleContext padding
* vte_terminal_set_font_from_string removed, use Pango directly
* vte_terminal_is_word_char removed - is_word_char copied to Termite
* vte_terminal_set_word_chars removed - feature dropped
* vte_terminal_set_visible_bell removed - feature dropped

Support for text selection is still not supported upstream. The required
API is tiny and does not expose internal details. Despite the lack of a
compelling reason to leave it out like a backwards compatibility risk,
the patch has been left to rot on the bug tracker.

The vte_terminal_get_user_shell_with_fallback API was also removed,
although it was an internal API and Termite was only using it for
convenience. The functionality has been moved inside Termite.

Closes #187
2014-09-21 19:11:40 -04:00
Simon Gomizelj 524ba450a7 Finally! A man page for the termite config!
Start of something more comprehensive (needs to document theming). See
issue #120.
2014-08-24 13:08:01 -04:00
Evan Purkhiser 6d48b706c3 Make ncurses recognize UTF8 support
Add the U8#1 option to the terminfo file, this is an extended option in
the terminfo specifying support for utf8 line graphics.

This fixes some issues with ncurses not rendering utf8 glpyhs for it's
extended ASCII set when termite supports utf8 just fine.
2013-05-16 03:33:15 -04:00
Simon Gomizelj 224c76ea37 Initial commit of a man page
This finally closes issue #48.

Special thanks to Jakob Wrigley for the first draft.
2013-03-26 02:17:46 -04:00
Daniel Micay 8e4b53dd78 update Makefile dependencies 2013-01-06 19:32:56 -05:00
Daniel Micay 7c6d8ac0e3 fix fallthrough bug 2012-12-13 10:26:26 -05:00
Daniel Micay eb2811c9ff Makefile: fix deps for install target 2012-10-26 23:19:37 -04:00
Daniel Micay df82b38d57 add desktop entry file 2012-10-26 23:16:45 -04:00
Daniel Micay af04d62581 Makefile: build with -DNDEBUG 2012-10-11 10:16:25 -04:00
Daniel Micay 9cd8d5122a get rid of clamp macro to make gcc happy 2012-10-10 23:42:03 -04:00
Daniel Micay a905414491 add util repo as submodule 2012-10-05 10:57:49 -04:00
Daniel Micay aadd8008b2 Makefile: update dependencies 2012-10-04 15:36:52 -04:00
Daniel Micay 8f3c75b987 Makefile: update deps 2012-09-21 16:45:25 -04:00
Daniel Micay a45f822139 no longer need termite.vim 2012-09-10 16:05:10 -04:00
Daniel Micay 527115b87b no longer need to silence clang macro warning 2012-08-27 01:40:27 -04:00
Daniel Micay 2a7c36d9ac set _POSIX_C_SOURCE in the Makefile, not the code 2012-08-27 01:23:36 -04:00
Daniel Micay fbfe4dae40 Makefile: url_regex.h dep 2012-08-16 05:04:47 -04:00
Daniel Micay 3eddcf2ac5 silence spurious clang warning 2012-08-14 20:33:58 -04:00
Daniel Micay ba92b480fd Makefile: use LDLIBS 2012-08-14 20:16:24 -04:00
Daniel Micay 0e7d8c4ce0 use the correct file extension 2012-07-20 10:35:45 -04:00
Daniel Micay cbfc6264f1 fix the url madness once and for all 2012-07-20 10:34:36 -04:00
Daniel Micay 6d4f833f03 clamp cursor_row between first/last rows 2012-07-09 19:29:22 -04:00
Daniel Micay 97c4c2749c Makefile: minor cleanup for install target 2012-07-08 03:56:43 -04:00
Daniel Micay 70b88f7866 Makefile: cleanup 2012-06-27 01:36:39 -04:00
Daniel Micay 4944f231f7 add termite.vim to work around hardcoding in vim 2012-06-27 00:39:17 -04:00
Daniel Micay a1d588981d Makefile: create directory for terminfo file 2012-06-25 15:43:32 -04:00
Daniel Micay d92778fd62 use termite as TERM again to allow for some fixes 2012-06-25 00:43:48 -04:00
Simon Gomizelj 422dae672c Add --version/-v flag 2012-06-19 18:55:02 -04:00
Daniel Micay 2df06c31a0 get rid of config.h 2012-06-08 16:16:41 -04:00
Daniel Micay ca96b678f3 fix write-strings warning 2012-06-08 16:01:36 -04:00
Daniel Micay 0a258ecf9d Makefile: use a consistent style 2012-06-08 12:46:58 -04:00
Simon Gomizelj b14d92f70b Let CFLAGS and LDFLAGS be amended.
Also adds clean.
2012-06-08 12:14:26 -04:00
Daniel Micay 834263a7e2 turn off stupid clang warning 2012-06-07 21:50:44 -04:00
Daniel Micay 00b1b26b59 rm unused macro (CONCAT2) 2012-06-07 16:43:35 -04:00
Daniel Micay 85eafbf950 use -Wc++-compat and fix the warnings
this makes termite compilable as C++, and as a bonus turns on stricter
type checking
2012-06-02 06:13:59 -04:00
Daniel Micay 78c9bafd15 more nice warnings 2012-06-01 08:29:18 -04:00
Daniel Micay e1960f0892 add -Wconversion 2012-06-01 05:42:05 -04:00
Daniel Micay 9b9be657bf drop gtk2 support 2012-06-01 04:15:49 -04:00
Daniel Micay 160fea50bf switch to a version check in termite.c 2012-05-31 05:04:57 -04:00
Simon Gomizelj b43ad9154f However it breaks transparency for gtk2. 2012-05-31 03:50:40 -04:00
Daniel Micay ddaf3cdfe6 remove leftover lines from terminfo 2012-05-27 19:43:53 -04:00
Daniel Micay 5c307b1184 vte-256color terminfo works well 2012-05-25 10:18:50 -04:00