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

set alternative font for Prefix chars #2

Closed
pfr-dev opened this issue May 10, 2021 · 1 comment
Closed

set alternative font for Prefix chars #2

pfr-dev opened this issue May 10, 2021 · 1 comment
Labels
Question Further information is requested

Comments

@pfr-dev
Copy link

pfr-dev commented May 10, 2021

Is is possible to set an alternative font for the prefix characters from within the config without having to change my terminal font to something that supports displaying these characters?

@jszczerbinsky
Copy link
Owner

Unfortunately terminals can't display multiple fonts at once (or rather I don't know any, that can do this), but I'm pretty sure, that your font can display some special chars. Check out this script:

#!/bin/bash

x=(0 1 2 3 4 5 6 7 8 9 A B C D E F)
for a in {0..15}; do for b in {0..15}; do for c in {0..15}; do
	[[ $a -eq 0 && $b -eq 0 && $c -lt 2 ]] && continue
	echo -en "\n${x[$a]}${x[$b]}${x[$c]}X: "
	for d in {0..15}; do
		echo -en "\u${x[$a]}${x[$b]}${x[$c]}${x[$d]}"
	done
done; done; done

It prints all unicode chars. You can scroll it and find some working chars, that can be used in prefixes. You can edit prefixes in /home/$USER/.config/ptSh/config

@jszczerbinsky jszczerbinsky added the Question Further information is requested label May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants