From e0cd1e21476c232d2bc38e66175aab3c714cb4a0 Mon Sep 17 00:00:00 2001 From: ARCJ137442 <61109168+ARCJ137442@users.noreply.github.com> Date: Fri, 13 Sep 2024 01:20:51 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20:recycle:=20=E5=BE=AE=E8=B0=83?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=91=88=E7=8E=B0=E6=89=93=E5=8D=B0=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E6=9B=B4=E6=96=B0=E5=B0=8F=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 现在对「OUT」输出反色高亮,并将「TERMINATED」修改为「红色反色闪烁」;更新版本号 --- Cargo.toml | 4 +--- src/support/io/output_print.rs | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a2afeb3..f7fecca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "babel_nar_cli" -version = "0.1.0" +version = "0.1.1" edition = "2021" description = """ Command Line Interface (CLI) of BabelNAR.rs @@ -42,8 +42,6 @@ version = "0.21" # * ✅现已发布至`crates.io` # git = "https://github.com/ARCJ137442/Narsese.rs" # ! 【2024-03-23 19:19:01】似乎Rust-Analyzer无法获取私有仓库数据 features = [ - # * 🚩【2024-03-29 09:52:56】在「方言词法折叠」中,需要使用其中的常量 - "enum_narsese", # * 📌承继NAVM "lexical_narsese", ] diff --git a/src/support/io/output_print.rs b/src/support/io/output_print.rs index d7f33be..7b69fc6 100644 --- a/src/support/io/output_print.rs +++ b/src/support/io/output_print.rs @@ -172,13 +172,14 @@ impl OutputType<'_> { "WARN" => message.bright_yellow(), "LOG" => message.bright_black(), // NAVM输出 - "IN" | "OUT" => message.bright_white(), + "IN" => message.bright_white(), + "OUT" => message.bright_white().reversed(), "EXE" => message.bright_cyan().reversed(), "ANSWER" | "ACHIEVED" => message.bright_green().reversed(), "INFO" => message.cyan(), "COMMENT" => message.white(), "ERROR" => message.red(), - "TERMINATED" => message.bright_white().reversed().blink(), + "TERMINATED" => message.bright_red().reversed().blink(), // ↓OpenNARS附加 "ANTICIPATE" => message.bright_yellow(), "CONFIRM" => message.bright_blue(),