diff --git a/system/termcurses/tcurses_priv.h b/system/termcurses/tcurses_priv.h index 06650be13..853d45c3a 100644 --- a/system/termcurses/tcurses_priv.h +++ b/system/termcurses/tcurses_priv.h @@ -1,4 +1,4 @@ -/************************************************************************************ +/**************************************************************************** * apps/system/termcurses/tcurses_priv.h * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,29 +16,29 @@ * License for the specific language governing permissions and limitations * under the License. * - ************************************************************************************/ + ****************************************************************************/ #ifndef __APPS_SYSTEM_TERMCURSES_TCURSES_PRIV_H #define __APPS_SYSTEM_TERMCURSES_TCURSES_PRIV_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Type Definitions - ************************************************************************************/ + ****************************************************************************/ extern struct termcurses_dev_s g_vt100_tcurs; -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #endif /* __APPS_SYSTEM_TERMCURSES_TCURSES_PRIV_H */ diff --git a/system/termcurses/termcurses.c b/system/termcurses/termcurses.c index c9d49be4e..1b6c6d392 100644 --- a/system/termcurses/termcurses.c +++ b/system/termcurses/termcurses.c @@ -1,4 +1,4 @@ -/************************************************************************************ +/**************************************************************************** * apps/system/termcurses/termcurses.c * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,11 +16,11 @@ * License for the specific language governing permissions and limitations * under the License. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -36,9 +36,9 @@ #include "tcurses_priv.h" -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static struct termcurses_dev_s *g_termcurses_devices[] = { @@ -48,18 +48,18 @@ static struct termcurses_dev_s *g_termcurses_devices[] = NULL }; -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: termcurses_initterm * * Description: * Allocate and initialize a termcurses_s context based on the provided * 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, 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; } -/************************************************************************************ +/**************************************************************************** * Name: termcurses_deinitterm * * Description: * Free all space for the termcurses terminal and perform any specific * de-initialization tasks. * - ************************************************************************************/ + ****************************************************************************/ int termcurses_deinitterm(FAR struct termcurses_s *term) { @@ -144,13 +144,13 @@ int termcurses_deinitterm(FAR struct termcurses_s *term) return result; } -/************************************************************************************ +/**************************************************************************** * Name: termcurses_moveyx * * Description: * Move to location yx (row,col) on terminal * - ************************************************************************************/ + ****************************************************************************/ 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; } -/************************************************************************************ +/**************************************************************************** * Name: termcurses_setcolors * * Description: * Configure output text to render in the specified fg/bg colors. * - ************************************************************************************/ + ****************************************************************************/ int termcurses_setcolors(FAR struct termcurses_s *term, FAR struct termcurses_colors_s *colors) @@ -189,15 +189,16 @@ int termcurses_setcolors(FAR struct termcurses_s *term, return -ENOSYS; } -/************************************************************************************ +/**************************************************************************** * Name: termcurses_setattribute * * Description: * 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; @@ -211,15 +212,16 @@ int termcurses_setattribute(FAR struct termcurses_s *term, unsigned long attrib) return -ENOSYS; } -/************************************************************************************ +/**************************************************************************** * Name: termcurses_getwinsize * * Description: * 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; @@ -233,13 +235,13 @@ int termcurses_getwinsize(FAR struct termcurses_s *term, FAR struct winsize *win return -ENOSYS; } -/************************************************************************************ +/**************************************************************************** * Name: termcurses_getkeycode * * Description: * Get a translated key code from the terminal input. * - ************************************************************************************/ + ****************************************************************************/ int termcurses_getkeycode(FAR struct termcurses_s *term, FAR int *specialkey, int *keymodifiers) @@ -256,13 +258,13 @@ int termcurses_getkeycode(FAR struct termcurses_s *term, FAR int *specialkey, return -1; } -/************************************************************************************ +/**************************************************************************** * Name: termcurses_checkkey * * Description: * Check if there is a key waiting to be processed. * - ************************************************************************************/ + ****************************************************************************/ bool termcurses_checkkey(FAR struct termcurses_s *term) {