3
3
//! ncurses-compatible compiled terminfo format parsing (term(5))
4
4
5
5
use std:: collections:: HashMap ;
6
- use std:: io:: prelude:: * ;
7
6
use std:: io;
7
+ use std:: io:: prelude:: * ;
8
8
use super :: super :: TermInfo ;
9
9
10
10
// These are the orders ncurses uses in its compiled format (as of 5.9). Not sure if portable.
11
11
12
12
#[ rustfmt_skip]
13
- pub static boolfnames: & ' static [ & ' static str ] = & [ "auto_left_margin" , "auto_right_margin" ,
13
+ pub static boolfnames: & [ & str ] = & [ "auto_left_margin" , "auto_right_margin" ,
14
14
"no_esc_ctlc" , "ceol_standout_glitch" , "eat_newline_glitch" , "erase_overstrike" , "generic_type" ,
15
15
"hard_copy" , "has_meta_key" , "has_status_line" , "insert_null_glitch" , "memory_above" ,
16
16
"memory_below" , "move_insert_mode" , "move_standout_mode" , "over_strike" , "status_line_esc_ok" ,
@@ -23,13 +23,13 @@ pub static boolfnames: &'static[&'static str] = &["auto_left_margin", "auto_righ
23
23
"return_does_clr_eol" ] ;
24
24
25
25
#[ rustfmt_skip]
26
- pub static boolnames: & ' static [ & ' static str ] = & [ "bw" , "am" , "xsb" , "xhp" , "xenl" , "eo" ,
26
+ pub static boolnames: & [ & str ] = & [ "bw" , "am" , "xsb" , "xhp" , "xenl" , "eo" ,
27
27
"gn" , "hc" , "km" , "hs" , "in" , "db" , "da" , "mir" , "msgr" , "os" , "eslok" , "xt" , "hz" , "ul" , "xon" ,
28
28
"nxon" , "mc5i" , "chts" , "nrrmc" , "npc" , "ndscr" , "ccc" , "bce" , "hls" , "xhpa" , "crxm" , "daisy" ,
29
29
"xvpa" , "sam" , "cpix" , "lpix" , "OTbs" , "OTns" , "OTnc" , "OTMT" , "OTNL" , "OTpt" , "OTxr" ] ;
30
30
31
31
#[ rustfmt_skip]
32
- pub static numfnames: & ' static [ & ' static str ] = & [ "columns" , "init_tabs" , "lines" ,
32
+ pub static numfnames: & [ & str ] = & [ "columns" , "init_tabs" , "lines" ,
33
33
"lines_of_memory" , "magic_cookie_glitch" , "padding_baud_rate" , "virtual_terminal" ,
34
34
"width_status_line" , "num_labels" , "label_height" , "label_width" , "max_attributes" ,
35
35
"maximum_windows" , "max_colors" , "max_pairs" , "no_color_video" , "buffer_capacity" ,
@@ -40,13 +40,13 @@ pub static numfnames: &'static[&'static str] = &[ "columns", "init_tabs", "lines
40
40
"new_line_delay" , "backspace_delay" , "horizontal_tab_delay" , "number_of_function_keys" ] ;
41
41
42
42
#[ rustfmt_skip]
43
- pub static numnames: & ' static [ & ' static str ] = & [ "cols" , "it" , "lines" , "lm" , "xmc" , "pb" ,
43
+ pub static numnames: & [ & str ] = & [ "cols" , "it" , "lines" , "lm" , "xmc" , "pb" ,
44
44
"vt" , "wsl" , "nlab" , "lh" , "lw" , "ma" , "wnum" , "colors" , "pairs" , "ncv" , "bufsz" , "spinv" ,
45
45
"spinh" , "maddr" , "mjump" , "mcs" , "mls" , "npins" , "orc" , "orl" , "orhi" , "orvi" , "cps" , "widcs" ,
46
46
"btns" , "bitwin" , "bitype" , "UTug" , "OTdC" , "OTdN" , "OTdB" , "OTdT" , "OTkn" ] ;
47
47
48
48
#[ rustfmt_skip]
49
- pub static stringfnames: & ' static [ & ' static str ] = & [ "back_tab" , "bell" , "carriage_return" ,
49
+ pub static stringfnames: & [ & str ] = & [ "back_tab" , "bell" , "carriage_return" ,
50
50
"change_scroll_region" , "clear_all_tabs" , "clear_screen" , "clr_eol" , "clr_eos" ,
51
51
"column_address" , "command_character" , "cursor_address" , "cursor_down" , "cursor_home" ,
52
52
"cursor_invisible" , "cursor_left" , "cursor_mem_address" , "cursor_normal" , "cursor_right" ,
@@ -120,7 +120,7 @@ pub static stringfnames: &'static[&'static str] = &[ "back_tab", "bell", "carria
120
120
"acs_plus" , "memory_lock" , "memory_unlock" , "box_chars_1" ] ;
121
121
122
122
#[ rustfmt_skip]
123
- pub static stringnames: & ' static [ & ' static str ] = & [ "cbt" , "_" , "cr" , "csr" , "tbc" , "clear" ,
123
+ pub static stringnames: & [ & str ] = & [ "cbt" , "_" , "cr" , "csr" , "tbc" , "clear" ,
124
124
"_" , "_" , "hpa" , "cmdch" , "cup" , "cud1" , "home" , "civis" , "cub1" , "mrcup" , "cnorm" , "cuf1" ,
125
125
"ll" , "cuu1" , "cvvis" , "dch1" , "dl1" , "dsl" , "hd" , "smacs" , "blink" , "bold" , "smcup" , "smdc" ,
126
126
"dim" , "smir" , "invis" , "prot" , "rev" , "smso" , "smul" , "ech" , "rmacs" , "sgr0" , "rmcup" , "rmdc" ,
0 commit comments