ANSCII表示“ASCII / ANSI”
对于偏离主题,管理员感到抱歉 - 我应该针对这些问题访问什么Stack Exchange网站?
我在谷歌的任何地方都看过批量/ Powershell ANSCII艺术生成器,我找不到任何能为我做这项工作,而且很难制作出ANSCII艺术品。而且我不只是使用预定义的ANSCII Art ,而是定义用户/变量。像这样:
C:\> set var = "ANSI Test"
C:\> ansi %var%
█████╗ ███╗ ██╗███████╗██╗ ████████╗███████╗███████╗████████╗
██╔══██╗████╗ ██║██╔════╝██║ ╚══██╔══╝██╔════╝██╔════╝╚══██╔══╝
███████║██╔██╗ ██║███████╗██║ ██║ █████╗ ███████╗ ██║
██╔══██║██║╚██╗██║╚════██║██║ ██║ ██╔══╝ ╚════██║ ██║
██║ ██║██║ ╚████║███████║██║ ██║ ███████╗███████║ ██║
╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚══════╝╚══════╝ ╚═╝
或
PS $var = "ANSI Test"
PS ansi $var
█████╗ ███╗ ██╗███████╗██╗ ████████╗███████╗███████╗████████╗
██╔══██╗████╗ ██║██╔════╝██║ ╚══██╔══╝██╔════╝██╔════╝╚══██╔══╝
███████║██╔██╗ ██║███████╗██║ ██║ █████╗ ███████╗ ██║
██╔══██║██║╚██╗██║╚════██║██║ ██║ ██╔══╝ ╚════██║ ██║
██║ ██║██║ ╚████║███████║██║ ██║ ███████╗███████║ ██║
╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚══════╝╚══════╝ ╚═╝
或
C:\> set var = "ASCII Test"
C:\> ascii %var%
db .dP"Y8 dP""b8 88 88 888888 888888 .dP"Y8 888888
dPYb `Ybo." dP `" 88 88 88 88__ `Ybo." 88
dP__Yb o.`Y8b Yb 88 88 88 88"" o.`Y8b 88
dP""""Yb 8bodP' YboodP 88 88 88 888888 8bodP' 88
或
PS $var = "ASCII Test"
PS ascii $var
db .dP"Y8 dP""b8 88 88 888888 888888 .dP"Y8 888888
dPYb `Ybo." dP `" 88 88 88 88__ `Ybo." 88
dP__Yb o.`Y8b Yb 88 88 88 88"" o.`Y8b 88
dP""""Yb 8bodP' YboodP 88 88 88 888888 8bodP' 88
答案 0 :(得分:4)
前段时间我写了一个名为FIGBat.bat的程序,可以使用为FIGlet program创建的字体。例如,以下批处理文件:
@echo off
cls
call figbat /f Banner My program
call figbat /f Doom use standard
call figbat /f Epic FigLet
call figbat /f Isometric1 FONTS
echo/
echo ______________________________________________________________________
echo/
call figbat /f Script Antonio
创建此输出:
# #
## ## # # ##### ##### #### #### ##### ## # #
# # # # # # # # # # # # # # # # # # ## ##
# # # # # # # # # # # # # # # # ## #
# # # ##### ##### # # # ### ##### ###### # #
# # # # # # # # # # # # # # # #
# # # # # # #### #### # # # # # #
_ _ _
| | | | | |
_ _ ___ ___ ___ | |_ __ _ _ __ __| | __ _ _ __ __| |
| | | |/ __| / _ \ / __|| __| / _` || '_ \ / _` | / _` || '__| / _` |
| |_| |\__ \| __/ \__ \| |_ | (_| || | | || (_| || (_| || | | (_| |
\__,_||___/ \___| |___/ \__| \__,_||_| |_| \__,_| \__,_||_| \__,_|
_______ _________ _______ _ _______ _________
( ____ \\__ __/( ____ \( \ ( ____ \\__ __/
| ( \/ ) ( | ( \/| ( | ( \/ ) (
| (__ | | | | | | | (__ | |
| __) | | | | ____ | | | __) | |
| ( | | | | \_ )| | | ( | |
| ) ___) (___| (___) || (____/\| (____/\ | |
|/ \_______/(_______)(_______/(_______/ )_(
___ ___ ___ ___ ___
/\ \ /\ \ /\__\ /\ \ /\ \
/::\ \ /::\ \ /::| | \:\ \ /::\ \
/:/\:\ \ /:/\:\ \ /:|:| | \:\ \ /:/\ \ \
/::\~\:\ \ /:/ \:\ \ /:/|:| |__ /::\ \ _\:\~\ \ \
/:/\:\ \:\__\ /:/__/ \:\__\ /:/ |:| /\__\ /:/\:\__\ /\ \:\ \ \__\
\/__\:\ \/__/ \:\ \ /:/ / \/__|:|/:/ / /:/ \/__/ \:\ \:\ \/__/
\:\__\ \:\ /:/ / |:/:/ / /:/ / \:\ \:\__\
\/__/ \:\/:/ / |::/ / \/__/ \:\/:/ /
\::/ / /:/ / \::/ /
\/__/ \/__/ \/__/
______________________________________________________________________
___,
/ | o
| | _ _ _|_ __ _ _ __
| | / |/ | | / \_/ |/ | | / \_
\__/\_/ | |_/ |_/\__/ | |_/|_/\__/
默认字体使用Ansi阻止字符:
C:\> figbat Ansi Test
█ █ ███████ █
█ █ █ █
█ █ ████ ████ ██ █ ████ ████ ████
█ █ █ █ █ █ █ █ █ █ █
███████ █ █ ████ █ █ █████ ████ █
█ █ █ █ █ █ █ █ █ █
█ █ █ █ ████ █ █ ████ ████ ██
您可以从this post复制FIGBat.bat程序。