Commit Graph

660 Commits

Author SHA1 Message Date
Kovid Goyal
0c408fa4af Add an optional "visual" bell
Fix #51
2017-02-11 08:56:40 +05:30
Kovid Goyal
8b8186660b Move bell handling into python 2017-02-11 08:47:42 +05:30
Kovid Goyal
7d2332da21 API to easily invert colors in a window 2017-02-11 08:28:10 +05:30
Kovid Goyal
2b4d0a4ac9 Fix regression that caused scrolling to return to origin when releasing keys 2017-02-10 16:03:20 +05:30
Kovid Goyal
edab1aebaa Allow clients to query if the terminal emulator support styled underlines 2017-02-10 16:00:51 +05:30
Kovid Goyal
d9563e52c8 Reduce size of encoded key event by using base64 encoding 2017-02-10 15:34:06 +05:30
Kovid Goyal
0f8b83755a Implement the extended keyboard protocol 2017-02-10 15:11:07 +05:30
Kovid Goyal
45334d6b35 Recognize extended keyboard mode 2017-02-10 12:13:31 +05:30
Kovid Goyal
48a2a395c4 Spec for extended keyboard protocol 2017-02-10 11:34:38 +05:30
Kovid Goyal
28f0dc1e51 oops 2017-02-10 01:12:07 +05:30
Kovid Goyal
cbe599735c Allow overriding individual configuration options on the command line 2017-02-10 00:48:17 +05:30
Kovid Goyal
e012e9459d pep8 2017-02-10 00:34:53 +05:30
Kovid Goyal
eb71799b42 Allow specifying multiple config files
Can be used to create a "base" profile and then modify only a few
settings in different config files, that are merged when read.
2017-02-10 00:31:00 +05:30
Kovid Goyal
fe3f0932ea pep8 2017-02-10 00:23:35 +05:30
Kovid Goyal
6c6f000229 Implement symbol maps
A config option to use special fonts for specified unicode characters.
Useful for things like Powerline without needing patched fonts.
2017-02-09 21:15:53 +05:30
Kovid Goyal
a4715de5dc Fix tab bar borders not being blanked 2017-02-09 17:34:56 +05:30
Kovid Goyal
cbf0959fbf Fix tab bar not being rendered after first new tab is created 2017-02-09 17:02:02 +05:30
Kovid Goyal
49c81da763 Adjust rescale threshold 2017-02-09 13:38:19 +05:30
Kovid Goyal
7e34807859 Linux: use only advances for calculating cell sizes
There are apparently monospace fonts whose characters are not actually
monospaced when rendered, for example, Liberation Mono. It has
characters that when rendered result in bitmaps wider than the advance.

So we use only the advance as that is what most linux software seems to
do. Fixes #47
2017-02-09 13:36:44 +05:30
Kovid Goyal
e2ac9ec118 Fix building on OS X 2017-02-09 09:18:41 +05:30
Kovid Goyal
c58be6ddf5 A spot of refactoring 2017-02-08 22:24:58 +05:30
Kovid Goyal
dea60cdaf0 Forgot to also catch KeyError 2017-02-08 21:57:39 +05:30
Kovid Goyal
02ef3c6dc8 Linux: Use libfontconfig directly instead of calling fc-match
There are apparently some linux systems out there with versions of
fontconfig that do not understanf the :charset query when passed to
fc-match. See #46
2017-02-08 21:52:10 +05:30
Kovid Goyal
882a4f2ab3 Linux: Add support for .ttc files 2017-02-08 21:07:10 +05:30
Kovid Goyal
85e05a447d Linux: Fallback to using bitmapped fonts for characters that are not present in any scalable fonts on the system
Fixes #46
2017-02-08 11:29:24 +05:30
Kovid Goyal
1ff4e9703a Refactor the fontconfig API
Makes it more flexible and DRYer
2017-02-08 10:10:07 +05:30
Kovid Goyal
68115b50a5 Simplification 2017-02-08 09:45:27 +05:30
Kovid Goyal
9aa1d74f83 Linux: Don't crash when fontconfig is unable to find a font for a character.
Instead render it as a missing glyph
2017-02-08 09:32:15 +05:30
Kovid Goyal
585a01fff6 Start out in normal key mode
Matches behavior of xterm
2017-02-05 16:39:40 +05:30
Kovid Goyal
bb7edb5f8f Implement DECRQM
Also add tests for DECRQM and DECCKM
2017-02-05 16:21:13 +05:30
Kovid Goyal
142c883b0c Implement DECCKM 2017-02-05 15:30:16 +05:30
Kovid Goyal
3911f18fd9 Startup in the home directory when launched by launch services 2017-02-02 15:07:13 +05:30
Kovid Goyal
0427f30c2a Improve rendering of italic fonts in linux
Now rather than down-size characters from italic fonts that do not fit
into the cell width, trim the left and right margins to make them fit,
instead.
2017-01-25 20:30:39 +05:30
Kovid Goyal
b4bf0eb794 Anti-alias the powerline box characters 2017-01-24 11:00:29 +05:30
Kovid Goyal
8e324649b7 Allow setting bold/italic font variants individually 2017-01-24 09:03:04 +05:30
Kovid Goyal
def51f856b Pass all opts to set_font_family
Makes it easier to specialize based on more opts in the future
2017-01-24 08:41:32 +05:30
Kovid Goyal
598c5d313b A better (I hope) cell height calculation on OS X
See #42
2017-01-24 08:01:52 +05:30
Kovid Goyal
9f3d6fe0e9 Fix mouse co-ordinates incorrect on OS X retina
Fixes #43
2017-01-24 07:30:57 +05:30
Kovid Goyal
d8545e5c43 Report the window width and height for TIOCSWINSZ
Matches behavior of xterm
2017-01-23 18:41:41 +05:30
Kovid Goyal
b1b458e912 When extracting URLs recognize URLs inside delimiters 2017-01-21 19:53:33 +05:30
Kovid Goyal
cc14562f2c Forgot the unicode version of APC and PM 2017-01-20 13:40:58 +05:30
Kovid Goyal
0612855c95 Ignore PM and APC control codes 2017-01-20 13:31:05 +05:30
Kovid Goyal
a4b092621e Support the private form of the report cursor position escape code 2017-01-20 12:51:15 +05:30
Kovid Goyal
df5c225b5a Set window icon on linux 2017-01-18 20:52:06 +05:30
Kovid Goyal
59d5a3ad9b Have the layouts calculate the blank rectangles
Fixes occasional flashing at the edges of windows in the Tall layout
2017-01-18 13:55:51 +05:30
Kovid Goyal
a9efe7036c Fix an infinite loop in the UTF-8 decoding code with invalid input 2017-01-18 12:19:29 +05:30
Kovid Goyal
2ed898c142 Merge branch 'master' of https://github.com/iitalics/kittyFork1 2017-01-17 08:22:32 +05:30
iitalics
a215ecde66 Made window size caching and initial dimensions configurable 2017-01-16 19:54:45 -05:00
Kovid Goyal
217cc2f40e More robust blink control based on window focus state 2017-01-14 18:01:14 +05:30
Seb Ospina
4a5c149205 cursor empty fill and no blink when not focused
When several kitty terminals are used, the blink happens in all of them
and the cursor appears filled as if active, it is not intuitive which
terminal is actually expecting user input and which one is not.
Terminals such as xfce4-terminal provide a non-blinking non-filled
cursor to show the user the cursor location while at the same time
showing it is not expecting user input (keyboard is active somewhere
else).
2017-01-14 12:01:05 +00:00