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

当输出带颜色字符时,表格错乱 #7

Open
qinya0 opened this issue Jan 22, 2021 · 1 comment
Open

当输出带颜色字符时,表格错乱 #7

qinya0 opened this issue Jan 22, 2021 · 1 comment

Comments

@qinya0
Copy link

qinya0 commented Jan 22, 2021

image

image

func Green(s string) string {
	return fmt.Sprintf("%c[%dm%s%c[0m", 0x1B, 32, s, 0x1B)
}
@qinya0
Copy link
Author

qinya0 commented Jan 22, 2021

提个建议: 能不能可选的输出表格四周的线条 "+ - | "等字符

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

No branches or pull requests

1 participant