blob: 96fd54b45b9f9436a50bed2a6549d4334565d259 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""A userscript to check if the stdin gets closed."""
import sys
import os
sys.stdin.read()
with open(os.environ['QUTE_FIFO'], 'wb') as fifo:
fifo.write(b':message-info "stdin closed"\n')
|