kolibrios/contrib/media/updf/include/unixcommandline.h
Serhii Sakhno cd35d38ad2 updf: restore menuetlibc version
git-svn-id: svn://kolibrios.org@8429 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-16 18:41:33 +00:00

41 lines
840 B
C++

#ifndef __unixcommandline_h__
#define __unixcommandline_h__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>
#include <unistd.h>
#include <termios.h>
#include <time.h>
#include "yacasbase.h"
#include "commandline.h"
/** Unix command line class, using assorted termios functionality
* and sending ansi character sequences to the console.
*/
class CUnixCommandLine : public CCommandLine
{
public:
CUnixCommandLine();
~CUnixCommandLine();
public:
virtual LispInt GetKey();
virtual void NewLine();
virtual void ShowLine(LispChar * prompt,LispInt promptlen,LispInt cursor);
virtual void Pause();
virtual void MaxHistoryLinesSaved(LispInt aNrLines);
private:
unsigned char term_chars[NCCS];
struct termios orig_termio, rl_termio;
public:
LispInt iMaxLines;
};
#endif