1#!/usr/bin/env -S porch -f 2-- 3-- Copyright (c) 2024 Kyle Evans <kevans@FreeBSD.org> 4-- 5-- SPDX-License-Identifier: BSD-2-Clause 6-- 7 8timeout(3) 9 10local TTYINQ_DATASIZE = 128 11local scream = string.rep("A", TTYINQ_DATASIZE - 1) 12 13spawn("cat") 14 15-- Fill up a whole block with screaming + VEOF 16write(scream .. "^D") 17match(scream .. "$") 18 19scream = scream .. "A" 20 21-- Now fill up the next block, but spill the VEOF over to a third block. 22write(scream .. "^D") 23match(scream .. "$") 24