-
Notifications
You must be signed in to change notification settings - Fork 2
/
console_help.pl
executable file
·57 lines (52 loc) · 1.44 KB
/
console_help.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Encode::Locale;
if (-t)
{
binmode(STDIN, ":encoding(console_in)");
binmode(STDOUT, ":encoding(console_out)");
binmode(STDERR, ":encoding(console_out)");
}
use Perl6::Form;
my @arr1 = ("Начало строки",
"Конец строки",
"Один символ вперед",
"Один символ назад",
"Удалить символ под курсором",
"Удалить символ перед курсором",
"Предыдущая команда в истории",
"Следующая команда в истории",
"Ввод команды",
"Вырезать предыдущее слово",
"Вырезать все к концу строки",
"Вырезать все к началу строки",
"Вставить вырезанное ранее",
"Откатить изменение",
"Очистить экран");
my @arr2 = qw(
Ctrl-a
Ctrl-e
Ctrl-f
Ctrl-b
Ctrl-d
Ctrl-h
Ctrl-p
Ctrl-n
Ctrl-j
Ctrl-w
Ctrl-k
Ctrl-u
Ctrl-y
Ctrl-_
Ctrl-l
);
print form
'=============================================================',
'| Описание | Сочетание |',
'|--------------------------------------------+--------------|',
'| {[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[} | {[[[[[[[[[[[}|',
\@arr1, \@arr2,
'|===========================================================|',
;