The plan9 shell is called rc:
everything is just (UTF-8) text.
the window system and acme allow you to edit whats on the screen. and theres a mechanism called the plumber that lets you execute various action depending on selected text.
see:
http://plan9.bell-labs.com/sys/doc/plumb.html
and