X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fconsole.hpp;h=94043e80de12620756c735416ceb50ae71ae6a66;hb=d4b281559d45406a5d07cf04d89142cdeb90b114;hp=83ea2fe070bdb9b1eadece012782afc993233a60;hpb=c0caa810fcbd6f6a09c0078fdf2d30a4a6cb7bc9;p=supertux.git diff --git a/src/console.hpp b/src/console.hpp index 83ea2fe07..94043e80d 100644 --- a/src/console.hpp +++ b/src/console.hpp @@ -49,9 +49,11 @@ public: void init_graphics(); void backspace(); /**< delete last character sent to the input stream */ + void enter(); /**< process and clear input stream */ void scroll(int offset); /**< scroll console text up or down by @c offset lines */ void autocomplete(); /**< autocomplete current command */ void show_history(int offset); /**< move @c offset lines forward through history; Negative offset moves backward */ + void move_cursor(int offset); /**< move the cursor @c offset chars to the right; Negative offset moves backward; 0xFFFF moves to the end */ void draw(DrawingContext& context); /**< draw the console in a DrawingContext */ void update(float elapsed_time);