Pass pid of child process as env var to kittens

This commit is contained in:
Kovid Goyal 2018-07-24 11:28:34 +05:30
parent 72e2307c16
commit 14ea69c9c7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -606,6 +606,7 @@ class Boss:
stdin=data,
env={
'KITTY_COMMON_OPTS': json.dumps(copts),
'KITTY_CHILD_PID': w.child.pid,
'PYTHONWARNINGS': 'ignore',
'OVERLAID_WINDOW_LINES': str(w.screen.lines),
'OVERLAID_WINDOW_COLS': str(w.screen.columns),