Daniel Imms
e8d99d50a6
Remove vs dependency in common
...
Fixes #5631
2026-01-30 06:03:16 -08:00
Daniel Imms
144bdb5dd0
Move over to vs disposables
2024-07-14 16:19:20 -07:00
Per Bothner
dc6dd6d2a8
Remove precedingCodepoint - use precedingJoinState instead
...
repeatPrecedingCharacter (for REP sequence) changed to look at
the grapheme cluser to the "left" in the BufferLine, and repeat that.
This is an extension of the xterm behavior, and changes the
semantics of REP, so is not fully compatible.
However, the new behavior is cleaner and saner.
Moved precedingJoinState property to EscapeSequenceParser.
2023-08-24 07:58:06 -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
d219da480c
Remove fill polyfill
...
Fixes #4241
2022-10-31 12:24:59 -07:00
Daniel Imms
ac659cb412
Prevent overriding of Disposable.dispose
...
A common mistake made was overriding dispose and not calling super.dispose,
so a TS trick is now used to move it to a readonly property instead of a
member method which prevents it being overridden.
2022-10-08 08:27:10 -07:00
Jörg Breitbart
869c11f1d8
interface for subparser stack saves
2021-03-17 22:39:09 +01:00
Jörg Breitbart
cc005a274d
multiple changes:
...
- reorder exception throwing to be sync to band position
- document WriteBuffer._innerWrite
- remove any declarations
- remove conditional assigments
- use faster return value branching in all parsers
- remove dead code in benchmark
2021-02-27 20:18:41 +01:00
Jörg Breitbart
b4635eddf3
make reset async aware
2021-02-25 19:04:37 +01:00
Jörg Breitbart
9985ae2c38
fix linter warning
2021-02-25 15:44:39 +01:00
Jörg Breitbart
bce3269e44
async OSC/DCS registering/dispose tests on parser instance
2021-02-25 15:41:10 +01:00
Jörg Breitbart
26502114d4
minor tweaks, API docs update
2021-02-15 16:24:29 +01:00
Jörg Breitbart
041e259c11
OSC impl, OscParser tests
2021-02-08 03:03:28 +01:00
Jörg Breitbart
d59f4d2f6f
async impl for DCS, DcsParser tests
2021-02-08 01:53:59 +01:00
Jörg Breitbart
68b7f88523
async parser tests for CSI and ESC
2021-01-24 17:09:16 +01:00
Jörg Breitbart
2f07ed9976
simplify stack save in parser
2021-01-23 13:05:57 +01:00
Jörg Breitbart
0ad9f70645
Merge branch 'master' into async_handlers
2021-01-22 17:49:31 +01:00
Jörg Breitbart
3f659a15da
minor fixes:
...
- better perf for short DCS without params (8 times faster)
- test perf for class and string based interfaces of OSC and DCS
separately
- undo wrong commit on parser
2021-01-21 15:58:03 +01:00
Jörg Breitbart
d67faff92a
simplify return eval
2021-01-21 11:38:47 +01:00
Jörg Breitbart
c50c134e25
simplify parser handler interface:
...
- remove setHandler
- apply boolean return to ESC|CSI|OSC|DCS handlers
(rewrite empty return defaulting to true)
- rename addHandler to registerHandler
2021-01-20 23:03:55 +01:00
Jörg Breitbart
bc1048062d
early version of async support for CSI and ESC handlers
2021-01-20 20:05:14 +01:00
Daniel Imms
2e9b4779c9
Migrate from typedef to explicit-function-return-type
2020-03-28 07:10:08 -07:00
Daniel Imms
2c0669c865
Fix some naming conventions issues
2020-03-28 06:57:55 -07:00
Jörg Breitbart
6d66c6a0c8
tests for function identifiers; fix stacking of multiple intermediates
2019-09-02 10:07:12 +02:00
Jörg Breitbart
a7e64ad537
fix bugs
2019-08-23 15:32:05 +02:00
Jörg Breitbart
a2c266a005
rename handler type aliases to XyType to avoid ambiguity with class based types
2019-08-11 18:45:34 +02:00
Jörg Breitbart
3a5d0bd368
fix escHandlers type and disposing
2019-08-11 18:38:35 +02:00
Jörg Breitbart
b35383915d
cleanup interfaces
2019-08-11 17:55:24 +02:00
Jörg Breitbart
f677516e95
better interfaces, cleanup
2019-08-11 16:45:35 +02:00
Jörg Breitbart
7252a5921d
cleanup parser rules and docs
2019-07-31 14:20:36 +02:00
Jörg Breitbart
83a1340cc4
abort and cleanup subparsers for CAN and SUB
2019-07-31 12:03:12 +02:00
Jörg Breitbart
812fc5e6ec
register functions by prefix/intermediate/final bytes
2019-07-31 04:49:01 +02:00
Jörg Breitbart
82aaef29f1
dcs parser tests
2019-07-26 15:07:24 +02:00
Jörg Breitbart
6606024c2b
support for multiple DCS handler
2019-07-26 01:58:42 +02:00
Jörg Breitbart
f985c30847
add addEscHandler
2019-07-25 22:44:08 +02:00
Jörg Breitbart
f626e1c93d
fix OSC parsing
2019-07-25 20:38:14 +02:00
Jörg Breitbart
d8364d749c
remove null type from dcsHandler
2019-07-25 01:15:18 +02:00
Jörg Breitbart
e6ac138620
Merge branch 'master' into cleanup_sequences_files
2019-07-06 20:45:50 +02:00
Jörg Breitbart
6d22772d16
fix REP to be in line with vttest
2019-07-06 18:09:38 +02:00
Jörg Breitbart
5f8d07ac62
cleanup Types.ts, docs for ZDM
2019-07-04 13:50:03 +02:00
Jörg Breitbart
6a691f2548
fix parser docs
2019-07-04 13:01:18 +02:00
Jörg Breitbart
009b3c6ef8
simply error parsing state
2019-07-04 12:38:14 +02:00
Jörg Breitbart
62007c3be4
comment storable amount of params in parser
2019-06-17 23:42:56 +02:00
Jörg Breitbart
1dd63a6d66
apply type over codebase
2019-06-17 23:31:54 +02:00
Jörg Breitbart
c5385a640d
add ":" to param transitions, fix parse loop and tests
2019-06-17 21:54:51 +02:00
Daniel Imms
0b2df9d611
Split common/ Types.ts into .d.ts and Constants.ts
2019-06-14 21:30:51 -07:00
Daniel Imms
f8e7ff24d9
Merge core into common
...
Part of #1507
2019-06-08 16:09:27 -07:00