mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-14 09:50:05 +00:00
26 lines
696 B
C
26 lines
696 B
C
#ifndef SHELLTERM_H
|
|
#define SHELLTERM_H
|
|
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
#include <sys/select.h>
|
|
#include <termios.h>
|
|
#include <stdbool.h>
|
|
|
|
#include "sclient.h"
|
|
|
|
void shellT_conioTerm(void);
|
|
void shellT_resetTerm(void);
|
|
void shellT_printf(const char *format, ...);
|
|
|
|
/* waits for input for timeout (in ms). returns true if input is ready to be read, false if no events */
|
|
bool shellT_waitForInput(int timeout);
|
|
char shellT_getch(void);
|
|
int shellT_kbget(void);
|
|
void shellT_printPrompt(void);
|
|
void shellT_setPrompt(char *prompt);
|
|
void shellT_addChar(tShell_client *client, int c); /* processes input, moving cursor, adding char to cmd, etc. */
|
|
|
|
#endif |