Choco OS  V.0.16.9.0
Join to the chocolate world
oc_vt100.h File Reference

The file with interface for VT100 terminal standard. More...

#include <oc_vt100_seq.h>

Go to the source code of this file.

Macros

#define oC_VT100_RESET_DEVICE
 Resets terminal.
 
#define oC_VT100_ENABLE_LINE_WRAP
 Text wraps to next line if longer than the length of the display area.
 
#define oC_VT100_DISABLE_LINE_WRAP
 Text not wraps to next line even if longer than the length of the display area.
 
#define oC_VT100_SET_CURSOR_HOME(ROW, COLUMN)   "\033" "[" ROW ";" COLUMN "H"
 
#define oC_VT100_CURSOR_HOME   "\033" "[H"
 
#define oC_VT100_CURSOR_UP(COUNT)   "\033" "[" COUNT "A"
 
#define oC_VT100_CURSOR_DOWN(COUNT)   "\033" "[" COUNT "B"
 
#define oC_VT100_CURSOR_FORWARD(COUNT)   "\033" "[" COUNT "C"
 
#define oC_VT100_CURSOR_BACKWARD(COUNT)   "\033" "[" COUNT "}D"
 
#define oC_VT100_FORCE_CURSOR_POSITION(ROW, COLUMN)   "\033" "[" ROW ";" COLUMN "f"
 
#define oC_VT100_SAVE_CURSOR   "\033" "[s"
 
#define oC_VT100_UNSAVE_CURSOR   "\033" "[u"
 
#define oC_VT100_SAVE_CURSOR_AND_ATTRS   "\033" "7"
 
#define oC_VT100_RESTORE_CURSOR_AND_ATTRS   "\033" "8"
 
#define oC_VT100_SCROLL_SCREEN   "\033" "[r"
 
#define oC_VT100_SCROLL_SCREEN_TO(START, END)   "\033" "[" START ";" END "r"
 
#define oC_VT100_SCROLL_DOWN   "\033" "D"
 
#define oC_VT100_SCROLL_UP   "\033" "M"
 
#define oC_VT100_SET_TAB   "\033" "H"
 
#define oC_VT100_CLEAR_TAB   "\033" "[g"
 
#define oC_VT100_CLEAR_ALL_TABS   "\033" "[3g"
 
#define oC_VT100_ERASE_END_OF_LINE   "\033" "[K"
 
#define oC_VT100_ERASE_START_OF_LINE   "\033" "[1K"
 
#define oC_VT100_ERASE_LINE   "\033" "[2K"
 
#define oC_VT100_ERASE_DOWN   "\033" "[J"
 
#define oC_VT100_ERASE_UP   "\033" "[1J"
 
#define oC_VT100_ERASE_SCREEN   "\033" "[2J"
 
#define oC_VT100_BORDER_LU   "\e(0\x6A\e(B"
 

Detailed Description


Changing the Hardware On Click Operating System (ChOC)

Author
Patryk Kubiak - (Created on: 19 02 2015 23:48:38)
Note
Copyright (C) 2015 Patryk Kubiak patry.nosp@m.k.ku.nosp@m.biak9.nosp@m.0@gm.nosp@m.ail.c.nosp@m.om
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

Definition in file oc_vt100.h.

Macro Definition Documentation

#define oC_VT100_BORDER_LU   "\e(0\x6A\e(B"

Box drawing

Definition at line 276 of file oc_vt100.h.

#define oC_VT100_CLEAR_ALL_TABS   "\033" "[3g"

Clears all tabs.

Definition at line 198 of file oc_vt100.h.

#define oC_VT100_CLEAR_TAB   "\033" "[g"

Clears tab at the current position.

Definition at line 191 of file oc_vt100.h.

#define oC_VT100_CURSOR_BACKWARD (   COUNT)    "\033" "[" COUNT "}D"

Moves the cursor backward by COUNT rows; the default count is 1.

Definition at line 113 of file oc_vt100.h.

#define oC_VT100_CURSOR_DOWN (   COUNT)    "\033" "[" COUNT "B"

Moves the cursor down by COUNT rows; the default count is 1.

Definition at line 99 of file oc_vt100.h.

#define oC_VT100_CURSOR_FORWARD (   COUNT)    "\033" "[" COUNT "C"

Moves the cursor forward by COUNT rows; the default count is 1.

Definition at line 106 of file oc_vt100.h.

#define oC_VT100_CURSOR_HOME   "\033" "[H"

Sets the cursor position where subsequent text will begin. If no row/column parameters are provided (ie. <ESC>[H), the cursor will move to the home position, at the upper left of the screen.

Definition at line 85 of file oc_vt100.h.

#define oC_VT100_CURSOR_UP (   COUNT)    "\033" "[" COUNT "A"

Moves the cursor up by COUNT rows; the default count is 1.

Definition at line 92 of file oc_vt100.h.

#define oC_VT100_ERASE_DOWN   "\033" "[J"

Erases the screen from the current line down to the bottom of the screen.

Definition at line 226 of file oc_vt100.h.

#define oC_VT100_ERASE_END_OF_LINE   "\033" "[K"

Erases from the current cursor position to the end of the current line.

Definition at line 205 of file oc_vt100.h.

#define oC_VT100_ERASE_LINE   "\033" "[2K"

Erases the entire current line.

Definition at line 219 of file oc_vt100.h.

#define oC_VT100_ERASE_SCREEN   "\033" "[2J"

Erases the screen with the background colour and moves the cursor to home.

Definition at line 240 of file oc_vt100.h.

#define oC_VT100_ERASE_START_OF_LINE   "\033" "[1K"

Erases from the current cursor position to the start of the current line.

Definition at line 212 of file oc_vt100.h.

#define oC_VT100_ERASE_UP   "\033" "[1J"

Erases the screen from the current line up to the top of the screen.

Definition at line 233 of file oc_vt100.h.

#define oC_VT100_FORCE_CURSOR_POSITION (   ROW,
  COLUMN 
)    "\033" "[" ROW ";" COLUMN "f"

Identical to Cursor Home.

Definition at line 120 of file oc_vt100.h.

#define oC_VT100_RESTORE_CURSOR_AND_ATTRS   "\033" "8"

Restores cursor position after a Save Cursor.

Definition at line 148 of file oc_vt100.h.

#define oC_VT100_SAVE_CURSOR   "\033" "[s"

Save current cursor position.

Definition at line 127 of file oc_vt100.h.

#define oC_VT100_SAVE_CURSOR_AND_ATTRS   "\033" "7"

Save current cursor position.

Definition at line 141 of file oc_vt100.h.

#define oC_VT100_SCROLL_DOWN   "\033" "D"

Scroll display down one line.

Definition at line 169 of file oc_vt100.h.

#define oC_VT100_SCROLL_SCREEN   "\033" "[r"

Enable scrolling for entire display.

Definition at line 155 of file oc_vt100.h.

#define oC_VT100_SCROLL_SCREEN_TO (   START,
  END 
)    "\033" "[" START ";" END "r"

Enable scrolling from row {START} to row {END}.

Definition at line 162 of file oc_vt100.h.

#define oC_VT100_SCROLL_UP   "\033" "M"

Scroll display up one line

Definition at line 177 of file oc_vt100.h.

#define oC_VT100_SET_CURSOR_HOME (   ROW,
  COLUMN 
)    "\033" "[" ROW ";" COLUMN "H"

Sets the cursor position where subsequent text will begin. If no row/column parameters are provided (ie. <ESC>[H), the cursor will move to the home position, at the upper left of the screen.

Definition at line 77 of file oc_vt100.h.

#define oC_VT100_SET_TAB   "\033" "H"

Sets a tab at the current position.

Definition at line 184 of file oc_vt100.h.

#define oC_VT100_UNSAVE_CURSOR   "\033" "[u"

Restores cursor position after a Save Cursor.

Definition at line 134 of file oc_vt100.h.