mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
initial commit - import mediafire-shell sources
This commit is contained in:
28
console.h
Normal file
28
console.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef _MFSHELL_CONSOLE_H_
|
||||
#define _MFSHELL_CONSOLE_H_
|
||||
|
||||
enum
|
||||
{
|
||||
CONSOLE_STATE_SAVE = 0x01,
|
||||
CONSOLE_STATE_RESTORE,
|
||||
CONSOLE_ECHO_OFF,
|
||||
CONSOLE_ECHO_ON
|
||||
};
|
||||
|
||||
int console_control_mode(int mode);
|
||||
|
||||
#define console_save_state() \
|
||||
console_control_mode(CONSOLE_STATE_SAVE)
|
||||
|
||||
#define console_restore_state() \
|
||||
console_control_mode(CONSOLE_STATE_RESTORE)
|
||||
|
||||
#define console_echo_off() \
|
||||
console_control_mode(CONSOLE_ECHO_OFF)
|
||||
|
||||
#define console_echo_on() \
|
||||
console_control_mode(CONSOLE_ECHO_ON)
|
||||
|
||||
int console_get_metrics(int *height,int *width);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user