mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-27 11:21:32 +00:00
parent
0fb54d32b1
commit
cc55c04034
1 changed files with 4 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env python
|
||||
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
|
||||
|
||||
import os
|
||||
import re
|
||||
from binascii import hexlify, unhexlify
|
||||
from collections.abc import Generator
|
||||
|
|
@ -548,6 +549,9 @@ def get_capabilities(query_string: str, opts: 'Options', window_id: int = 0, os_
|
|||
yield result(encoded_query_name)
|
||||
else:
|
||||
yield result(encoded_query_name, rval)
|
||||
elif name in ('query-os-name', 'query-os_name'):
|
||||
# https://github.com/kovidgoyal/kitty/issues/9217
|
||||
yield result(encoded_query_name, os.uname().sysname)
|
||||
else:
|
||||
if name in bool_capabilities:
|
||||
yield result(encoded_query_name, True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue