forked from cronvel/terminal-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGELOG
3221 lines (1689 loc) · 52.9 KB
/
CHANGELOG
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
v2.1.2
------
Fix TextTable 'autoWidth' bug (#177)
v2.1.1
------
TextTable fix: when providing a custom 'borderChars', check that all character types exists (#173)
v2.1.0
------
New TextTable methods: .setCellAttr() and variations (methods named: set/reset + Cell/Row/Column/Table + Attr()) allowing to modify text attribute of cells (a first step for #166)
v2.0.7
------
sample/detect-terminal-test.js now returns the lib version
v2.0.6
------
Fix BACKSPACE key on OSX
v2.0.5
------
Dependencies
v2.0.4
------
Bar widget: fix rate calculation bug when minValue and maxValue is used (#159)
v2.0.3
------
Fix 'legacyAnsi' markup option for document's widgets (#155)
v2.0.2
------
Submenus now propagate 'itemFocus' events to the main ColumnMenu (fix bug #151)
v2.0.1
------
Fix some niche ansi markup issues, adding a 'legacyAnsi' markup option for document's widgets (#155)
v2.0.0
------
BREAKING: Node >= 14.15.0 (Fermium LTS) required (#156)
v1.49.3
-------
Revert engine changes introduced in v1.49.0 (#156) (will re-introduce it as of v2.0.0)
v1.49.2
-------
Fix a .destroy() bug on ColumnMenu's submenu (#151)
v1.49.1
-------
Fix wrong keybinding for ColumnMenu's submenu (#151)
v1.49.0
-------
Now Node.js v14 is required
ColumnMenu now supports submenu (still beta) (#151)
v1.48.1
-------
ScreenBuffer#put() now supports 'ansi' for the 'markup' option (#153)
Improved the TextBuffer's doc
v1.48.0
-------
New method: BaseMenu#setItem() (#150)
v1.47.2
-------
Add the Element#show() and Element#hide() methods, fixing the missing API (#151)
v1.47.1
-------
Fix #147 (ANSI parser bug)
v1.47.0
-------
Document model: better handling of middle and right click, and now Button are sensible to all 3 clicks
v1.46.1
-------
New: DropDownMenu#setDropDownItem()
v1.46.0
-------
Document model: new 'blinked' event emitted by Button, re-emitted by all *Menu* widget
DropDownMenu now have the option 'clearColumnMenuOnSubmit' (boolean) that clear the drop down column menu on submit (on 'submit' then and once 'blinked')
v1.45.9
-------
Button: submitOnce option
v1.45.8
-------
Button: fixed more .setContent() bugs
v1.45.7
-------
Button: fixed some .setContent() bugs
v1.45.6
-------
Button: fixed some .setContent() bugs
v1.45.6
-------
Button: fixed some .setContent() bugs
v1.45.5
-------
Fix Linux Console default BG color
v1.45.4
-------
Markup: add special reset that also reset forced attr (document-model) (#144)
v1.45.3
-------
Add 'kitty' termconfig (dummy, fully based upon xterm 256/true color config) (#139)
v1.45.2
-------
Following v1.45.1, adding 'itemToggle' event on the ColumnMenuMulti and derivated class
v1.45.1
-------
Add the 'itemFocus' event on the BaseMenu superclass (#143)
v1.45.0
-------
Fix keyboard navigation with Form having SelectList and SelectListMulti (#142), and some 'focus' event issues
v1.44.3
-------
Fix a memory leak in the Document model (#138)
v1.44.2
-------
Fix a memory leak in the Document model (#138)
v1.44.1
-------
Mitigate leak issue with term.table() (#138)
v1.44.0
-------
Better OSX support (see #126 and #127)
v1.43.0
-------
New method TextTable#setCellContent() (#123)
Fix Text#setContent()
Fix a LabeledInput's label highlight bug on direct click focus
v1.42.0
-------
Dependencies upgraded (get-pixels and underlying jpeg-js, pngjs and other lib)
Upgrade forces Node v8 drop, now supports Node >= v10
v1.41.0
-------
Container now supports scrolling, and so does Window.
v1.40.0
-------
Fix a bad ScreenBuffer#put() behavior when trying to write out of the buffer without wrap:true
Container now supports a 'movable' option that makes them movable by mouse-drag
New Window widget with title, border, movable by default, that will serve as a base to iterate upon (planned feature: resizing, minimizing, docking, closing, scrolling)
v1.39.0
-------
New TextBox methods: .scrollToTop(), .scrollToBottom() and .appendLog() (see the doc), and minor draw fix
v1.38.0
-------
New: Bar widget, featuring text-over-bar, suitable as a component for a future progress-bar widget
Fixing SelectList master-button enlargement bug
v1.37.0
-------
New: AnimatedText widget, used for the new .spinner() (#98)
Lot of inline mode fixes for document-model widget
Documentation on .spinner(), .table() and TextTable (#109), built-in box/border/frame and animation/spinner
v1.36.0
-------
ColumnMenu height bugfixes, autoWidth/Height support, and 'parentResize' event support (issue #120)
v1.35.13
--------
Document model -- ColumnMenu: fix a redraw bug introduced in v1.35.0 (issue #120)
v1.35.12
--------
Documentation
v1.35.11
--------
Document model: new option 'autoWidth' and 'autoHeight' to adjust width/height to the parent Container size
TextBox inside a Layout/Container auto-adjust itself on Container resizing (#119)
Fix Text/Button display error when on the last column of a Container
v1.35.10
--------
TextBuffer now supports content containing ANSI code, and so does TextBox (#119)
v1.35.9
-------
Fix a nasty bug/regression introduced in v1.35.8 (TextBuffer)
v1.35.8
-------
TextBuffer now supports .append() and .prepend()
TextBox now supports .appendContent() and .prependContent()
v1.35.7
-------
.inputField(): Fixing (again) issues related to full-width char (#117)
v1.35.6
-------
Add debug facilities for issue #116, and a maybe-fix
v1.35.5
-------
.inputField(), .progressBar() and all .*Menu() fallback to the last line position when requesting cursor location is not possible on the terminal (mainly a Windows problem) (#74)
v1.35.4
-------
Fix backDelete behavior when the previous char is a full-width char (#117)
v1.35.3
-------
Add 'cli' to the package keywords
v1.35.2
-------
Fix the 'strictInline' mode clipping issue for widget with a height greater than the terminal height (#111)
v1.35.1
-------
Many Document-model fix, including not altering user passed options
v1.35.0
-------
New document-model widget: InlineInput, it's like .inputField() and implements almost every features of it, and will supersede it once its inline-mode is ready
TextBuffer: fix some cursor position issue with line-wrapping
RowMenu now supports pagination
TextBuffer now supports voidTextBuffer (a kind of 'ghost' textBuffer companion, used to implement hint and placeholder in InlineInput)
v1.34.5
-------
Transmit lineWrap/wordWrap options from LabeledInput and Form to EditableTextBox
v1.34.4
-------
TextBuffer now supports auto-wrapping
v1.34.3
-------
TextBuffer now supports both word-wrapping and 'hard' line-wrapping
word-wrapping options are now spelled 'wordWrap' everywhere in Terminal Kit, old 'wordwrap' spelling is DEPRECATED but kept for backward compatibility
v1.34.2
-------
.inputField() now supports CTRL_R auto-completion, using history as its source instead of options.autoComplete
v1.34.1
-------
TextTable fixed when hasBorder:false, plus a whole bunch of new options to set attributes of columns, rows, cells, borders... as well as markup support (#109)
v1.34.0
-------
New: document model TextTable
New: term.table() (using TextTable in inline mode)
New: ScreenBuffer* now support inline terminal rendering (i.e.: no moveTo operation, just newlines)
New: Document model now supports “strict” inline mode (no grabInput, no asyncness, but only for static and one-time-renderable elements, like TextTable)
v1.33.15
--------
Dependency
v1.33.14
--------
Fix the SelectMenuMulti behavior, submitting on 'clickOut'
v1.33.13
--------
Fix a scrolling bug in EditableTextBox
v1.33.12
--------
Some word-wrapping bugs fixed for TextBuffer
horizontal Slider supported
TextBox supports horizontal scroll bar now
v1.33.11
--------
Word-wrapping support for TextBuffer and TextBox
Improved scrolling on Slider, TextBox and EditableTextBox, as well as more navigation keys and tiny draw-code performances bugs fixed
v1.33.10
--------
Minor improvement on Slider (fix micro bug of the cursor hanging at the bottom and one cell right off of the slider)
v1.33.9
-------
Document model: Fix some scrollbar/slider bug, allow Form/LabelledInput to have scrollbar
v1.33.8
-------
New: Document model has now a Slider widget (only vertical support ATM)
Now TextBox and EditableTextBox can have a vertical scrollbar using the new Slider widget
v1.33.7
-------
Fix scrollable for TextBox, it can now get focus for listening key events (page up/down)
All *Menu* are now sensible to mouse wheel
v1.33.6
-------
Form/LabeledInput: fix the scrollable option
v1.33.5
-------
Form/LabeledInput: add the scrollable option
v1.33.4
-------
Document model: improved mouse event
TextBox and EditableTextBox scrolling is greatly improved (auto scroll when needed, scroll move cursor, mouse wheel support)
v1.33.3
-------
Fix Document model drag event
basic support for scrollable TextBox
v1.33.2
-------
ColumnMenu* support next/previous/first/last page key bindings
v1.33.1
-------
EditableTextBox supports cursor moves on click, and supports middle-click that paste the so-called 'primary' clipboard
LabeledInput support clipboard operation
v1.33.0
-------
New: clipboard API
Mouse event: new event subtype MOUSE_DRAG
TextBuffer support selection with hilight (inverse foreground and background)
TextBox are selectable and copy to primary clipboard on doing so while CTRL_O copy current selection to cut clipboard
EditableTextBox: CTRL_P paste from cut clipboard
v1.32.3
-------
.singleLineMenu() now supports option 'align' (=right|center|left) and 'fillIn' (boolean) (inspired by PR #105)
v1.32.2
-------
Dependencies
v1.32.0 - v1.32.1
-----------------
String-kit dependency upgraded: better formatting options!
v1.31.7 - v1.31.10
------------------
Dependencies (string-kit format improvements)
v1.31.6
-------
Support for new line in ScreenBuffer#put() need the opt-in option 'newLine' set to true, fixing v1.31.5 non-backward compatible behavior change (#103)
v1.31.5
-------
Limited support for newline in ScreenBuffer#put(), replace other control chars by a space (#103)
v1.31.4
-------
Add the x,y option to .progressBar() (may somewhat solve #99)
v1.31.3
-------
Dependencies
v1.31.2
-------
Reject bad RegExp for .inputField's tokenRegExp option: throw if the RegExp doesn't have the 'g' flag (fix #97)
v1.31.1
-------
Fix gnome color reporting
v1.31.0
-------
New: ScreenBuffer#fill() now supports a 'region' option, when specified only that region will be filled
v1.30.0
-------
Finally ScreenBuffer* support fullwidth char
WARNING: ScreenBufferHD breaking changes (beta API - not under SemVer)
* Support for *defaultColor is dropped because it is not compatible with alpha channel and blending
* attributes changed: now color channels are inside 'color', and bgColor is consistent, allowing to pass similar (standard) color object
to both the foreground and background (see the doc)
v1.29.3
-------
Emergency bugfix (#95)
v1.29.2
-------
Fix a TextBuffer bug in .setText() when markup is on
v1.29.1
-------
Palette now has a 256-colors fallback
ANSI colors are available in complex markup
v1.29.0
-------
New: 24 bits Palette for the ScreenBuffer, complex markup for using new colorscheme/color name of the Palette
Lot of bug related to markup fixed (width, wordwrap, ...)
v1.28.42
--------
Fixed markup's parameters pollution (markup + TextBuffer)
v1.28.41
--------
Add some 256-color names (grayscale)
v1.28.40
--------
Document model -- New ColumnMenu* attr option: 'buttonEvenBlurAttr', that match only even entries
v1.28.39
--------
Fixed ScreenBuffer#put() regression ('reset' markup should reset to the provided 'attr' option, if any)
v1.28.38
--------
Document model -- fixed Document#focusNext() regression, refacto of ScreenBuffer#put() to work with the new factorized markup parser
v1.28.37
--------
Fix ScreenBufferHD#put() regression: 'markup' option is working again
update the doc to add a list of supported markup
v1.28.36
--------
Document model -- New: BaseMenu now has a .focusValue() method that give focus to the element having that value
v1.28.35
--------
Document model -- New: Buttons now have a special action key bindings
v1.28.34
--------
Document model -- better default colors for SelectList* and better default handling
v1.28.33
--------
TextBuffer#setContent() now support markup
v1.28.32
--------
Fix markup width bug
v1.28.31
--------
Fix empty SelectList* bug
v1.28.30
--------
Document model -- SelectList* now options.content is a shortcut for options.master.content
v1.28.29
--------
Document model -- SelectListMulti now submit when reducing
v1.28.28
--------
Document model -- New: Form now supports SelectListMulti
v1.28.27
--------
Document model -- New: ColumnMenuMulti, SelectListMulti: for multiple choices
v1.28.26
--------
Document model -- new widget: ToggleButton
v1.28.25
--------
Document Model -- Fix zIndex trouble in Form when multiple SelectList exist, now there is a zIndex propagation mecanism
v1.28.24
--------
TextBuffer: fixing the .setText() bug that stripped newLines (wasn't affecting display, only once .getText() is called)
v1.28.23
--------
Document model -- Form: fix regression, multi-line text input are possible again
v1.28.22
--------
Document model -- SelectList: initial value and .setValue() are fixed
v1.28.21
--------
Document model -- Hidden element fixed to not interfere with any click or mouse motion, or whatever, SelectList dimension fixed, Form: support for SelectList added
v1.28.20
--------
Fix .inputField() delete and backDelete bug under 'alwaysRedraw' behavior, e.g. when a tokenHook is provided (issue #79, replace PR #94)
v1.28.19
--------
Document model -- New: SelectList
v1.28.18
--------
Document model -- fixing z-aware click detection
v1.28.17
--------
Document model -- new: zIndex, drawing and detecting click is now z-aware
v1.28.16
--------
New methods for TextBuffer: .moveToEndOfWord() and .moveToStartOfWord()
Document model: EditableTextBox and widget using it now supports moving from word to word using CTRL+LEFT/RIGHT
v1.28.15
--------
Document model: better behavior of multi-line text-input in forms
dependencies upgraded
v1.28.14
--------
Document Model: now Document emit 'key' events only when no default nor shortcut prevailed
v1.28.13
--------
Document Model: new: shortcut registration and 'shortcut' event on all Elements
v1.28.12
--------
Document Model: improved ColumnMenu pagination
Button now have an 'internalRole' property
v1.28.11
--------
Document Model: very raw support for pagination in ColumnMenu
v1.28.10
--------
Document model: now support those new events: 'clickOut', 'leave', 'enter'
DropDownMenu disappear on clicked out
v1.28.9
-------
Document model: fixing TextBox and non-string content
v1.28.8
-------
New: document model's RowMenu now have 'buttonSeparator' and 'buttonSeparatorAttr' options
v1.28.7
-------
Document model: DropDownMenu has ENTER/KP_ENTER key to submit top-level buttons (since it can be submittable now)
v1.28.6
-------
Document model: now 'click' and 'hover' events are emitted on the first leaf Element that has a listener for either 'click' or 'hover'
v1.28.5
-------
Document model: DropDownMenu now can have submittable top button (buttons from the row menu)
v1.28.4
-------
Document model: TextInput now correctly set content/value on creation
v1.28.3
-------
New: .singleLineMenu() has the 'selectedIndex' option just like .singleColumnMenu() (#93)
v1.28.2
-------
Dependencies
v1.28.1
-------
Fixing .singleLineMenu() 'highlight' event to correctly report the highlight index (#90)
v1.28.0
-------
New: now term.color() and term.bgColor() accepts color names (#87)
v1.27.3
-------
string-kit dependency
v1.27.2
-------
Dependencies upgraded, CHANGELOG edited (missing Node engine v8.10+ requirement informations #86)
v1.27.1
-------
Dependencies upgraded, CHANGELOG edited (missing Node engine v8.10+ requirement informations #86)
v1.27.0
-------
New: 'highlight' event in .inputField(), .singleLineMenu() and .singleColumnMenu(), see the doc (issue #81, replace PR #82)
v1.26.11
--------
Fix the doc, add a notice about .drawImage() and HTTP URL (#83)
v1.26.10
--------
Now relying on [email protected] which completely remove xregexp dependency
v1.26.9
-------
Emergency fix: xregexp does not work as of v4.2.2
v1.26.8
-------
A progress bar controler now has a .reset() method #77
v1.26.7
-------
Fix issue #76 (TextBuffer)
v1.26.6
-------
Report bad escape sequence entry and continue anyway
v1.26.5
-------
Dependencies upgraded
v1.26.4
-------
Important notice: Node engine v8.10.0 Dubnium LTS is now required, but still it's not a minor semver because it's a fix:
the lib uses async functions since v1.19.0 and thus won't load on Node v6, therefore the strict engine limitation
should have been done on v1.19.0. This update just make thing clear. Sorry about that.
Dependencies upgraded.
v1.26.3
-------
Add the 'cancelable' option for .singleLineMenu() and .singleColumnMenu()
v1.26.2
-------
Important String-kit dependency fixed (format %I %Y and %E had bug)
Document model: fix focus cycling with Form
v1.26.1
-------
If present, loads the original 'get-pixels' instead of '@cronvel/get-pixels'
v1.26.0
-------
TextBuffer now supports the text-machine module (state machine)
TextBox/EditableTextBox constructor now support the 'stateMachine' option
v1.25.0
-------
Compatibility WARNING:
Fix ScreenBuffer, so default fg/bg colors are... well... the default. (instead of black background)
This behavior was a bug, but it may change existing app, especially when the terminal 'default' background color
is different from the color register 0, and the app forgot to initialize the screenBuffer with
a background color (many terminals use color 0 or 7 as the default for background, some like Gnome-Terminal have a special
color for that).
So before 1.25, when unspecified, the background color was 'black' (color register 0, it was a bug),
starting from 1.25, when unspecified, the background color is 'default' (the terminal default).
New: TextBox and EditableTextBox