2015-09-25 21:37:19 +02:00
|
|
|
// File: ftcap_map.h
|
2015-05-23 13:35:12 +02:00
|
|
|
|
|
|
|
#ifndef _FTCAPMAP_H
|
|
|
|
#define _FTCAPMAP_H
|
|
|
|
|
2016-10-11 04:57:36 +02:00
|
|
|
#include "ftermcap.h"
|
2015-05-23 13:35:12 +02:00
|
|
|
|
2016-10-11 04:57:36 +02:00
|
|
|
static FTermcap::tcap_map term_caps[] =
|
2015-05-23 13:35:12 +02:00
|
|
|
{
|
|
|
|
// .------------- term string
|
|
|
|
// | .-------- Tcap-code
|
|
|
|
// | | // variable name -> description
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
{ 0, "bl" }, // bell -> audible signal (bell) (P)
|
2016-12-15 23:11:34 +01:00
|
|
|
{ 0, "ec" }, // erase_chars -> erase #1 characters (P)
|
2015-05-23 13:35:12 +02:00
|
|
|
{ 0, "cl" }, // clear_screen -> clear screen and home cursor (P*)
|
2016-11-26 15:18:44 +01:00
|
|
|
{ 0, "cd" }, // clr_eos -> clear to end of screen (P*)
|
|
|
|
{ 0, "ce" }, // clr_eol -> clear to end of line (P)
|
2016-12-11 16:42:50 +01:00
|
|
|
{ 0, "cb" }, // clr_bol -> Clear to beginning of line
|
2015-05-23 13:35:12 +02:00
|
|
|
{ 0, "ho" }, // cursor_home -> home cursor (if no cup)
|
|
|
|
{ 0, "ll" }, // cursor_to_ll -> last line, first column (if no cup)
|
|
|
|
{ 0, "cr" }, // carriage_return -> carriage return (P*)
|
|
|
|
{ 0, "ta" }, // tab -> tab to next 8-space hardware tab stop
|
|
|
|
{ 0, "bt" }, // back_tab -> back tab (P)
|
|
|
|
{ 0, "ip" }, // insert_padding -> insert padding after inserted character
|
|
|
|
{ 0, "ic" }, // insert_character -> insert character (P)
|
|
|
|
{ 0, "IC" }, // parm_ich -> insert #1 characters (P*)
|
2016-12-15 23:11:34 +01:00
|
|
|
{ 0, "rp" }, // repeat_char -> repeat char #1 #2 times (P*)
|
2015-05-23 13:35:12 +02:00
|
|
|
{ 0, "Ic" }, // initialize_color -> initialize color #1 to (#2,#3,#4)
|
|
|
|
{ 0, "Ip" }, // initialize_pair -> Initialize color pair #1 to
|
|
|
|
// fg=(#2,#3,#4), bg=(#5,#6,#7)
|
|
|
|
{ 0, "AF" }, // set_a_foreground -> Set ANSI background color to #1
|
|
|
|
{ 0, "AB" }, // set_a_background -> Set ANSI background color to #1
|
|
|
|
{ 0, "Sf" }, // set_foreground -> Set foreground color #1
|
|
|
|
{ 0, "Sb" }, // set_background -> Set background color #1
|
|
|
|
{ 0, "sp" }, // set_color_pair -> Set current color pair to #1
|
|
|
|
{ 0, "op" }, // orig_pair -> Set default pair to original value
|
|
|
|
{ 0, "oc" }, // orig_colors -> Set all color pairs to the original
|
2016-01-08 01:00:05 +01:00
|
|
|
{ 0, "NC" }, // no_color_video -> video attributes that cannot be used
|
|
|
|
// with colors
|
2015-05-23 13:35:12 +02:00
|
|
|
{ 0, "cm" }, // cursor_address -> move to row #1 columns #2
|
|
|
|
{ 0, "ch" }, // column_address -> horizontal position #1, absolute (P)
|
|
|
|
{ 0, "cv" }, // row_address -> vertical position #1 absolute (P)
|
|
|
|
{ 0, "vs" }, // cursor_visible -> make cursor very visible
|
|
|
|
{ 0, "vi" }, // cursor_invisible -> make cursor invisible
|
2015-10-23 00:24:20 +02:00
|
|
|
{ 0, "ve" }, // cursor_normal -> make cursor appear normal (undo vi/vs)
|
2015-05-23 13:35:12 +02:00
|
|
|
{ 0, "up" }, // cursor_up -> up one line
|
|
|
|
{ 0, "do" }, // cursor_down -> down one line
|
|
|
|
{ 0, "le" }, // cursor_left -> move left one space
|
|
|
|
{ 0, "nd" }, // cursor_right -> non-destructive space (move right)
|
|
|
|
{ 0, "UP" }, // parm_up_cursor -> up #1 lines (P*)
|
|
|
|
{ 0, "DO" }, // parm_down_cursor -> down #1 lines (P*)
|
|
|
|
{ 0, "LE" }, // parm_left_cursor -> move #1 characters to the left (P)
|
|
|
|
{ 0, "RI" }, // parm_right_cursor -> move #1 characters to the right (P*)
|
|
|
|
{ 0, "sc" }, // save_cursor -> save current cursor position (P)
|
|
|
|
{ 0, "rc" }, // restore_cursor -> restore cursor to save_cursor
|
2016-10-08 02:54:32 +02:00
|
|
|
{ 0, "sf" }, // scroll_forward -> scroll text up (P)
|
|
|
|
{ 0, "sr" }, // scroll_reverse -> scroll text down (P)
|
2015-05-23 13:35:12 +02:00
|
|
|
{ 0, "ti" }, // enter_ca_mode -> string to start programs using cup
|
|
|
|
{ 0, "te" }, // exit_ca_mode -> strings to end programs using cup
|
|
|
|
{ 0, "eA" }, // enable_acs -> enable alternate char set
|
2016-01-08 01:00:05 +01:00
|
|
|
{ 0, "md" }, // enter_bold_mode -> turn on bold (double-bright) mode
|
2015-12-24 02:34:30 +01:00
|
|
|
{ 0, "me" }, // exit_bold_mode -> turn off bold mode
|
|
|
|
{ 0, "mh" }, // enter_dim_mode -> turn on half-bright
|
|
|
|
{ 0, "me" }, // exit_dim_mode -> turn off half-bright
|
|
|
|
{ 0, "ZH" }, // enter_italics_mode -> Enter italic mode
|
|
|
|
{ 0, "ZR" }, // exit_italics_mode -> End italic mode
|
2015-05-23 13:35:12 +02:00
|
|
|
{ 0, "us" }, // enter_underline_mode -> begin underline mode
|
|
|
|
{ 0, "ue" }, // exit_underline_mode -> exit underline mode
|
2016-01-08 01:00:05 +01:00
|
|
|
{ 0, "mb" }, // enter_blink_mode -> turn on blinking
|
|
|
|
{ 0, "me" }, // exit_blink_mode -> turn off blinking
|
2015-05-23 13:35:12 +02:00
|
|
|
{ 0, "mr" }, // enter_reverse_mode -> turn on reverse video mode
|
2015-12-24 02:34:30 +01:00
|
|
|
{ 0, "me" }, // exit_reverse_mode -> turn off reverse video mode
|
2016-01-08 01:00:05 +01:00
|
|
|
{ 0, "so" }, // enter_standout_mode -> begin standout mode
|
|
|
|
{ 0, "se" }, // exit_standout_mode -> exit standout mode
|
2015-12-24 02:34:30 +01:00
|
|
|
{ 0, "mk" }, // enter_secure_mode -> turn on blank mode (characters invisible)
|
|
|
|
{ 0, "me" }, // exit_secure_mode -> turn off blank mode (characters visible)
|
2016-01-08 01:00:05 +01:00
|
|
|
{ 0, "mp" }, // enter_protected_mode -> turn on protected mode
|
|
|
|
{ 0, "me" }, // exit_protected_mode -> turn off protected mode
|
2015-12-24 02:34:30 +01:00
|
|
|
{ 0, "XX" }, // enter_crossed_out_mode -> turn on mark character as deleted
|
|
|
|
{ 0, "me" }, // exit_crossed_out_mode -> turn off mark character as deleted
|
2016-01-08 01:00:05 +01:00
|
|
|
{ 0, "Us" }, // enter_dbl_underline_mode -> begin double underline mode
|
|
|
|
{ 0, "Ue" }, // exit_dbl_underline_mode -> exit double underline mode
|
|
|
|
{ 0, "sa" }, // set_attributes -> define videoattributes #1-#9 (PG9)
|
2015-12-24 02:34:30 +01:00
|
|
|
{ 0, "me" }, // exit_attribute_mode -> turn off all attributes
|
2015-05-23 13:35:12 +02:00
|
|
|
{ 0, "as" }, // enter_alt_charset_mode -> start alternate character set (P)
|
|
|
|
{ 0, "ae" }, // exit_alt_charset_mode -> end alternate character set (P)
|
|
|
|
{ 0, "S2" }, // enter_pc_charset_mode -> Enter PC character display mode
|
|
|
|
{ 0, "S3" }, // exit_pc_charset_mode -> Exit PC character display mode
|
|
|
|
{ 0, "im" }, // enter_insert_mode -> enter insert mode
|
|
|
|
{ 0, "ei" }, // exit_insert_mode -> exit insert mode
|
|
|
|
{ 0, "SA" }, // enter_am_mode -> turn on automatic margins
|
|
|
|
{ 0, "RA" }, // exit_am_mode -> turn off automatic margins
|
|
|
|
{ 0, "ac" }, // acs_chars -> graphics charset pairs (vt100)
|
|
|
|
{ 0, "ks" }, // keypad_xmit -> enter 'key-board_transmit' mode
|
|
|
|
{ 0, "ke" }, // keypad_local -> leave 'key-board_transmit' mode
|
|
|
|
{ 0, "Km" }, // key_mouse -> Mouse event has occurred
|
|
|
|
{ 0, "\0" }
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* (P) indicates that padding may be specified
|
|
|
|
* #[1-9] in the description field indicates that the string
|
|
|
|
* is passed through tparm with parms as given (#i).
|
|
|
|
* (P*) indicates that padding may vary in proportion
|
|
|
|
* to the number of lines affected
|
|
|
|
* (#i) indicates the ith parameter.
|
2016-01-08 01:00:05 +01:00
|
|
|
*
|
2016-01-10 00:56:52 +01:00
|
|
|
* "XX", "Us" and "Ue" are unofficial and they are only used here.
|
2015-05-23 13:35:12 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#endif // _FTCAPMAP_H
|