mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
update docs for kitten STDIN
This commit is contained in:
@@ -68,7 +68,12 @@ function, telling kitty what kind of input your kitten would like. For example:
|
|||||||
|
|
||||||
.. code-block:: py
|
.. code-block:: py
|
||||||
|
|
||||||
def handle_result(...):
|
# in main, STDIN is for the kitten process
|
||||||
|
def main(args):
|
||||||
|
return sys.stdin.read()
|
||||||
|
|
||||||
|
# in handle_result, STDIN is for the kitten runner (probably a TTY)
|
||||||
|
def handle_result(args, stdin_data, target_window_id, boss):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
handle_result.type_of_input = 'text'
|
handle_result.type_of_input = 'text'
|
||||||
|
|||||||
Reference in New Issue
Block a user