externalpipe

Description

Reading and writing st's screen through a pipe.

Example

config.h example, binding TERMMOD + U to extract all visible URLs and present dmenu to select and open one:

static char *openurlcmd[] = { "/bin/sh", "-c",
	"xurls | dmenu -l 10 -w $WINDOWID | xargs -r open",
	"externalpipe", NULL };
Shortcut shortcuts[] = {
	...
	{ TERMMOD, XK_U, externalpipe, { .v = openurlcmd } },
};

(xurls and open are external scripts)

Example Shell Scripts

Download

When using the scrollback patch, you can apply this patch ontop in order to use externalpipe onto the entire terminal history:

Authors