ultimatepp/rainbow/LinuxFb/LinuxFbLocal.h
kohait b379f92f82 rainbow: LinuxFb: entering and leaving the vt mode and reading keyboard works, todo: translation loop
git-svn-id: svn://ultimatepp.org/upp/trunk@3662 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-07-14 15:17:32 +00:00

47 lines
843 B
C

#ifndef _LinuxFb_LinuxFbLocal_h
#define _LinuxFb_LinuxFbLocal_h
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <termios.h>
#include <sys/vt.h>
//#include <sys/kd.h>
#include <CtrlCore/CtrlCore.h>
NAMESPACE_UPP
extern bool fbEndSession;
extern int fbfd;
extern struct fb_var_screeninfo vinfo;
extern struct fb_fix_screeninfo finfo;
extern long int screensize;
extern char *fbp;
extern int mouse_fd;
extern bool mouse_imps2;
extern Point mousep;
extern int mouseb;
extern int keyb_fd;
extern int cvt;
int has_imps2(int fd);
int set_imps2(int fd, int b);
int readevents(int ms);
void handle_mouse();
void handle_keyboard();
dword fbKEYtoK(dword chr);
END_UPP_NAMESPACE
#endif