release 1.09.6
[descalc.git] / bindings.pm
1 # key bindings for DCT, by Shiar
2
3 # 1.08.1 2004-09-27 00:40 - moved from 1.8 main
4 # 1.08.2 2004-09-27 00:49 - single key alias to chs: \ (often close to _)
5 # 1.09.1 2004-10-11 21:45 - function keys moved to menu.pm
6 # 1.09.2      10-12 01:45 - alt+backspace and ^W for (hard) drop
7
8 use strict;
9 use warnings;
10 use utf8;
11
12 %alias = (
13         chr 4              => "quit",    # ^D
14         chr 9              => "more",    # tab
15         "\014"             => "refresh", # ^L
16 #       "\033\133\110"     => "refresh", # home
17         '_'                => "chs",     # easy to remember, difficult to type
18         '\\'               => "chs",     # single key
19 #       'y'                => "chs",     # redundant hp48 compatibility
20 #       'z'                => "eex",     # redundant hp48 compatibility
21         "\033\133\062\176" => "eex",     # ins
22         "\033\133\063\176" => "clear",   # del
23             "\177"         => "back",    # backspace
24             "\010"         => "back",    # backspace
25         "\033\010"         => "drop",    # alt+backspace
26         "\033\177"         => "drop",    # alt+backspace
27             "\027"         => "drop",    # ^W
28         chr 13             => "enter",   # enter
29         ' '                => "enter",   # space
30         '='                => "sto",     #
31
32         "\033\133\101"     => "stack",   # up    - 48: k (stack)
33         "\033\133\104"     => "undo",    # left  - 48: p (picture)
34 #       "\033\133\102"     => '',        # down  - 48: q (view)
35         "\033\133\103"     => "swap",    # right - 48: r (swap)
36
37         '&'                => "and",
38         '|'                => "or",
39         '#'                => "xor",
40         '~'                => "not",
41         '('                => "sl",
42         ')'                => "sr",
43
44             "s"            => "sin",
45         "\033s"            => "asin",
46             "c"            => "cos", #todo: u? o?
47         "\033c"            => "acos",
48             "t"            => "tan",
49         "\033t"            => "atan",
50             "l"            => "log",
51         "\033l"            => "alog",
52             "n"            => "ln",
53         "\033n"            => "exp",
54             "q"            => "sq",
55         "\033q"            => "sqrt",
56             "x"            => "^",
57         "\033x"            => "xroot",
58         "\033^"            => "xroot",
59             "v"            => "inv",
60 ); # %alias
61
62 1;
63