forked from KolibriOS/kolibrios
uPDF with buttons
git-svn-id: svn://kolibrios.org@4680 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
40
contrib/media/updf/include/unixcommandline.h
Normal file
40
contrib/media/updf/include/unixcommandline.h
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
#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
|
||||
|
Reference in New Issue
Block a user