Post 9gikpTc1doldQujx8C by ContainsLiquid@mstdn.io
(DIR) More posts by ContainsLiquid@mstdn.io
(DIR) Post #9giWf16JOPqMkh1aCW by sir@cmpwn.com
2019-03-13T04:33:42Z
0 likes, 0 repeats
CLI tools should emit only ASCII unless instructed to do otherwise (e.g. cat'ing a UTF-8 encoded file)
(DIR) Post #9giWjjKEuOUB4RmpRw by sir@cmpwn.com
2019-03-13T04:34:35Z
0 likes, 1 repeats
Fun fact: you can show a progress bar using only ASCII. But only do it if stdout/stderr isatty please
(DIR) Post #9giZNFf0oyvMYfTZKq by balp@mastodon.acc.sunet.se
2019-03-13T05:03:57Z
0 likes, 0 repeats
@sir Or you have a locate set that needs non-ascii.
(DIR) Post #9gibbwOgvKFD4AySEi by loke@functional.cafe
2019-03-13T05:29:08Z
0 likes, 0 repeats
@sirI'm a bit torn on this. I think it's OK if LC_CTYPE indicates a Unicode-capable encoding.The big offender is software that outputs colour escape sequences without checking if the terminal supports them.
(DIR) Post #9gikpTc1doldQujx8C by ContainsLiquid@mstdn.io
2019-03-13T07:12:26Z
0 likes, 0 repeats
@sir Can you explain to me why? I thought UTF-8 would be better because it covers more characters (I am talking about language based characters and not emojis)
(DIR) Post #9ginXEpSAObIEW12a8 by jeffalyanak@social.rights.ninja
2019-03-13T07:43:03Z
0 likes, 0 repeats
@sirI agree that ascii should definitely be the default, but I think we need to push more towards supporting UTF-8 as an option for output that can be easily selected or detected through environment variables.I don't think that ascii should be the default forever.
(DIR) Post #9gjCJomyAZByYpYGDw by nifker@mastodonten.de
2019-03-13T12:20:27Z
0 likes, 0 repeats
@sirThats why we need an alternative to the VT200 standard.
(DIR) Post #9gjETpHjNaGau5q8bw by tk@m.tkte.ch
2019-03-13T12:44:42Z
0 likes, 0 repeats
@sir n | █==== | 20%e | ██=== | 40%v | ███== | 60%e | ████= | 80%r | █████ | 100%
(DIR) Post #9gocePfeK1idL2PNPU by cadadr@mastodon.sdf.org
2019-03-16T03:08:56Z
0 likes, 0 repeats
@sirAnother fun fact is that your output can be coloured but so can be the background of someone's terminal. I think there is a way to check what the bg is (termcap?), but generally colour being opt in, or at least opt out is a good idea. So many programs just don't bother and hardcode colours.