#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
- Copyright
- SPDX-FileCopyrightText: 2026 European Southern Observatory (ESO) SPDX-License-Identifier: LGPL-3.0-only
◆ ngcbSHELL_BEGIN
| #define ngcbSHELL_BEGIN 1 |
◆ ngcbSHELL_BS
◆ ngcbSHELL_COMMENT
| #define ngcbSHELL_COMMENT '#' |
◆ ngcbSHELL_CR
◆ ngcbSHELL_DEL
◆ ngcbSHELL_DELLINE
| #define ngcbSHELL_DELLINE 11 |
◆ ngcbSHELL_END
◆ ngcbSHELL_ESC
◆ ngcbSHELL_F_BEGIN
| #define ngcbSHELL_F_BEGIN 72 |
◆ ngcbSHELL_F_CRSR_DOWN
| #define ngcbSHELL_F_CRSR_DOWN 66 |
◆ ngcbSHELL_F_CRSR_LEFT
| #define ngcbSHELL_F_CRSR_LEFT 68 |
◆ ngcbSHELL_F_CRSR_RIGHT
| #define ngcbSHELL_F_CRSR_RIGHT 67 |
◆ ngcbSHELL_F_CRSR_UP
| #define ngcbSHELL_F_CRSR_UP 65 |
◆ ngcbSHELL_F_END
| #define ngcbSHELL_F_END 70 |
◆ ngcbSHELL_F_INSERT
| #define ngcbSHELL_F_INSERT 50 |
◆ ngcbSHELL_FUNCTION_KEY
| #define ngcbSHELL_FUNCTION_KEY |
( |
| x | ) |
|
◆ ngcbSHELL_INSERT
| #define ngcbSHELL_INSERT 9 |
◆ ngcbSHELL_LEFT
◆ ngcbSHELL_MAX_CMDLEN
| #define ngcbSHELL_MAX_CMDLEN 256 |
◆ ngcbSHELL_MAX_FILES
| #define ngcbSHELL_MAX_FILES 32 |
maximum number of streaming files
◆ ngcbSHELL_RIGHT
| #define ngcbSHELL_RIGHT 6 |
◆ ngcbSHELL_STACK_SIZE
| #define ngcbSHELL_STACK_SIZE 20 |
◆ USE
Value:do {(void)(x);} while (0)
◆ ngcbShellGetKey()
| int ngcbShellGetKey |
( |
char * | key, |
|
|
char * | erms ) |
◆ ngcbShellGetLine()
| int ngcbShellGetLine |
( |
const char * | inDev, |
|
|
char * | cmdLine, |
|
|
char * | erms ) |
Handle next shell command line.
◆ ngcbShellOpenRepStream()
| FILE * ngcbShellOpenRepStream |
( |
const char * | outDev, |
|
|
char * | erms ) |
◆ ngcbShellPollKey()
| int ngcbShellPollKey |
( |
char * | key, |
|
|
char * | erms ) |
Poll keyboard an return next key.
◆ ngcbShellReadKeyboard()
| int ngcbShellReadKeyboard |
( |
char * | cmdLine, |
|
|
char * | erms ) |
Read command line from keyboard.
◆ ngcbShellReadStream()
| int ngcbShellReadStream |
( |
FILE * | inputStream, |
|
|
char * | cmdLine, |
|
|
char * | erms ) |
Read command line from stream and prepares it for command parsing (i.e deletes suspiciuous spaces etc.).
◆ ngcbShellTerminate()
| int ngcbShellTerminate |
( |
const char * | inDev, |
|
|
char * | erms ) |
◆ ngcbShellTermTty()
| int ngcbShellTermTty |
( |
char * | erms | ) |
|