src/modules/ipc.cpp
/**
   * Wrap the output with defined mouse actions
   */
Wrap the output with defined mouse actions
Wrap the output with defined mouse actions
string ipc_module::get_output() {
    string output{module::get_output()};
    for (auto&& action : m_actions) {
      if (!action.second.empty()) {
        m_builder->action(action.first, action.second);
      }
    }
    m_builder->append(output);
    return m_builder->flush();
  }
string ipc_module :: get_output ( ) { string output { module :: get_output ( ) } ; for ( auto && action : m_actions ) { if ( ! action . second . empty ( ) ) { m_builder -> action ( action . first , action . second ) ; } } m_builder -> append ( output ) ; return m_builder -> flush ( ) ; }
Wrap the output with defined mouse actions
Wrap the output with defined mouse actions
// Get the module output early so that // the format prefix/suffix also gets wrapper // with the cmd handlers