mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-17 01:50:05 +00:00
emoji support (fixes #35)
This commit is contained in:
parent
052c941275
commit
06b60b86f2
@ -27,3 +27,12 @@ preferenceManager.set('color-palette-overrides', {
|
|||||||
})
|
})
|
||||||
|
|
||||||
hterm.hterm.Terminal.prototype.showOverlay = () => null
|
hterm.hterm.Terminal.prototype.showOverlay = () => null
|
||||||
|
|
||||||
|
const oldCharWidthDisregardAmbiguous = hterm.lib.wc.charWidthDisregardAmbiguous
|
||||||
|
hterm.lib.wc.charWidthDisregardAmbiguous = codepoint => {
|
||||||
|
if ((codepoint >= 0x1f300 && codepoint <= 0x1f64f) ||
|
||||||
|
(codepoint >= 0x1f680 && codepoint <= 0x1f6ff)) {
|
||||||
|
return 2
|
||||||
|
}
|
||||||
|
return oldCharWidthDisregardAmbiguous(codepoint)
|
||||||
|
}
|
||||||
|
@ -72,7 +72,7 @@ export class Session {
|
|||||||
}
|
}
|
||||||
|
|
||||||
write (data) {
|
write (data) {
|
||||||
this.pty.write(data)
|
this.pty.write(Buffer.from(data, 'utf-8'))
|
||||||
}
|
}
|
||||||
|
|
||||||
kill (signal?: string) {
|
kill (signal?: string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user