dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 7fd789d315205ee04d21e50f932a109514eacd4e
parent f27481f8a1fb1b3d8984d8e0351beabe5b1b1b31
Author: Mark Edgar <medgar123@gmail.com>
Date:   Sun, 15 Dec 2013 21:55:39 +0100

Add send() command.

Diffstat:
dvtm.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/dvtm.c b/dvtm.c @@ -156,6 +156,7 @@ static void paste(const char *args[]); static void quit(const char *args[]); static void redraw(const char *args[]); static void scrollback(const char *args[]); +static void send(const char *args[]); static void setlayout(const char *args[]); static void setmfact(const char *args[]); static void startup(const char *args[]); @@ -927,6 +928,12 @@ scrollback(const char *args[]) { } static void +send(const char *args[]) { + if (sel && args && args[0]) + vt_write(sel->term, args[0], strlen(args[0])); +} + +static void setlayout(const char *args[]) { unsigned int i;