github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/cpvmm/vmm/include/vt100.h (about)

     1  /*
     2   * Copyright (c) 2013 Intel Corporation
     3   *
     4   * Licensed under the Apache License, Version 2.0 (the "License");
     5   * you may not use this file except in compliance with the License.
     6   * You may obtain a copy of the License at
     7   *     http://www.apache.org/licenses/LICENSE-2.0
     8   * Unless required by applicable law or agreed to in writing, software
     9   * distributed under the License is distributed on an "AS IS" BASIS,
    10   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    11   * See the License for the specific language governing permissions and
    12   * limitations under the License.
    13   */
    14  
    15  #ifndef _VT100_H_
    16  #define _VT100_H_
    17  
    18  
    19  #define ASCII_ESCAPE 0x1B
    20  
    21  #define VT100_KEY_CR        '\r'
    22  #define VT100_KEY_LN        '\n'
    23  #define VT100_KEY_RUBOUT    8
    24  #define VT100_KEY_ABORT     ASCII_ESCAPE
    25  #define VT100_KEY_UP        1
    26  #define VT100_KEY_DOWN      2
    27  #define VT100_KEY_LEFT      3
    28  #define VT100_KEY_RIGHT     4
    29  #define VT100_KEY_HOME      5
    30  #define VT100_KEY_END       6
    31  #define VT100_KEY_DELETE    7
    32  #define VT100_KEY_INSERT    9
    33  
    34  void    vt100_putch(char ch);
    35  void    vt100_puts(char *string);
    36  void    vt100_gotoxy(unsigned line, unsigned col);
    37  int     vt100_getpos(unsigned *line, unsigned *col);
    38  void    vt100_delsym(void);
    39  void    vt100_clrline(void);
    40  char    vt100_getch(void);
    41  void    vt100_flush_input(void);
    42  
    43  #endif // _VT100_H_
    44