From acc911ae724d42aaa2fecaa6f9b30651a91ad240 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 2 Nov 2014 20:00:45 +0100 Subject: implemented EC command (execute operating system command) in spawn.cpp powerful command for filtering a SciTECO buffer through an external program. It will be described in the sciteco(7) man pages. The implementation uses an asynchronous background process with pipes but is platform independant thanks to glib's g_spawn functions, GIOChannels and event loops. There are however platform differences in how the operating system command is interpreted/parsed. --- src/parser.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index 17a11b9..bbaad14 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -37,6 +37,7 @@ #include "parser.h" #include "symbols.h" #include "search.h" +#include "spawn.h" #include "cmdline.h" //#define DEBUG @@ -1811,6 +1812,7 @@ StateECommand::StateECommand() : State() { transitions['\0'] = this; transitions['B'] = &States::editfile; + transitions['C'] = &States::executecommand; transitions['M'] = &States::macro_file; transitions['S'] = &States::scintilla_symbols; transitions['Q'] = &States::eqcommand; -- cgit v1.2.3