diff --git a/src/core/input/TextDecoder.test.ts b/src/core/input/TextDecoder.test.ts index 68eb1d9b6..dc358bc52 100644 --- a/src/core/input/TextDecoder.test.ts +++ b/src/core/input/TextDecoder.test.ts @@ -28,7 +28,6 @@ function fromByteString(s: string): Uint8Array { return result; } - const TEST_STRINGS = [ 'Лорем ипсум долор сит амет, ех сеа аццусам диссентиет. Ан еос стет еирмод витуперата. Иус дицерет урбанитас ет. Ан при алтера долорес сплендиде, цу яуо интегре денияуе, игнота волуптариа инструцтиор цу вим.', 'ლორემ იფსუმ დოლორ სით ამეთ, ფაცერ მუციუს ცონსეთეთურ ყუო იდ, ფერ ვივენდუმ ყუაერენდუმ ეა, ესთ ამეთ მოვეთ სუავითათე ცუ. ვითაე სენსიბუს ან ვიხ. ეხერცი დეთერრუისსეთ უთ ყუი. ვოცენთ დებითის ადიფისცი ეთ ფერ. ნეც ან ფეუგაით ფორენსიბუს ინთერესსეთ. იდ დიცო რიდენს იუს. დისსენთიეთ ცონსეყუუნთურ სედ ნე, ნოვუმ მუნერე ეუმ ათ, ნე ეუმ ნიჰილ ირაცუნდია ურბანითას.', @@ -41,7 +40,6 @@ const TEST_STRINGS = [ 'Лорем ლორემ अधिकांश 覧六子 八メル 모든 בקרבת 💮 😂 äggg 123€ 𝄞.' ]; - describe('text encodings', () => { it('stringFromCodePoint/utf32ToString', () => { const s = 'abcdefg'; @@ -110,7 +108,6 @@ describe('text encodings', () => { assert(decoded, 'Ä€𝄞Ö𝄞€Ü𝄞€'); }); }); - }); describe('Utf8ToUtf32 decoder', () => { diff --git a/src/core/input/TextDecoder.ts b/src/core/input/TextDecoder.ts index b9ac19ce0..750298229 100644 --- a/src/core/input/TextDecoder.ts +++ b/src/core/input/TextDecoder.ts @@ -3,7 +3,6 @@ * @license MIT */ - /** * Polyfill - Convert UTF32 codepoint into JS string. * Note: The built-in String.fromCodePoint happens to be much slower @@ -19,7 +18,6 @@ export function stringFromCodePoint(codePoint: number): string { return String.fromCharCode(codePoint); } - /** * Convert UTF32 char codes into JS string. * Basically the same as `stringFromCodePoint` but for multiple codepoints @@ -44,7 +42,6 @@ export function utf32ToString(data: Uint32Array, start: number = 0, end: number return result; } - /** * StringToUtf32 - decodes UTF16 sequences into UTF32 codepoints. * To keep the decoder in line with JS strings it handles single surrogates as UCS2. @@ -211,7 +208,6 @@ export class Utf8ToUtf32 { const fourStop = length - 4; let i = startPos; while (i < length) { - /** * ASCII shortcut with loop unrolled to 4 consecutive ASCII chars. * This is a compromise between speed gain for ASCII diff --git a/typings/xterm.d.ts b/typings/xterm.d.ts index 2edad79a1..b3bb582e9 100644 --- a/typings/xterm.d.ts +++ b/typings/xterm.d.ts @@ -553,12 +553,6 @@ declare module 'xterm' { */ resize(columns: number, rows: number): void; - /** - * Writes text to the terminal, followed by a break line character (\n). - * @param data The text to write to the terminal. - */ - writeln(data: string): void; - /** * Opens the terminal within an element. * @param parent The element to create the terminal within. This element @@ -746,7 +740,13 @@ declare module 'xterm' { write(data: string): void; /** - * Writes UTF8 data to the terminal. + * Writes text to the terminal, followed by a break line character (\n). + * @param data The text to write to the terminal. + */ + writeln(data: string): void; + + /** + * Writes text to the terminal encoded as UTF-8 to the terminal. * @param data The data to write to the terminal. */ writeUtf8(data: Uint8Array): void;