Дано Дебиан 8.9В screen запущен mc
Хочется оставить вывод:
root@36:~# date
Вс авг 20 19:59:51 MSK 2017
Для продолжения нажмите любую клавишу...
При опции screen
# Enable 256 color term
term xterm-256color
вывод в mc весь очищается....
Во FreeBSD этой проблемы нет.
Добавленные опции в /etc/screenrc:
# Allow bold colors - necessary for some reason
attrcolor b ".I"# Tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# Enables use of shift-PgUp and shift-PgDn
termcapinfo xterm|xterms|xs|rxvt ti@:te@
# Erase background with current bg color
defbce "on"
# Enable 256 color term
#term xterm-256color
multiuser on
defscrollback 50000 # default: 100
caption always "%{=}%{+b kR}%H | %{+b kY}%d %{+b kG}%0c | %{+b kB}%?%-Lw%?%{+b kW}%n*%f %t%?(%u)%?%{+bkB}%?%+Lw%? | %{kR}Load: %l %{kB}"
root@36:~# infocmp -L xterm-256color
# Reconstructed via infocmp from file: /lib/terminfo/x/xterm-256color
xterm-256color|xterm with 256 colors,
auto_right_margin, back_color_erase,
backspaces_with_bs, can_change, eat_newline_glitch,
has_meta_key, move_insert_mode, move_standout_mode,
no_pad_char, prtr_silent,
columns#80, init_tabs#8, lines#24, max_colors#256,
max_pairs#32767,
acs_chars=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
back_tab=\E[Z, bell=^G, carriage_return=^M,
change_scroll_region=\E[%i%p1%d;%p2%dr,
clear_all_tabs=\E[3g, clear_screen=\E[H\E[2J,
clr_bol=\E[1K, clr_eol=\E[K, clr_eos=\E[J,
column_address=\E[%i%p1%dG,
cursor_address=\E[%i%p1%d;%p2%dH, cursor_down=^J,
cursor_home=\E[H, cursor_invisible=\E[?25l,
cursor_left=^H, cursor_normal=\E[?12l\E[?25h,
cursor_right=\E[C, cursor_up=\E[A,
cursor_visible=\E[?12;25h, delete_character=\E[P,
delete_line=\E[M, enter_alt_charset_mode=\E(0,
enter_am_mode=\E[?7h, enter_blink_mode=\E[5m,
enter_bold_mode=\E[1m, enter_ca_mode=\E[?1049h,
enter_dim_mode=\E[2m, enter_insert_mode=\E[4h,
enter_italics_mode=\E[3m, enter_reverse_mode=\E[7m,
enter_secure_mode=\E[8m, enter_standout_mode=\E[7m,
enter_underline_mode=\E[4m, erase_chars=\E[%p1%dX,
exit_alt_charset_mode=\E(B, exit_am_mode=\E[?7l,
exit_attribute_mode=\E(B\E[m, exit_ca_mode=\E[?1049l,
exit_insert_mode=\E[4l, exit_italics_mode=\E[23m,
exit_standout_mode=\E[27m,
exit_underline_mode=\E[24m,
flash_screen=\E[?5h$<100/>\E[?5l,
init_2string=\E[\041p\E[?3;4l\E[4l\E>,
initialize_color=\E]4;%p1%d;rgb\072%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\,
insert_line=\E[L, key_b2=\EOE, key_backspace=\177,
key_btab=\E[Z, key_dc=\E[3~, key_down=\EOB, key_end=\EOF,
key_enter=\EOM, key_f1=\EOP, key_f10=\E[21~,
key_f11=\E[23~, key_f12=\E[24~, key_f13=\E[1;2P,
key_f14=\E[1;2Q, key_f15=\E[1;2R, key_f16=\E[1;2S,
key_f17=\E[15;2~, key_f18=\E[17;2~, key_f19=\E[18;2~,
key_f2=\EOQ, key_f20=\E[19;2~, key_f21=\E[20;2~,
key_f22=\E[21;2~, key_f23=\E[23;2~, key_f24=\E[24;2~,
key_f25=\E[1;5P, key_f26=\E[1;5Q, key_f27=\E[1;5R,
key_f28=\E[1;5S, key_f29=\E[15;5~, key_f3=\EOR,
key_f30=\E[17;5~, key_f31=\E[18;5~, key_f32=\E[19;5~,
key_f33=\E[20;5~, key_f34=\E[21;5~, key_f35=\E[23;5~,
key_f36=\E[24;5~, key_f37=\E[1;6P, key_f38=\E[1;6Q,
key_f39=\E[1;6R, key_f4=\EOS, key_f40=\E[1;6S,
key_f41=\E[15;6~, key_f42=\E[17;6~, key_f43=\E[18;6~,
key_f44=\E[19;6~, key_f45=\E[20;6~, key_f46=\E[21;6~,
key_f47=\E[23;6~, key_f48=\E[24;6~, key_f49=\E[1;3P,
key_f5=\E[15~, key_f50=\E[1;3Q, key_f51=\E[1;3R,
key_f52=\E[1;3S, key_f53=\E[15;3~, key_f54=\E[17;3~,
key_f55=\E[18;3~, key_f56=\E[19;3~, key_f57=\E[20;3~,
key_f58=\E[21;3~, key_f59=\E[23;3~, key_f6=\E[17~,
key_f60=\E[24;3~, key_f61=\E[1;4P, key_f62=\E[1;4Q,
key_f63=\E[1;4R, key_f7=\E[18~, key_f8=\E[19~,
key_f9=\E[20~, key_home=\EOH, key_ic=\E[2~,
key_left=\EOD, key_mouse=\E[M, key_npage=\E[6~,
key_ppage=\E[5~, key_right=\EOC, key_sdc=\E[3;2~,
key_send=\E[1;2F, key_sf=\E[1;2B, key_shome=\E[1;2H,
key_sic=\E[2;2~, key_sleft=\E[1;2D, key_snext=\E[6;2~,
key_sprevious=\E[5;2~, key_sr=\E[1;2A,
key_sright=\E[1;2C, key_up=\EOA,
keypad_local=\E[?1l\E>, keypad_xmit=\E[?1h\E=,
memory_lock=\El, memory_unlock=\Em,
orig_pair=\E[39;49m, parm_dch=\E[%p1%dP,
parm_delete_line=\E[%p1%dM,
parm_down_cursor=\E[%p1%dB, parm_ich=\E[%p1%d@,
parm_index=\E[%p1%dS, parm_insert_line=\E[%p1%dL,
parm_left_cursor=\E[%p1%dD,
parm_right_cursor=\E[%p1%dC, parm_rindex=\E[%p1%dT,
parm_up_cursor=\E[%p1%dA, print_screen=\E[i,
prtr_off=\E[4i, prtr_on=\E[5i, reset_1string=\Ec,
reset_2string=\E[\041p\E[?3;4l\E[4l\E>,
restore_cursor=\E8, row_address=\E[%i%p1%dd,
save_cursor=\E7, scroll_forward=^J, scroll_reverse=\EM,
set_a_background=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
set_a_foreground=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
set_attributes=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
set_tab=\EH, tab=^I, user6=\E[%i%d;%dR, user7=\E[6n,
user8=\E[?1;2c, user9=\E[c,