Comments (4)
You probably want to use align rather than justify for multi-line text:
from rich.align import Align
from rich.console import Console
from rich.text import Text
BANNER = """
'||' '||'
|| || .... ... ... ... .... ... ..
||''''|| '|. | ||' || .|...|| ||' ''
|| || '|.| || | || ||
.||. .||. '| ||...' '|...' .||.
.. | ||
'' ''''
"""
console = Console()
banner_text = Align.center(Text(BANNER))
console.print(banner_text)
from rich.
Thank you for your issue. Give us a little time to review it.
PS. You might want to check the FAQ if you haven't done so already.
This is an automated reply, generated by FAQtory
from rich.
I hope we solved your problem.
If you like using Rich, you might also enjoy Textual
from rich.
ohh.... I didn't notice that..
from rich.
Related Issues (20)
- [REQUEST] Progress.tasks should return a Dict instead of a List HOT 1
- [REQUEST] Rich Should Accept Highlights as re.compiled re.Patterns and Use them Internally HOT 4
- [BUG] Natively inserted ANSI escape sequence characters break alignment of `Panel()` HOT 4
- [BUG] Cannot access `console` after importing rich HOT 2
- [BUG] Terminal settings aren't restored HOT 10
- [REQUEST] Print out variable names (along with content) for `console.log()` HOT 1
- [BUG] HOT 3
- [REQUEST] Add a table level "overflow" setting that is used as a default for the columns. HOT 1
- [BUG] Test failures with Python 3.13.0b1: test_pretty.py and dataclass repr HOT 1
- [REQUEST] Colored User Input HOT 1
- How to create multiline description for progress bar HOT 3
- [BUG] Strange behaviour of Prompt.ask HOT 3
- [Bug? Docs?] It's not obvious from the docs how to disable highlighting when using `RichHandler` HOT 2
- [REQUEST] Rich progress bar changes color based on the number steps/files elapsed. HOT 3
- [BUG] Using Beaupy module within a live console HOT 1
- [REQUEST] Add an environment variable to disable all progress bars HOT 3
- Output printing multiple times HOT 1
- [REQUEST] timeout in Prompt HOT 1
- Using rich.text.Text in __rich_repr__ HOT 2
- [BUG] UnicodeEncodeError when trying to print utf-8 characters despite setting correct encoding env variable on Windows. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rich.