https://sourceforge.net/projects/ansi2txt/
안시코드를 제거해 주는 c코드..
아래는 응용예..
$ fastfetch --logo none > a.txt
$ ansi2txt.exe -txt a.txt > b.txt
$ cat b.txt
MIN@DESKTOP-RSH0QT3
-------------------
OS: Windows 10 (Pro) x86_64
Host: B560M AORUS PRO AX (-CF)
Kernel: WIN32_NT 10.0.19045.4529 (22H2)
Uptime: 4 days, 14 hours, 18 mins
Packages: 1031 (pacman)
Shell: bash 5.1.8
Display (LG ULTRAWIDE): 2560x1080 @ 60Hz [External]
DE: Fluent
WM: Desktop Window Manager
WM Theme: Custom - #0078D7 (System: Light, Apps: Light)
Icons: This PC, User's Files, Recycle Bin
Font: (12pt) [Caption / Menu / Message / Status]
Cursor: Windows (32px)
Terminal: mintty 3.5.0
Terminal Font: Consolas (11pt)
CPU: 11th Gen Intel(R) Core(TM) i9-11900KF (16) @ 5.30 GHz
GPU: NVIDIA Quadro P1000 (3.92 GiB) [Discrete]
Memory: 14.60 GiB / 63.87 GiB (23%)
Swap: 314.74 MiB / 9.50 GiB (3%)
Disk (C:\): 289.08 GiB / 953.22 GiB (30%) - NTFS
Disk (D:\): 3.22 TiB / 3.64 TiB (89%) - NTFS
Disk (E:\): 7.28 TiB / 7.28 TiB (100%) - NTFS
Disk (F:\): 4.55 TiB / 4.55 TiB (100%) - exFAT
Disk (G:\): 3.70 TiB / 4.55 TiB (81%) - NTFS
Disk (H:\): 120.53 GiB / 698.62 GiB (17%) - NTFS
Disk (I:\): 683.17 GiB / 931.51 GiB (73%) - NTFS
Local IP (): 192.168.96.137/24 *
Locale: ko-KR
'블로그 (Blog) > 개발로그 (Devlogs)' 카테고리의 다른 글
Windows 64비트로 드라이버 포팅 (0) | 2024.07.10 |
---|---|
QTextEdit 위젯과 안시코드... (0) | 2024.07.06 |
pip uninstall with grep (0) | 2024.07.05 |
fastfetch (0) | 2024.07.04 |
Python의 빠른 처리 모듈들.. (0) | 2024.07.01 |