Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1.  
  2. #ifndef __stdcommandline_h__
  3. #define __stdcommandline_h__
  4.  
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. #include <string.h>
  8. #include <ctype.h>
  9. #include <signal.h>
  10. #ifndef WIN32
  11. #   include <unistd.h>
  12. #   include <termios.h>
  13. #endif
  14. #include <time.h>
  15.  
  16. #include "yacasbase.h"
  17. #include "commandline.h"
  18. /** Simple no-frills implementation of CCommandLine, using stdlibc-functions
  19.  *  only, and no ansi characters. No history is supported either.
  20.  */
  21. class CStdCommandLine : public CCommandLine
  22. {
  23. public:
  24.     CStdCommandLine();
  25.     ~CStdCommandLine();
  26.     virtual void ReadLine(LispChar * prompt);
  27. public:
  28.     virtual LispInt GetKey();
  29.     virtual void NewLine();
  30.     virtual void ShowLine(LispChar * prompt,LispInt promptlen,LispInt cursor);
  31.     virtual void Pause();
  32. };
  33.  
  34.  
  35. #endif
  36.  
  37.