Derek Schrock
3b57acf03c
More cases of #5477 functions with empty argument lists
...
Building on macOS 13.3.1 (22E261) clang 14.0.3 (clang-1403.0.22.14.1)
running to errors like #5477 where functions without argument lists at
least need void.
Looking for possible suspect functions via:
git grep -E "^([A-Za-z_]+ )?[A-Za-z_]+\()" \*.c \*.m
2023-04-16 01:09:36 -04:00
Kovid Goyal
b408abe304
Move compile_commands.json to build directory
2023-01-26 14:25:22 +05:30
Kovid Goyal
5eb2142d70
Use a define rather than a generated file for wrapped kittens
2022-11-26 16:16:45 +05:30
Kovid Goyal
f9a22d0bc7
Port ANSI escape code parser to Go
2022-11-25 21:03:09 +05:30
Kovid Goyal
cfc6bd4da5
Native code implementation for expanding ANSI escape codes
2022-11-25 17:33:41 +05:30
Kovid Goyal
4d3f3b5e91
Start moving clipboard kitten to kitty-tool
2022-11-25 12:58:10 +05:30
Kovid Goyal
e5e8cc72c6
Make the Unicode database version used available
2022-11-17 20:11:50 +05:30
Kovid Goyal
5deed81737
Dont maintain ref_map manually
2022-08-19 11:20:50 +05:30
pagedown
0d116e6ef0
Use four spaces to indent
2022-08-08 22:31:55 +05:30
Kovid Goyal
fd6bc55db6
Start work on implementing public key crypto
...
Will come in handy for various things in the future, so lets just setup
the API now. No new dependencies are needed since Python already depends
on OpenSSL.
2022-08-03 22:37:35 +05:30
Kovid Goyal
de9263a117
Verify uid/gid of connection from a prewarm client
2022-08-01 19:02:58 +05:30
Kovid Goyal
5f13946bac
Allow using our signal handlers in python event loops via an fd
...
pythons signal fd only return signal numbers not the full siginfo struct
2022-06-13 18:52:23 +05:30
Kovid Goyal
4c392426f6
Get shared memory based data transfer working
2022-03-10 10:46:04 +05:30
Kovid Goyal
4528173ff5
Max length for SHM names on Apple is 30!
...
Bloody CrApple
2022-03-10 07:37:57 +05:30
Kovid Goyal
c30a249cf6
Use longer random names for SHM to make double unlink safe
2022-03-10 07:24:39 +05:30
Kovid Goyal
fd0262413e
Access to POSIX shared memory from Python
2022-03-10 06:30:03 +05:30
Kovid Goyal
6b47f6f769
Make adding new underline styles easier in the future
2022-02-04 14:05:19 +05:30
Kovid Goyal
35d4e2d4e0
Clean up previous PR
2021-10-05 11:36:29 +05:30
Matt Fellenz
072e583835
Properly evaluate /etc/issue placeholders
2021-10-04 20:49:48 -07:00
Kovid Goyal
8aacf30f19
Centralize definition of file transfer OSC code
2021-09-08 13:43:59 +05:30
Kovid Goyal
ef76c075e0
Get rid of bits from CellAttrs
2021-08-18 10:06:08 +05:30
Kovid Goyal
780e526143
Use a union for cell attributes
...
Cleaner code, no performance impact
2021-08-18 10:06:08 +05:30
Kovid Goyal
30cb7286db
Fix building on macOS
...
macOS defines newlocale() in xlocale.h
2021-08-05 06:47:45 +05:30
Kovid Goyal
9e7253c179
macOS: Set LANG to en_US if cocoa reports language as en_* that is not a valid locale
...
Fixes #3899
2021-08-05 06:29:21 +05:30
Kovid Goyal
be34af4555
Remove inline from .c files
...
It is ignored by compilers and hides unused static functions
2021-08-03 09:11:17 +05:30
Kovid Goyal
fcd206891f
kitty @ get-text add an option to also get the current cursor position and state as ANSI escape codes
...
Fixes #3625
2021-05-15 09:27:28 +05:30
Kovid Goyal
55dc354e68
Improve at exit cleanup functions
...
Now they are run in a defined order not based on
the order of initialization
2021-04-01 11:48:36 +05:30
Kovid Goyal
0ec7e6c36f
Make the freetype text rendering code re-useable in multiple contexts
2021-04-01 11:28:23 +05:30
Kovid Goyal
cdbc096990
Start work on rendering text for CSDs
2021-03-29 12:15:47 +05:30
Kovid Goyal
2a96d2621c
Use cleanup in a few more places to simplify the code
2021-02-19 18:53:30 +05:30
Kovid Goyal
d55fde9eea
Use EINTR safe wrappers for open() and shm_open()
2021-01-31 07:02:11 +05:30
Kovid Goyal
3162d391cc
Start work on disk cache
2020-12-29 19:16:21 +05:30
Kovid Goyal
dab555ea3b
kittens: Dont discard pending input on startup
...
Fixes #3012
2020-10-06 16:39:00 +05:30
Kovid Goyal
a3bbad0060
Allow specifying the optional actions for tcsetattr
2020-10-06 16:30:23 +05:30
Kovid Goyal
444080f320
Make wcswidth useable in a streaming fashion
2020-09-21 15:55:22 +05:30
Kovid Goyal
f8a80ccf5f
Move the wcswidth functions out of screen.c
...
They have nothing to do with screens
2020-09-17 21:24:52 +05:30
Kovid Goyal
392f576d07
Instrument safe_close() to make it easy to see where an fd is closed from
2020-07-14 20:18:04 +05:30
Luflosi
9cb2c4b1ff
Simplify code
...
There is already a check if `m` is `NULL`, so there is no need for a second `NULL` check after that.
2020-05-22 16:04:28 +02:00
Kovid Goyal
624dd78460
Actually apply mark colors when rendering
2020-01-13 09:51:03 +05:30
Luflosi
527ff0238a
Replace all instances of EnvironmentError with OSError
...
According to the text just above https://docs.python.org/3/library/exceptions.html#EnvironmentError , `EnvironmentError` has been an alias of `OSError` since Python 3.3. Replacing it makes the code more consistent since `OSError` is used in other places in the code too.
2020-01-11 16:47:36 +01:00
Kovid Goyal
7bf0afa621
Fix #2187
2019-12-08 22:37:47 +05:30
Kovid Goyal
f9e4e71285
Slightly better error message when opening controlling terminal fails
2019-10-07 20:48:31 +05:30
Kovid Goyal
97fe38fbbc
monotonic_start_time needs to be a global symbol, not local to each translation unit
2019-09-28 08:18:21 +05:30
Kovid Goyal
2e71dde780
Merge branch 'monotonic_t' of https://github.com/Luflosi/kitty
2019-09-27 19:23:27 +05:30
Luflosi
f3b9ff5f9f
Use datatype monotonic_t instead of double to keep track of time
...
The time is stored in a signed 64 bit integer with nanosecond accuracy. This eliminates the possibility of floating-point inaccuracies.
`monotonic_t` can currently hold values large enough to work correctly for more than 200 years into the future.
Using a typedef instead of directly using `int64_t` everywhere will also allow easily changing the datatype in the future should the need arise for more precise or bigger time values.
2019-09-25 17:43:11 +02:00
Kovid Goyal
38f73b9f5e
Fix #1832
2019-07-23 13:31:09 +05:30
Kovid Goyal
8f8138d9bd
Have monotic() return numbers offset from init time
2019-07-08 10:30:06 +05:30
Kovid Goyal
c848c3ee0d
Use an interrupt-safe close()
2019-07-05 14:39:07 +05:30
Kovid Goyal
4fff84b4b9
Add void to all function declarations for functions that take no arguments
...
Micro-optimization for some architectures. Enforced via
-Wstrict-prototypes
2019-05-13 11:04:21 +05:30
Luflosi
0e2a5c63c6
Convert some tabs to spaces
2019-02-02 22:08:32 +01:00