Skip to content

Commit

Permalink
refactor: ♻️ 微调优化呈现打印逻辑,更新小版本
Browse files Browse the repository at this point in the history
现在对「OUT」输出反色高亮,并将「TERMINATED」修改为「红色反色闪烁」;更新版本号
  • Loading branch information
ARCJ137442 committed Sep 12, 2024
1 parent 5ccd366 commit e0cd1e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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",
]
Expand Down
5 changes: 3 additions & 2 deletions src/support/io/output_print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit e0cd1e2

Please sign in to comment.