fix: Display tables with box characters in terminal

This commit is contained in:
Andrew Phillips
2025-09-08 17:57:37 -03:00
committed by Andrew Phillips (aider)
parent e91431f6b6
commit f9c4b709ad

View File

@@ -10,7 +10,7 @@ use crate::common::status::StatusInfo;
use serde_json; use serde_json;
use serde_yaml; use serde_yaml;
use prettytable::{Attr, Cell, Row, Table}; use prettytable::{Attr, Cell, Row, Table};
use prettytable::format::consts::{FORMAT_NO_BORDER_LINE_SEPARATOR}; use prettytable::format::consts::{FORMAT_BOX_CHARS, FORMAT_NO_BORDER_LINE_SEPARATOR};
use crate::common::status::PathInfo; use crate::common::status::PathInfo;
use crate::meta_plugin::MetaPluginType; use crate::meta_plugin::MetaPluginType;
@@ -102,7 +102,7 @@ fn build_meta_plugins_configured_table(status_info: &StatusInfo) -> Option<Table
let mut table = Table::new(); let mut table = Table::new();
if std::io::stdout().is_terminal() { if std::io::stdout().is_terminal() {
table.set_format(*FORMAT_NO_BORDER_LINE_SEPARATOR); table.set_format(*FORMAT_BOX_CHARS);
} else { } else {
table.set_format(*FORMAT_NO_BORDER_LINE_SEPARATOR); table.set_format(*FORMAT_NO_BORDER_LINE_SEPARATOR);
} }