diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-04-12 10:39:17 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-04-12 10:39:17 +0100 |
| commit | 91bfd714e4be3484e04eaadc5bbe630861fff652 (patch) | |
| tree | d8b2eb554c7feaf44545d650351480b468f4886d /src/input_handler.hh | |
| parent | 80dd9ec4cb68669df4688c621486a27dd9b33548 (diff) | |
Place hardware terminal cursor at the current main cursor/prompt cursor position
Fixes #1318
Also fixes https://gitlab.com/gnachman/iterm2/issues/5408
Diffstat (limited to 'src/input_handler.hh')
| -rw-r--r-- | src/input_handler.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh index 2962ac12..17c655d9 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -43,6 +43,7 @@ using KeyCallback = std::function<void (Key, Context&)>; class InputMode; enum class InsertMode : unsigned; enum class KeymapMode : char; +enum class CursorMode; class InputHandler : public SafeCountable { @@ -91,6 +92,8 @@ public: DisplayLine mode_line() const; + std::pair<CursorMode, DisplayCoord> get_cursor_info() const; + // Force an input handler into normal mode temporarily struct ScopedForceNormal { |
