Plan 9 from Bell Labs’s /usr/web/sources/contrib/rog/sh-examples/wmtst3.sh

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


fn makemenu {
	title=$*
	<>[7] /chan/wmmenu {
		echo -n $title >[1=7]
		getlines <[0=7] {
			echo event $line
		} &
		getlines {
			echo -n $line >[1=7]
		}
		kill $apid
	}
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.