Skip to content
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

[Feature] The host terminal function supports font switching, thereby supporting the display of special characters #7679

Open
mqnu00 opened this issue Jan 9, 2025 · 1 comment
Assignees

Comments

@mqnu00
Copy link

mqnu00 commented Jan 9, 2025

1Panel Version

社区版: v1.10.21-lts

Please describe your needs or suggestions for improvements

zsh 使用powerT10k主题,会使用到一些特殊字符,普通的字体无法显示,会出现乱码
image

Please describe the solution you suggest

使用终端的专用字体,比如firacode,然后使用xterm新建一个terminal

const term = new Terminal({
          fontSize: 20,
          cursorBlink: true,
          scrollback: 5000,
          allowProposedApi: true,
          disableStdin: false,
          convertEol: true,
         // 设置字体
          fontFamily: 'firacode',
          theme: {
            foreground: '#58a6ff',
            background: '#2B2B2B',
            cursor: 'Orange'
          },
          cols: 80,  // 给定合适的列数
          rows: 24,  // 给定合适的行数
        });

Additional Information

我希望结果类似于这样子
image

@wanghe-fit2cloud wanghe-fit2cloud changed the title [Feature] 主机终端功能支持字体切换,从而支持特殊字符的显示 [Feature] The host terminal function supports font switching, thereby supporting the display of special characters Jan 9, 2025
@wanghe-fit2cloud
Copy link
Member

感谢反馈,我们将在后续版本中考虑支持自定义终端字体的功能。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants