summaryrefslogtreecommitdiff
path: root/src/user_interface.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-04-12 10:39:17 +0100
committerMaxime Coste <mawww@kakoune.org>2017-04-12 10:39:17 +0100
commit91bfd714e4be3484e04eaadc5bbe630861fff652 (patch)
treed8b2eb554c7feaf44545d650351480b468f4886d /src/user_interface.hh
parent80dd9ec4cb68669df4688c621486a27dd9b33548 (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/user_interface.hh')
-rw-r--r--src/user_interface.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/user_interface.hh b/src/user_interface.hh
index b202f188..d8139336 100644
--- a/src/user_interface.hh
+++ b/src/user_interface.hh
@@ -34,6 +34,12 @@ enum class InfoStyle
enum class EventMode;
+enum class CursorMode
+{
+ Prompt,
+ Buffer,
+};
+
using OnKeyCallback = std::function<void(Key key)>;
class UserInterface
@@ -62,6 +68,8 @@ public:
virtual DisplayCoord dimensions() = 0;
+ virtual void set_cursor(CursorMode mode, DisplayCoord coord) = 0;
+
virtual void refresh(bool force) = 0;
virtual void set_on_key(OnKeyCallback callback) = 0;