-
Notifications
You must be signed in to change notification settings - Fork 201
/
CHANGELOG
3598 lines (1889 loc) · 59.3 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
v3.1.1
------
More paths added to .npmignore
v3.1.0
------
Publishing the new Document widget: Inspector
v3.0.2
------
New Document's Element API: .destroyNoRedraw()
ColumnMenu (and BaseMenu): improved key navigation
Dependencies upgraded
v3.0.1
------
Piping to a file should provide a virtually infinite width and height (should partly fix #240)
v3.0.0
------
BREAKING: requires at least Node v16.13
EditableTextBox now has a 'debounceTimeout' parameter (defaulting to 100ms), avoiding redrawing too much (and recomputing color hilighting) when the user slam the keyboard
v2.11.7
-------
Fix TextBuffer#moveTo() not respecting 'forceInBound' property
v2.11.6
-------
Add missing API method: TextBox#setTabWidth()
v2.11.5
-------
Element: get key binding/action binding
v2.11.4
-------
TextBuffer fixes, and .removeTrailingSpaces()
v2.11.3
-------
New (missing) method: EditableTextBox#setStateMachine()
v2.11.2
-------
Element#redraw() is DEPRECATED, replaced by Element#outerDraw() (more meaningful name)
fix some drawing issue
EditableTextBox has new property: this.autoCompleteHintMinInput
v2.11.1
-------
TextBuffer: Support for regexp with .regexpFindNext()
v2.11.0
-------
New (pseudo) widget: Border, add border (with or without shadow) to any other widgets, just by setting the 'parent' parameter
v2.10.6
-------
Fix InlineInput and InlineFileInput completion's hint
v2.10.5
-------
EditableTextBox now supports 'smartStartOfLine' action (aka smarthome)
v2.10.4
-------
Fix EditableTextBox scrolling redraw issues
v2.10.3
-------
Fix TextBuffer#offsetToCoordinate() bug when the offset is just after a filler char
v2.10.2
-------
TextBuffer#updateCursorFromCell() now return true if successful
Better META names
v2.10.1
-------
TextBuffer: selection highlighting is now done at blitter time (more flexible, less bugs)
v2.10.0
-------
New: InlineMenu
v2.9.8
------
TextBuffer: .findNext() and .findPrevious()
v2.9.7
------
Fix broken DropDownMenu keyboard navigation
v2.9.6
------
EditableTextBox: dragEnd behavior improved/fixed
delete/backDelete on selection boundary improved/fixed (delete the whole selection)
v2.9.5
------
TextBuffer/EditableTextBox/TextBox: lot of copy/paste from/to selection/documentClipboard/systemClipboard improvements and fixes
v2.9.4
------
Document widgets: fix focus and .hasFocus property, fix drag event handling (no more sending drag event outside the drag source element, except for widgets having outerDrag turned on) and bugs
TextBuffer: fix region/selectionRegion
TextBox/EditableTextBox fix mouse and keyboard selection bugs
v2.9.3
------
TextBuffer: fix a lot of selection issue when editing
v2.9.2
------
TextBuffer fix various bugs with selection+edition
EditableTextBox: fix selection+edition
core: add missing keys Ctrl-arrows and Ctrl-Shift-arrows
v2.9.1
------
Fix .insert()/.inlineInsert() char count reporting
v2.9.0
------
TextBuffer: new .deleteSelection()/.deleteRegion()
EditableTextBox: supports for deleteSelection and extendSelection* actions
v2.8.12
-------
New: TextBuffer#deleteLine()
EditableTextBox now support deleteLine action
v2.8.11
-------
Various bugfixes
Document's widget emitting a 'submit' event have a fourth argument: the original widget that triggered the submit (usually a Button)
new ColumnMenuMixed widget
Fix ToggleButton and ColumnMenuMulti constructor's params: blurLeftPadding/focusLeftPadding/etc now set default values for turned
On/turnedOff*Padding
DropDownMenu now fully works with togglable entries
v2.8.10
-------
Button/ToggleButton: fix content variation depending on things like focus/blur/turned on/turned off/etc...
v2.8.9
------
EditableTextBox: support for newline auto-indent hook
v2.8.8
------
Fix TextBuffer's .delete() and .backDelete() bugs when count > 1 and there are filler chars
v2.8.7
------
New Meta key behaviour fixed/refined
v2.8.6
------
Fix bug introduced in 2.6.0 (drawing bug on EditableTextBox creation, happens too soon)
v2.8.5
------
Fix LabeledInput init troubles
Document widget -- key bindings / .onKey() refacto: everything is inherted now and user actions are inside Element#userAction name => method
Now inheriting Widget from another must be done with Element.inherit()
v2.8.4
------
Improve Meta Key behaviour
v2.8.3
------
EditableTextBox: Fix bug introduced in 2.8.x that prevented content passed to the constructor to be set
Add methods term.setMetaKeyPrefix() and Document#setMetaKeyPrefix() to handle meta key combo, use it on various widget (NOT DOCUMENTED ATM)
Add methods Document#getCopyBuffer()/.setCopyBuffer() and differentiate between OS clipboard and internal application clipboard (NOT DOCUMENTED ATM)
Add startOfSelection/endOfSelection to widgets/TextBuffer (NOT DOCUMENTED ATM)
v2.8.2
------
Fix debug issue
v2.8.1
------
Document widgets: fix issues when destroying widgets, and issues with event listener + inheritance
v2.8.0
------
New Document widget - InlineFileInput: an InlineInput that autocomplete for files and/or directories, accepting or not unexisting files, etc...
v2.7.0
------
MINOR: now all document widgets that support copy and paste will use Ctrl-Y (by default) for copy instead of Ctrl-O (vi/vim use 'y' for copying, aka 'yank'), it still use Ctrl-P for paste (vi/vim use 'p' for paste, aka 'put')
v2.6.0
------
Prepare for third-party text-editor
v2.5.1
------
String-kit unicode width improvements
v2.5.0
------
Dependencies upgraded: greatly improving emoji full-width detection (#193)
v2.4.0
------
New: Android Termux detection and support
v2.3.0
------
TextBuffer now supports wide characters (aka full-width char), so does class depending on it like TextTable (#193)
v2.2.4
------
Fix .contentWidth/.contentHeight bug in TextTable, creating new (private props) .rawContentWidth/.rawContentHeight to store the content size before shrinking/expanding (#189)
v2.2.3
------
Improve the new 'complex' markup support, and fix related bugs
v2.2.2
------
Markup doc updated
v2.2.1
------
Support for ^[#<color>] markup in inline term()
v2.2.0
------
Refacto: Using new string-kit's markup parser
v2.1.8
------
Fix a possible ReDoS
v2.1.7
------
Fix inline table behavior (#186)
v2.1.6
------
Fix a circular require error (#181)
v2.1.5
------
Fix no lazy require mode
v2.1.4
------
Add a browser build (#176)
v2.1.3
------
New: use require('terminal-kit/lib/termkit-no-lazy-require.js') if lazy loading is troublesome (#176)
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