system/termcurses: Fix nxstyle errors
error: Long line found
This commit is contained in:
parent
bebae28bdd
commit
6a5912c76c
@ -1,4 +1,4 @@
|
|||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* apps/system/termcurses/tcurses_priv.h
|
* apps/system/termcurses/tcurses_priv.h
|
||||||
*
|
*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
@ -16,29 +16,29 @@
|
|||||||
* License for the specific language governing permissions and limitations
|
* License for the specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef __APPS_SYSTEM_TERMCURSES_TCURSES_PRIV_H
|
#ifndef __APPS_SYSTEM_TERMCURSES_TCURSES_PRIV_H
|
||||||
#define __APPS_SYSTEM_TERMCURSES_TCURSES_PRIV_H
|
#define __APPS_SYSTEM_TERMCURSES_TCURSES_PRIV_H
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <system/termcurses.h>
|
#include <system/termcurses.h>
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Public Type Definitions
|
* Public Type Definitions
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
extern struct termcurses_dev_s g_vt100_tcurs;
|
extern struct termcurses_dev_s g_vt100_tcurs;
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#endif /* __APPS_SYSTEM_TERMCURSES_TCURSES_PRIV_H */
|
#endif /* __APPS_SYSTEM_TERMCURSES_TCURSES_PRIV_H */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* apps/system/termcurses/termcurses.c
|
* apps/system/termcurses/termcurses.c
|
||||||
*
|
*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
@ -16,11 +16,11 @@
|
|||||||
* License for the specific language governing permissions and limitations
|
* License for the specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
@ -36,9 +36,9 @@
|
|||||||
|
|
||||||
#include "tcurses_priv.h"
|
#include "tcurses_priv.h"
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Private Data
|
* Private Data
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static struct termcurses_dev_s *g_termcurses_devices[] =
|
static struct termcurses_dev_s *g_termcurses_devices[] =
|
||||||
{
|
{
|
||||||
@ -48,18 +48,18 @@ static struct termcurses_dev_s *g_termcurses_devices[] =
|
|||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Name: termcurses_initterm
|
* Name: termcurses_initterm
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Allocate and initialize a termcurses_s context based on the provided
|
* Allocate and initialize a termcurses_s context based on the provided
|
||||||
* term_type string. If the string is NULL, defaults to "vt100".
|
* term_type string. If the string is NULL, defaults to "vt100".
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int termcurses_initterm(FAR const char *term_type, int in_fd, int out_fd,
|
int termcurses_initterm(FAR const char *term_type, int in_fd, int out_fd,
|
||||||
FAR struct termcurses_s **term)
|
FAR struct termcurses_s **term)
|
||||||
@ -115,14 +115,14 @@ int termcurses_initterm(FAR const char *term_type, int in_fd, int out_fd,
|
|||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Name: termcurses_deinitterm
|
* Name: termcurses_deinitterm
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Free all space for the termcurses terminal and perform any specific
|
* Free all space for the termcurses terminal and perform any specific
|
||||||
* de-initialization tasks.
|
* de-initialization tasks.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int termcurses_deinitterm(FAR struct termcurses_s *term)
|
int termcurses_deinitterm(FAR struct termcurses_s *term)
|
||||||
{
|
{
|
||||||
@ -144,13 +144,13 @@ int termcurses_deinitterm(FAR struct termcurses_s *term)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Name: termcurses_moveyx
|
* Name: termcurses_moveyx
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Move to location yx (row,col) on terminal
|
* Move to location yx (row,col) on terminal
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int termcurses_moveyx(FAR struct termcurses_s *term, int row, int col)
|
int termcurses_moveyx(FAR struct termcurses_s *term, int row, int col)
|
||||||
{
|
{
|
||||||
@ -166,13 +166,13 @@ int termcurses_moveyx(FAR struct termcurses_s *term, int row, int col)
|
|||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Name: termcurses_setcolors
|
* Name: termcurses_setcolors
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Configure output text to render in the specified fg/bg colors.
|
* Configure output text to render in the specified fg/bg colors.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int termcurses_setcolors(FAR struct termcurses_s *term,
|
int termcurses_setcolors(FAR struct termcurses_s *term,
|
||||||
FAR struct termcurses_colors_s *colors)
|
FAR struct termcurses_colors_s *colors)
|
||||||
@ -189,15 +189,16 @@ int termcurses_setcolors(FAR struct termcurses_s *term,
|
|||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Name: termcurses_setattribute
|
* Name: termcurses_setattribute
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Configure output text to render in the specified fg/bg colors.
|
* Configure output text to render in the specified fg/bg colors.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int termcurses_setattribute(FAR struct termcurses_s *term, unsigned long attrib)
|
int termcurses_setattribute(FAR struct termcurses_s *term,
|
||||||
|
unsigned long attrib)
|
||||||
{
|
{
|
||||||
FAR struct termcurses_dev_s *dev = (FAR struct termcurses_dev_s *)term;
|
FAR struct termcurses_dev_s *dev = (FAR struct termcurses_dev_s *)term;
|
||||||
|
|
||||||
@ -211,15 +212,16 @@ int termcurses_setattribute(FAR struct termcurses_s *term, unsigned long attrib)
|
|||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Name: termcurses_getwinsize
|
* Name: termcurses_getwinsize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Get size of terminal screen in terms of character rows and cols.
|
* Get size of terminal screen in terms of character rows and cols.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int termcurses_getwinsize(FAR struct termcurses_s *term, FAR struct winsize *winsz)
|
int termcurses_getwinsize(FAR struct termcurses_s *term,
|
||||||
|
FAR struct winsize *winsz)
|
||||||
{
|
{
|
||||||
FAR struct termcurses_dev_s *dev = (FAR struct termcurses_dev_s *)term;
|
FAR struct termcurses_dev_s *dev = (FAR struct termcurses_dev_s *)term;
|
||||||
|
|
||||||
@ -233,13 +235,13 @@ int termcurses_getwinsize(FAR struct termcurses_s *term, FAR struct winsize *win
|
|||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Name: termcurses_getkeycode
|
* Name: termcurses_getkeycode
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Get a translated key code from the terminal input.
|
* Get a translated key code from the terminal input.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int termcurses_getkeycode(FAR struct termcurses_s *term, FAR int *specialkey,
|
int termcurses_getkeycode(FAR struct termcurses_s *term, FAR int *specialkey,
|
||||||
int *keymodifiers)
|
int *keymodifiers)
|
||||||
@ -256,13 +258,13 @@ int termcurses_getkeycode(FAR struct termcurses_s *term, FAR int *specialkey,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Name: termcurses_checkkey
|
* Name: termcurses_checkkey
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Check if there is a key waiting to be processed.
|
* Check if there is a key waiting to be processed.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
bool termcurses_checkkey(FAR struct termcurses_s *term)
|
bool termcurses_checkkey(FAR struct termcurses_s *term)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user