Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/shell/shell_input.h @ 5178

Last change on this file since 5178 was 5178, checked in by bensch, 19 years ago

orxonox/trunk: added class ShellInput for the InputLine, also worked a bit on ShellCompletion

File size: 1.2 KB
Line 
1/*!
2 * @file shell_input.h
3 * @brief Definition of ...
4*/
5
6#ifndef _SHELL_INPUT_H
7#define _SHELL_INPUT_H
8
9// FORWARD DECLARATION
10class Text;
11template<class T> class tList;
12
13
14//! A class for ...
15class ShellInput {
16
17 public:
18  ShellInput();
19  virtual ~ShellInput();
20
21
22  // InputLine
23  void flush();
24  void addCharacter(char character);
25  void addCharacters(const char* characters);
26  void removeCharacters(unsigned int characterCount = 1);
27  void setRepeatDelay(float repeatDelay, float repeatRate);
28
29
30 private:
31    // HANDLING TEXT INPUT
32   Text*                    inputLineText;          //!< The inputLine of the Shell
33   char*                    inputLine;              //!< the Char-Array of the Buffer
34   float                    repeatRate;             //!< The Repeat-Delay.
35   float                    repeatDelay;            //!< The delay of the first Character of a given Character.
36   float                    delayed;                //!< how much of the delay is remaining.
37   int                      pressedKey;             //!< the pressed key that will be repeated.
38
39   tList<char>*             inputHistory;           //!< The history of given commands.
40
41};
42
43#endif /* _SHELL_INPUT_H */
Note: See TracBrowser for help on using the repository browser.