teditor
1.8.0@@fee5e94
Terminal based editor written in C++
|
Go to the documentation of this file.
3 #include "../base/readonly.h"
21 static bool modeCheck(
const std::string& file) {
return file ==
"*watch"; }
23 void start(
Buffer* buf,
const std::string& cmd,
31 struct Keys {
static std::vector<KeyCmdPair> All; };
32 struct Colors {
static std::vector<NameColorPair> All; };
36 int defaultSleepMilliSec;
38 std::atomic<bool> alreadyRunning;
39 std::shared_ptr<std::thread> runner;
Strings cmdNames() const
Definition: extensions/watch/mode.cpp:17
Definition: extensions/watch/mode.h:13
std::vector< std::string > Strings
Definition: utils.h:42
static bool modeCheck(const std::string &file)
Definition: extensions/watch/mode.h:21
void restart()
Definition: extensions/watch/mode.h:26
void start(Buffer *buf, const std::string &cmd, int sleepLenMs=0)
Definition: extensions/watch/mode.cpp:35
Definition: core/mode.h:27
~WatchMode()
Definition: extensions/watch/mode.h:16
int sleepTimeMs() const
Definition: extensions/watch/mode.h:28
void stop()
Definition: extensions/watch/mode.cpp:44
static Mode * create()
Definition: extensions/watch/mode.h:20
Definition: readonly.h:11
WatchMode()
Definition: extensions/watch/mode.cpp:9