pbal
1
In Julia 1.9, the tab width is different in println() vs. printstyled().
Version: Version 1.9.0 (2023-05-07)
print() and println() are consistent.
printstyled() is a different width:
julia> println("123456789\n\t*")
123456789
*
julia> printstyled("123456789\n\t*")
123456789
*
It’s the same width for me (1.9 on Mac).
What terminal are you using?
pbal
3
I have tried Linux xterm, xterm-256color, kconsole, and rxvt. All are consistent. I’m using SUSE (i think).
% uname -vrio
4.12.14-122.136-default #1 SMP Wed Oct 5 09:01:28 UTC 2022 (253e49e/lp-70a9340) x86_64 GNU/Linux
pbal
4
I also tried on Windows. No issue. The issue only occurs when I run on our Linux machine.
Perhaps it is a font issue? Using Alacritty or Gnome Terminal on Ubuntu 22.04 with JuliaMono installed I see
$ uname -a
Linux 5.19.0-41-generic #42~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 18 17:40:00 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
$ julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.9.0 (2023-05-07)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> println("123456789\n\t*")
123456789
*
julia> printstyled("123456789\n\t*")
123456789
*