XIVA Studio 2025-08-14

Si, comme moi, vous avez eu à reprendre et adapter du script shell pour afficher des tableaux avec mise en forme dans le terminal ou dans des scripts générant des syntaxes Markdown ou Textile (Génération automatique de ticket Redmine), alors vous serez sans doute intéressé par Dispositio (licence Apache v2).
Dispositio est un script shell conforme POSIX qui permet l’affichage des tables de données provenant de fichiers CSV, JSON et YAML dans le terminal. Il offre un formatage avancé, un support des couleurs, et peut-être utilisé comme un outil en ligne de commande autonome ou comme une bibliothèque shell pour la génération de tableaux.
dispositio_add_*
pour ajouter des colonnes, lignes ou cellules){
"title": [
"JSON",
"Essai"
],
"display": "top",
"color": "",
"align": "center",
"columns": [
{
"title": [
"Header1",
""
],
"color": "red",
"align": ""
},
{
"title": [
"Header2",
"Essai"
],
"color": "",
"align": ""
},
{
"title": [
"Header3",
""
],
"color": "",
"align": ""
}
],
"rows": [
{
"title": [],
"color": "green",
"align": "",
"valign": "top",
"separator": 1,
"cells": [
{
"lines": [
"Row1",
"Cell1",
"essai"
],
"color": "",
"align": ""
},
{
"lines": [
"",
"Row1 - Cell2",
""
],
"color": "",
"align": ""
},
{
"lines": [
"",
"Row1 - Cell3",
""
],
"color": "",
"align": ""
}
]
},
{
"title": [],
"color": "",
"align": "",
"separator": 0,
"cells": [
{
"lines": [
"Row2 - Cell1"
],
"color": "",
"align": ""
},
{
"lines": [
"Row2 - Cell2"
],
"color": "",
"align": ""
},
{
"lines": [
"Row2 - Cell3"
],
"color": "",
"align": ""
}
]
}
]
}
<style>
.dpo table{margin: 0px auto;}
.dpo_title{
text-align: center;
font-style: bold;
font-size: 24px;
}
.dpo th{
background: grey;
text-align: center;
vertical-align: top;
font-style: bold;
}
.dpo td:nth-child(1){
background: red;
}
.dpo th:nth-child(1){
background: brown;
}
.dpo tr:nth-child(1){
background: green;
vertical-align: top;
}
.dpo tr:nth-child(1) td:nth-child(1){
background: olive !important;
}
</style>
<div class='dpo'>
<div class='dpo_title'>
JSON<br>Essai<br>
</div>
| Header1 | Header2<br>Essai | Header3 |
|-|-|-|
| Row1<br>Cell1<br>essai | Row1 - Cell2 | Row1 - Cell3 |
| Row2 - Cell1 | Row2 - Cell2 | Row2 - Cell3 |
</div>
h1{text-align:center; font-size:24px}. *JSON<br>Essai<br>*
table{margin: 0px auto}.
|^.
|_={background-color:brown}. Header1 |_=. Header2<br/>Essai |_=. Header3 |
|={background-color:olive; vertical-align:top}. Row1<br/>Cell1<br/>essai |={background-color:green; vertical-align:top}. Row1 - Cell2 |={background-color:green; vertical-align:top}. Row1 - Cell3 |
|={background-color:red; vertical-align:middle}. Row2 - Cell1 |={vertical-align:middle}. Row2 - Cell2 |={vertical-align:middle}. Row2 - Cell3 |
Commentaires : voir le flux Atom ouvrir dans le navigateur
VirtualBox 7.2 open-source virtualization software is now available for download with initial support for Linux kernel 6.17 and 6.16. Here's what else is new!
The post VirtualBox 7.2 Officially Released with Initial Support for Linux Kernel 6.17 appeared first on 9to5Linux - do not reproduce this article without permission. This RSS feed is intended for readers, not scrapers.
SparkyLinux 8.0 is now available for download as one of the first stable distributions based on the Debian 13 "Trixies" operating system series. Here's what's new!
The post SparkyLinux 8.0 Is Out as One of the First Distros Based on Debian 13 “Trixie” appeared first on 9to5Linux - do not reproduce this article without permission. This RSS feed is intended for readers, not scrapers.
KDE Gear 25.08 open-source software suite is now available with improvements for many of your favorite KDE applications. Here's what's new!
The post KDE Gear 25.08 Open-Source Software Suite Released with Many Improvements appeared first on 9to5Linux - do not reproduce this article without permission. This RSS feed is intended for readers, not scrapers.
Ghostty terminal has undergone a GTK rewrite, embracing the GObject type system. The result: new features, better memory management, and improved stability.
You're reading Ghostty Terminal Rewrites its GTK Build to Fix Linux Issues, a blog post from OMG! Ubuntu. Do not reproduce elsewhere without permission.
VirtualBox 7.2.0 brings hardware-accelerated video decoding for Linux hosts, a rejigged interface, and support for running Windows on ARM.
You're reading VirtualBox 7.2 Release Brings Big UI Change, Better ARM Support, a blog post from OMG! Ubuntu. Do not reproduce elsewhere without permission.
GNOME Shell search asks for perfect spelling, but fuzzy search extensions let you find apps even with typos – and a new one has just appeared to help.
You're reading Fuzzy Application Search Extension for GNOME Shell, a blog post from OMG! Ubuntu. Do not reproduce elsewhere without permission.
.
Read the full article on GamingOnLinux.
.
Read the full article on GamingOnLinux.
.
Read the full article on GamingOnLinux.
.
Read the full article on GamingOnLinux.
.
Read the full article on GamingOnLinux.
.
Read the full article on GamingOnLinux.
.
Read the full article on GamingOnLinux.