reline 0.5.10 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/reline/config.rb +22 -26
- data/lib/reline/history.rb +3 -3
- data/lib/reline/io/ansi.rb +70 -124
- data/lib/reline/io/dumb.rb +16 -2
- data/lib/reline/io/windows.rb +77 -60
- data/lib/reline/io.rb +14 -0
- data/lib/reline/key_actor/base.rb +10 -4
- data/lib/reline/key_actor/emacs.rb +96 -96
- data/lib/reline/key_actor/vi_command.rb +182 -182
- data/lib/reline/key_actor/vi_insert.rb +137 -137
- data/lib/reline/key_stroke.rb +26 -16
- data/lib/reline/line_editor.rb +295 -489
- data/lib/reline/unicode/east_asian_width.rb +41 -15
- data/lib/reline/unicode.rb +141 -397
- data/lib/reline/version.rb +1 -1
- data/lib/reline.rb +40 -31
- metadata +3 -4
- data/lib/reline/terminfo.rb +0 -158
@@ -1,6 +1,6 @@
|
|
1
1
|
class Reline::Unicode::EastAsianWidth
|
2
2
|
# This is based on EastAsianWidth.txt
|
3
|
-
# UNICODE_VERSION = '
|
3
|
+
# UNICODE_VERSION = '16.0.0'
|
4
4
|
|
5
5
|
CHUNK_LAST, CHUNK_WIDTH = [
|
6
6
|
[0x1f, 2],
|
@@ -174,7 +174,7 @@ class Reline::Unicode::EastAsianWidth
|
|
174
174
|
[0x82d, 0],
|
175
175
|
[0x858, 1],
|
176
176
|
[0x85b, 0],
|
177
|
-
[
|
177
|
+
[0x896, 1],
|
178
178
|
[0x89f, 0],
|
179
179
|
[0x8c9, 1],
|
180
180
|
[0x8e1, 0],
|
@@ -646,6 +646,8 @@ class Reline::Unicode::EastAsianWidth
|
|
646
646
|
[0x261c, -1],
|
647
647
|
[0x261d, 1],
|
648
648
|
[0x261e, -1],
|
649
|
+
[0x262f, 1],
|
650
|
+
[0x2637, 2],
|
649
651
|
[0x263f, 1],
|
650
652
|
[0x2640, -1],
|
651
653
|
[0x2641, 1],
|
@@ -664,6 +666,8 @@ class Reline::Unicode::EastAsianWidth
|
|
664
666
|
[0x266f, -1],
|
665
667
|
[0x267e, 1],
|
666
668
|
[0x267f, 2],
|
669
|
+
[0x2689, 1],
|
670
|
+
[0x268f, 2],
|
667
671
|
[0x2692, 1],
|
668
672
|
[0x2693, 2],
|
669
673
|
[0x269d, 1],
|
@@ -753,14 +757,12 @@ class Reline::Unicode::EastAsianWidth
|
|
753
757
|
[0x3130, 1],
|
754
758
|
[0x318e, 2],
|
755
759
|
[0x318f, 1],
|
756
|
-
[
|
760
|
+
[0x31e5, 2],
|
757
761
|
[0x31ee, 1],
|
758
762
|
[0x321e, 2],
|
759
763
|
[0x321f, 1],
|
760
764
|
[0x3247, 2],
|
761
765
|
[0x324f, -1],
|
762
|
-
[0x4dbf, 2],
|
763
|
-
[0x4dff, 1],
|
764
766
|
[0xa48c, 2],
|
765
767
|
[0xa48f, 1],
|
766
768
|
[0xa4c6, 2],
|
@@ -879,9 +881,11 @@ class Reline::Unicode::EastAsianWidth
|
|
879
881
|
[0x10ae6, 0],
|
880
882
|
[0x10d23, 1],
|
881
883
|
[0x10d27, 0],
|
884
|
+
[0x10d68, 1],
|
885
|
+
[0x10d6d, 0],
|
882
886
|
[0x10eaa, 1],
|
883
887
|
[0x10eac, 0],
|
884
|
-
[
|
888
|
+
[0x10efb, 1],
|
885
889
|
[0x10eff, 0],
|
886
890
|
[0x10f45, 1],
|
887
891
|
[0x10f50, 0],
|
@@ -943,6 +947,16 @@ class Reline::Unicode::EastAsianWidth
|
|
943
947
|
[0x1136c, 0],
|
944
948
|
[0x1136f, 1],
|
945
949
|
[0x11374, 0],
|
950
|
+
[0x113ba, 1],
|
951
|
+
[0x113c0, 0],
|
952
|
+
[0x113cd, 1],
|
953
|
+
[0x113ce, 0],
|
954
|
+
[0x113cf, 1],
|
955
|
+
[0x113d0, 0],
|
956
|
+
[0x113d1, 1],
|
957
|
+
[0x113d2, 0],
|
958
|
+
[0x113e0, 1],
|
959
|
+
[0x113e2, 0],
|
946
960
|
[0x11437, 1],
|
947
961
|
[0x1143f, 0],
|
948
962
|
[0x11441, 1],
|
@@ -982,6 +996,8 @@ class Reline::Unicode::EastAsianWidth
|
|
982
996
|
[0x116b6, 1],
|
983
997
|
[0x116b7, 0],
|
984
998
|
[0x1171c, 1],
|
999
|
+
[0x1171d, 0],
|
1000
|
+
[0x1171e, 1],
|
985
1001
|
[0x1171f, 0],
|
986
1002
|
[0x11721, 1],
|
987
1003
|
[0x11725, 0],
|
@@ -1059,10 +1075,16 @@ class Reline::Unicode::EastAsianWidth
|
|
1059
1075
|
[0x11f40, 0],
|
1060
1076
|
[0x11f41, 1],
|
1061
1077
|
[0x11f42, 0],
|
1078
|
+
[0x11f59, 1],
|
1079
|
+
[0x11f5a, 0],
|
1062
1080
|
[0x1343f, 1],
|
1063
1081
|
[0x13440, 0],
|
1064
1082
|
[0x13446, 1],
|
1065
1083
|
[0x13455, 0],
|
1084
|
+
[0x1611d, 1],
|
1085
|
+
[0x16129, 0],
|
1086
|
+
[0x1612c, 1],
|
1087
|
+
[0x1612f, 0],
|
1066
1088
|
[0x16aef, 1],
|
1067
1089
|
[0x16af4, 0],
|
1068
1090
|
[0x16b2f, 1],
|
@@ -1080,7 +1102,7 @@ class Reline::Unicode::EastAsianWidth
|
|
1080
1102
|
[0x187f7, 2],
|
1081
1103
|
[0x187ff, 1],
|
1082
1104
|
[0x18cd5, 2],
|
1083
|
-
[
|
1105
|
+
[0x18cfe, 1],
|
1084
1106
|
[0x18d08, 2],
|
1085
1107
|
[0x1afef, 1],
|
1086
1108
|
[0x1aff3, 2],
|
@@ -1116,6 +1138,10 @@ class Reline::Unicode::EastAsianWidth
|
|
1116
1138
|
[0x1d1ad, 0],
|
1117
1139
|
[0x1d241, 1],
|
1118
1140
|
[0x1d244, 0],
|
1141
|
+
[0x1d2ff, 1],
|
1142
|
+
[0x1d356, 2],
|
1143
|
+
[0x1d35f, 1],
|
1144
|
+
[0x1d376, 2],
|
1119
1145
|
[0x1d9ff, 1],
|
1120
1146
|
[0x1da36, 0],
|
1121
1147
|
[0x1da3a, 1],
|
@@ -1148,6 +1174,8 @@ class Reline::Unicode::EastAsianWidth
|
|
1148
1174
|
[0x1e2ef, 0],
|
1149
1175
|
[0x1e4eb, 1],
|
1150
1176
|
[0x1e4ef, 0],
|
1177
|
+
[0x1e5ed, 1],
|
1178
|
+
[0x1e5ef, 0],
|
1151
1179
|
[0x1e8cf, 1],
|
1152
1180
|
[0x1e8d6, 0],
|
1153
1181
|
[0x1e943, 1],
|
@@ -1241,15 +1269,13 @@ class Reline::Unicode::EastAsianWidth
|
|
1241
1269
|
[0x1fa6f, 1],
|
1242
1270
|
[0x1fa7c, 2],
|
1243
1271
|
[0x1fa7f, 1],
|
1244
|
-
[
|
1245
|
-
[
|
1246
|
-
[
|
1247
|
-
[0x1fabe, 1],
|
1248
|
-
[0x1fac5, 2],
|
1272
|
+
[0x1fa89, 2],
|
1273
|
+
[0x1fa8e, 1],
|
1274
|
+
[0x1fac6, 2],
|
1249
1275
|
[0x1facd, 1],
|
1250
|
-
[
|
1251
|
-
[
|
1252
|
-
[
|
1276
|
+
[0x1fadc, 2],
|
1277
|
+
[0x1fade, 1],
|
1278
|
+
[0x1fae9, 2],
|
1253
1279
|
[0x1faef, 1],
|
1254
1280
|
[0x1faf8, 2],
|
1255
1281
|
[0x1ffff, 1],
|