29 Commits

Author SHA1 Message Date
Kovid Goyal
e71c432b7c
... 2018-08-06 20:13:16 +05:30
Kovid Goyal
b6a5d09d4f
Allow enabling remote control in only some kitty windows 2018-08-06 20:04:12 +05:30
Kovid Goyal
eb2ec1833c
Use a pipe rather than a signal to wait for terminal ready
Simpler code, more robust since there is no longer a race between the
installation of the signal handler and the dispatch of the signal
2018-08-04 20:24:06 +05:30
Kovid Goyal
72e2307c16
Code to get the env vars of a process 2018-07-24 11:27:10 +05:30
Kovid Goyal
0dd3334811
Implement getting cmdline of process on macOS as well 2018-07-24 11:07:53 +05:30
Kovid Goyal
9918397190
Add an option :opt:env to set environment variables in child processes from kitty.conf 2018-07-15 12:16:43 +05:30
Kovid Goyal
d689c21283
Fix pasting large amounts of text very slow.
Fixes #682

Apparently when refactoring child.py I somehow lost the code to make the
child fd non-blocking.
2018-06-26 18:20:46 +05:30
Kovid Goyal
a1355484a6
Use the process name as the default window title rather than "kitty"
Fixes #610
2018-06-07 23:23:10 +05:30
Kovid Goyal
8db838da9f
macOS: Fix shell not starting in login mode on some computers. Fixes #247 2018-03-05 13:30:09 +05:30
Kovid Goyal
c6d10c6a23
Use the launch time argv for cmdline on macOS 2018-01-08 13:07:06 +05:30
Kovid Goyal
0cea6d5a1b
Implement window listing 2018-01-08 12:48:15 +05:30
Kovid Goyal
239eb8202b
Move fork()+exec() of child processes into C
By avoiding python in the child process before exec we ensure that
malloc and other unsafe to use after fork functions are not used.
Should also mean that less pages will need to be copied into thec hild
process, leading to marginally faster startups.
2018-01-04 23:19:09 +05:30
Kovid Goyal
1ebf0b95c4
Implement reading of cwd of a process on macOS as well 2017-12-21 12:30:34 +05:30
Kovid Goyal
c5acd94456
Add new actions to open tabs/windows with the working directory set to the working directory of the current window
Fixes #237
2017-12-21 11:29:21 +05:30
Kovid Goyal
51ac78f74d
X11: Set the WINDOWID environment variable
Fixes #232
2017-12-16 08:57:52 +05:30
Kovid Goyal
1a42356f68
Forgot to close stdin_read_fd in the master process 2017-09-15 10:45:14 +05:30
Kovid Goyal
1197549e5b
Remove the last use of the python threading module 2017-09-15 10:45:14 +05:30
Kovid Goyal
4d31624a69
Better handling of failure to execute child
exec() a shell instead so that we are not left with a forked but not
execed process
2017-09-15 10:45:13 +05:30
Kovid Goyal
af02b735e7
Move child process management into child-monitor.c 2017-09-15 10:45:13 +05:30
Kovid Goyal
52ab534e22
Move setting of IUTF8 into child-monitor.c 2017-09-15 10:45:12 +05:30
Kovid Goyal
5972a37550
Work on centralising lifecycle management in the child monitor 2017-09-15 10:45:12 +05:30
Kovid Goyal
234bb07b67
Initial attempt at moving all threading code into a single file 2017-09-15 10:45:10 +05:30
Kovid Goyal
29988c94fa Fix #70 2017-04-28 09:21:40 +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
4b28cc755e closerange() in child works on OS X also 2017-01-12 01:07:26 +05:30
Kovid Goyal
18a1a61ec2 Dont use closerange() on OS X
The original motivation for this was OpenGL problems caused by the glfw
library on linux because of inherited file descriptors. Dont know if
that applies on OS X.
2017-01-11 15:39:10 +05:30
Kovid Goyal
9a7b23fd23 Implement viewing of the scrollback buffer in a separate window 2016-12-10 12:59:20 +05:30
Kovid Goyal
26c7297de6 Handle envvars and ~ in session cwd directives 2016-12-06 11:26:01 +05:30
Kovid Goyal
40d2b59787 Do not use a global variable to store child data 2016-11-21 10:21:17 +05:30