diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-04-07 21:25:44 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-04-07 23:47:51 +0100 |
| commit | 203a7732f5fafb5f9b7e8564bd3bd4587e168134 (patch) | |
| tree | e136448924786ac638b8ad91304b6cdf6e5eb035 /src/client.hh | |
| parent | 33de42610dc08dd7bfd65f49a70ec68a478dee2d (diff) | |
Add support for querying client environement variables
At connection, a remote client sends all its environement to the
server, which then provides access to client env through
kak_client_env_VAR_NAME variables in the shell.
Diffstat (limited to 'src/client.hh')
| -rw-r--r-- | src/client.hh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client.hh b/src/client.hh index ac191542..56b8504b 100644 --- a/src/client.hh +++ b/src/client.hh @@ -5,6 +5,7 @@ #include "utils.hh" #include "display_buffer.hh" #include "input_handler.hh" +#include "env_vars.hh" namespace Kakoune { @@ -17,7 +18,9 @@ class Client : public SafeCountable public: Client(std::unique_ptr<UserInterface>&& ui, std::unique_ptr<Window>&& window, - SelectionList selections, String name); + SelectionList selections, + EnvVarMap env_vars, + String name); ~Client(); // handle all the keys currently available in the user interface @@ -37,12 +40,16 @@ public: void change_buffer(Buffer& buffer); + const String& get_env_var(const String& name) const; + private: DisplayLine generate_mode_line() const; std::unique_ptr<UserInterface> m_ui; std::unique_ptr<Window> m_window; + EnvVarMap m_env_vars; + InputHandler m_input_handler; DisplayLine m_status_line; |
