-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xterm 渲染不全 #4992
Comments
oh my god!!! |
Adding in #4993 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Details
Steps to reproduce
const initTerm = () => {
term.value = new Terminal({
cols:102,
rows:5,
fontSize: 14,
fontFamily: "Monaco, Menlo, Consolas, 'Courier New', monospace",
});
term.value.open(terminal.value); //挂载dom窗口
// term.value.loadAddon(fitAddon); //自适应尺寸
// 不能初始化的时候fit,需要等terminal准备就绪,可以设置延时操作
};
// 终端输入触发事件
const termData = () => {
// 输入与粘贴的情况,onData不能重复绑定,不然会发送多次
term.value.onData((data: string) => {
emits('onData', data);
});
};
onMounted(() => {
initTerm();
setTimeout(()=>{
term.value.write(附件文本)
},5000)
});
xterm不能将文本渲染完全,在开发者工具里面甚至很多文本没有渲染
The text was updated successfully, but these errors were encountered: