ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcbShellTty.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <ctype.h>
#include <sys/termios.h>
#include <sys/types.h>
#include <ngc/core/ngcbShell.h>

Macros

#define ORG_MODE   0
 
#define GET_MODE   1
 
#define POLL_MODE   2
 

Functions

int ngcbShellGetKey (char *key, char *erms)
 
int ngcbShellPollKey (char *key, char *erms)
 
int ngcbShellTermTty (char *erms)
 

Detailed Description

Macro Definition Documentation

◆ GET_MODE

#define GET_MODE   1

◆ ORG_MODE

#define ORG_MODE   0

◆ POLL_MODE

#define POLL_MODE   2

Function Documentation

◆ ngcbShellGetKey()

int ngcbShellGetKey ( char * key,
char * erms )

Get next key.

◆ ngcbShellPollKey()

int ngcbShellPollKey ( char * key,
char * erms )

Poll keyboard an return next key.

◆ ngcbShellTermTty()

int ngcbShellTermTty ( char * erms)

Terminate TTY input.