2004-02-15 20:46:45 +00:00
|
|
|
/*
|
|
|
|
*
|
2007-05-30 22:05:10 +00:00
|
|
|
* (c) 2004-2007 Laurent Vivier <Laurent@lvivier.info>
|
2004-02-15 20:46:45 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONSOLE_H__
|
|
|
|
#define __CONSOLE_H__
|
|
|
|
|
2005-11-08 02:06:40 +00:00
|
|
|
#include <macos/types.h>
|
|
|
|
|
2004-06-22 21:21:32 +00:00
|
|
|
#include "misc.h"
|
|
|
|
#include "head.h"
|
|
|
|
|
2007-09-16 15:26:17 +00:00
|
|
|
extern void console_init(void);
|
2005-05-25 06:26:00 +00:00
|
|
|
extern inline int console_putchar(int c);
|
|
|
|
extern void console_putstring(const char *s);
|
2007-09-16 15:26:17 +00:00
|
|
|
int wait_char;
|
2005-08-27 15:48:13 +00:00
|
|
|
#ifdef USE_CLI
|
|
|
|
extern int console_keypressed(int timeout);
|
|
|
|
extern int console_getchar(void);
|
2007-05-30 22:05:10 +00:00
|
|
|
extern void console_clear(void);
|
2005-08-28 21:41:31 +00:00
|
|
|
extern void console_cursor_on(void);
|
|
|
|
extern void console_cursor_off(void);
|
|
|
|
extern void console_cursor_save(void);
|
|
|
|
extern void console_cursor_restore(void);
|
2007-05-30 22:05:10 +00:00
|
|
|
extern void console_video_inverse(void);
|
|
|
|
extern void console_video_normal(void);
|
2007-08-12 20:42:59 +00:00
|
|
|
extern void console_set_cursor_position(int l, int c);
|
2007-09-16 15:26:17 +00:00
|
|
|
extern int console_get_cursor_position(int* l, int* c);
|
|
|
|
extern int console_get_size(int *l, int *c);
|
2007-09-11 23:03:10 +00:00
|
|
|
extern int console_select(int timeout);
|
2007-09-16 15:26:17 +00:00
|
|
|
extern int console_status_request();
|
2005-08-27 15:48:13 +00:00
|
|
|
#endif
|
2004-02-15 20:46:45 +00:00
|
|
|
|
|
|
|
#endif
|