Daniel Imms
2a5239578a
Revert "Merge pull request #5321 from Tyriar/5319"
...
This reverts commit a260f7d288 , reversing
changes made to 2042bb8502 .
2025-06-18 06:09:53 -07:00
Daniel Imms
e3e11b1a90
Reflow on resize using similar logic to conpty
...
This aligns reflowing much closer to how conpty does it. This was always
an issue but only became a big issue recently because conpty 1.22+ opts
to passthrough sequences rather than reprinting aggressively. This means
that the conpty buffer being in sync with the xterm.js buffer is more
important, otherwise the cursor will show up in a seemingly random
position.
The existing reflow appears to differ somewhat in conpty, like it seems
to reflow at the word level, not the character level like xterm.js, but
refining that closer if not worth the effort since conpty may end up
relying on the terminal's buffer in the future[1].
Fixes #5319
Fixes #3513
Related #4231
Related microsoft/vscode#241978
[1]: https://github.com/microsoft/terminal/blob/main/doc/specs/%2313000%20-%20In-process%20ConPTY.md
2025-03-14 10:26:32 -07:00
Daniel Imms
65899a9b50
Update src/common/buffer/Buffer.ts
2024-12-12 06:25:36 -08:00
Jacob Bandes-Storch
ae2622e5ce
Add reflowCursorLine option
2024-12-05 18:03:27 -08:00
Daniel Imms
90ff6f3d06
Migrate most EventEmitter to base/ Emitter
2024-07-14 07:41:56 -07:00
Daniel Imms
dd106ae9b8
Speed up clearing all markers, mass event listener dispose
...
Part of microsoft/vscode#213174
2024-06-03 11:43:31 -07:00
Daniel Imms
b6fd7a2b93
Ignore no-unused-vars in test files
2023-08-23 04:42:21 -07:00
Daniel Imms
530f758905
Restrict comments to 100 characters
...
This is a rule I try enforce in PR but it's a bit of a hassle, this will
give a lint warning when it happens resulting in:
- Yellow underline in supported editors when eslint is installed
- Compilation will succeed since it's a warning not an error
- CI will fail as it does not allow lint warnings
Special case comments are ignored which includes @vt comments, table
comments and commented out code.
2023-08-12 09:04:41 -07:00
Daniel Imms
22140b5e94
Add more granular windowsPty option
...
See microsoft/vscode#134448
2023-05-29 09:40:00 -07:00
Jörg Breitbart
49ec7199e9
remover iterator and stringIndexToBufferIndex from buffer
2022-12-19 19:50:18 +01:00
Jörg Breitbart
a562f33d53
remove nonsense exp runtime of rescans
2022-12-07 19:43:56 +01:00
Jörg Breitbart
309ba47483
change batch size to 500
2022-12-05 20:03:25 +01:00
Jörg Breitbart
4084dc3949
remove _forceMemoryCleanup
2022-12-05 19:10:55 +01:00
Jörg Breitbart
1f5159febe
use IdleTaskQueue & Date.now; some testcases
2022-12-03 16:49:26 +01:00
Jörg Breitbart
3a2ae96960
Merge branch 'master' into buffer_optimizations
2022-12-03 11:24:51 +01:00
Daniel Imms
7796b4101a
Type Buffer.tabs
2022-10-16 06:58:20 -07:00
Daniel Imms
114924f3fa
Add eslint-plugin-jsdoc and enable check-param-names
2022-10-15 08:38:14 -07:00
Jörg Breitbart
14b99dca76
Merge branch 'master' into buffer_optimizations
2022-10-09 21:41:06 +02:00
Daniel Imms
4d97729010
Revert "Merge pull request #4166 from Tyriar/event_with_emitter"
...
This reverts commit d22f7c9edd , reversing
changes made to 1f8e6f0952 .
2022-10-06 09:48:54 -07:00
Daniel Imms
ed15a8e170
Create new event with emitter object to simplify code
2022-10-01 08:45:40 -07:00
Jörg Breitbart
785b932d75
lazy cleanup on buffer
2022-09-28 15:57:58 +02:00
Megan Rogge
52044e9aad
clear all markers ( #3868 )
2022-06-21 18:26:02 +00:00
meganrogge
82706e77db
add to mockbuffer
2022-03-02 20:19:49 -06:00
Megan Rogge and Daniel Imms
1af22b24c0
Update src/common/buffer/Buffer.ts
...
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com >
2022-03-02 15:18:29 -06:00
Megan Rogge and Daniel Imms
85dd6a9e87
Update src/common/buffer/Buffer.ts
...
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com >
2022-03-02 15:18:24 -06:00
Megan Rogge
7bf12f9123
break into two methods
2022-03-02 20:29:31 +00:00
meganrogge
f5b66775db
during buffer clear, don't dispose of markers on first line
2022-03-02 12:36:35 -06:00
meganrogge
ef0312473e
re-add i-- so that markers on the same line get disposed of
2022-02-24 12:07:54 -06:00
meganrogge
34ec80a322
use ybase + y when clearing markers
2022-02-24 12:02:11 -06:00
meganrogge
e8579bd655
fix marker splice by decrementing index
2022-02-23 16:02:08 -06:00
Daniel Imms
da5c24a33f
Fix clearMarkers when y=0 and avoid extra indexOf
2022-02-22 06:38:01 -08:00
meganrogge
f839a0da8b
use splice instead of filter
2022-02-18 17:50:12 -06:00
meganrogge
5b44deaa30
get rid of markers once they've been disposed via clear
2022-02-18 15:38:07 -06:00
meganrogge
7134eaf20c
remove trailing space
2022-02-15 11:57:20 -06:00
meganrogge
9847dcaacc
fix #3641
2022-02-15 11:38:04 -06:00
meganrogge
ac7486856c
improve conditional
2022-02-04 17:41:54 -06:00
meganrogge
8999d3948a
fix test and improve name
2022-02-04 17:39:37 -06:00
meganrogge
e9913522ac
fix buffers not clearing
2022-02-04 16:11:04 -06:00
Daniel Imms
1d3c1964f9
Merge branch 'master' into exception_3602
2022-01-11 08:12:24 -08:00
Daniel Imms
a6b0734fe8
Prevent exception being thrown in reflow smaller
...
Fixes #3602
2022-01-11 08:11:36 -08:00
Simon Lamon
1dcc1d1baf
fix test and replace options with rawOptions
2022-01-08 08:20:50 +00:00
Daniel Imms
f19d7f0b70
Require spacing of objects outside of test files
2021-04-02 07:08:06 -07:00
coderaiser and Daniel Imms
a9862a1a6f
Update src/common/buffer/Buffer.ts
...
Co-authored-by: Daniel Imms <tyriar@tyriar.com >
2020-06-01 16:30:17 +03:00
coderaiser
f63f1f7b95
chore: lint using putout
2020-06-01 00:04:17 +03:00
Daniel Imms
62b8398719
Merge branch 'master' into pr/jerch/2751
2020-05-03 07:14:02 -07:00
Daniel Imms
d756086b8e
Move InputHandler into common
...
Part of #2749
Part of #1507
2020-04-26 07:24:30 -07:00
Jörg Breitbart
fd5f5e3204
extend AttributeData with eAttrs, implement SGR 4 subparams, tests
2020-03-08 18:57:05 +01:00
Daniel Imms
843ea1b610
Fix scrollback going missing when increase size on Windows
...
This also forces the scroll bar to sync after a resize early, this may fix
other bugs.
Fixes #2459
2019-10-16 15:41:47 -07:00
Jörg Breitbart
cb25e2d4e0
save/restore charset in DECSC/DECRC
2019-07-08 02:42:02 +02:00
Daniel Imms
9bb16e4b16
Fix restore cursor related tests
...
Weird failure happening sometimes after #2217 , not sure why pipelines
didn't pick it up.
2019-06-15 19:24:14 -07:00