iso2022Escapes
Returns all the ISO-2022-JP escape sequences
Created by: hackvertor
Installed 1 times
Category: Charsets
Created on: Friday, January 3, 2025 at 1:24:31 PM
Updated on: Monday, January 6, 2025 at 3:09:03 AM
Tag arguments
[]
Code
class iso2022Escapes {
encode(input) {
const escapeSequences = [
String.fromCodePoint(0x1b, 0x28, 0x42),
String.fromCodePoint(0x1b, 0x28, 0x4a),
String.fromCodePoint(0x1b, 0x24, 0x40),
String.fromCodePoint(0x1b, 0x24, 0x42),
String.fromCodePoint(0x1b, 0x28, 0x49),
];
return escapeSequences.join("\n");
}
}