当前位置:网站首页>A cool "ghost" console tool
A cool "ghost" console tool
2022-07-07 05:20:00 【InfoQ】
brief introduction
- Full name :Spectre.Console
- Translated names ( unofficial ): Ghost console ( Hereinafter referred to as ghost )
features
- New enough: The tools mentioned above , Or some did not mention , But tools with a large number of downloads , The update frequency is very slow , I want to be very angry ColorfulConsole, The last update has stopped 2020 year , So despite its powerful functions , But the vitality is not good . Ghosts are different , Look at the official release records , He is now in rapid iterative update , Abreast of the times 0.44.x edition , It has been updated 13 It's a small version , Yes, of course , Frequent updates are not necessarily a good thing , It also reflects many problems , Mending , But that's exactly what happened , It proves that it is energetic , It's worth affirming !
- Cool:I don't want to explain that , Look at the picture
- Strong enough :It can also be seen from the above figure , Ghost offers a variety of console printing styles , In addition to the processing of text style , And support , form , Trees , Progress bar , Even emoji expression ( The system configuration needs to be modified )
Use
typeface
AnsiConsole.MarkupLine($"[Yellow] I am the first 2 Middleware , I come from the entry file , I'm coming -{DateTime.Now}[/]");
AnsiConsole.MarkupLine("[bold]World[/]");
AnsiConsole.MarkupLine("[bold Yellow]World[/]");
form
- Static tables
var table = new Table().Centered();
table.AddColumn(" Authorized person ID");
table.AddColumn(" Authorized events ID");
table.AddColumn(" Authorized person ");
while (sdr.Read())
{
string column1 = Convert.ToString(sdr["UserID"]);
string column2 = Convert.ToString(sdr["TypeID"]);
string column3 = Convert.ToString(sdr["UserNam"]);
table.AddRow(column1, column2, column3);
}
AnsiConsole.Write(table);
// Set width
table.Width(50);
// Set offset
table.Columns[0].PadLeft(3);
// Set borders , Draw a circle
table.Border(TableBorder.Square);
- Dynamic tables
FIGlet Text
AnsiConsole.Write(
new FigletText("Tony's Box")
.Centered()
.Color(Color.Blue)
);
choice
var cmd = AnsiConsole.Prompt(
new SelectionPrompt<string>()
.Title(" The following are the operations temporarily supported by the toolkit ?")
.PageSize(10)
.MoreChoicesText("[grey]( Please select the operation to be performed )[/]")
.AddChoices(new[] {
"1. monitor 【User_ProgramTypeLink】 Permissions on the table ","2. Clear the log data half a year ago ", "3. Delete the specified index data "
}));
边栏推荐
- Leetcode minimum difference in student scores
- window定时计划任务
- DBSync新增对MongoDB、ES的支持
- 10 distributed databases that take you to the galaxy
- DJ-ZBS2漏电继电器
- sublime使用技巧
- No experts! Growth secrets for junior and intermediate programmers and "quasi programmers" who are still practicing in Universities
- 人体传感器好不好用?怎么用?Aqara绿米、小米之间到底买哪个
- 设f(x)=∑x^n/n^2,证明f(x)+f(1-x)+lnxln(1-x)=∑1/n^2
- LinkedBlockingQueue源码分析-初始化
猜你喜欢
K6EL-100漏电继电器
If you‘re running pod install manually, make sure flutter pub get is executed first.
Complete code of C language neural network and its meaning
记录一次压测经验总结
Auto. JS get all app names of mobile phones
10 distributed databases that take you to the galaxy
LabVIEW在打开一个新的引用,提示内存已满
torch optimizer小解析
Analysis -- MySQL statement execution process & MySQL architecture
在米家、欧瑞博、苹果HomeKit趋势下,智汀如何从中脱颖而出?
随机推荐
Auto.js 获取手机所有app名字
Wonderful express | Tencent cloud database June issue
AIDL 与Service
漏电继电器JOLX-GS62零序孔径Φ100
U++ metadata specifier learning notes
最长不下降子序列(LIS)(动态规划)
SQL injection HTTP header injection
vector和类拷贝构造函数
Development thoughts of adding new requirements in secondary development
带你遨游银河系的 10 种分布式数据库
Weebly mobile website editor mobile browsing New Era
3. Type of fund
第一篇论文的写作流程
与利润无关的背包问题(深度优先搜索)
模拟线程通信
批量归一化(标准化)处理
DFS,BFS以及图的遍历搜索
2039: [蓝桥杯2022初赛] 李白打酒加强版 (动态规划)
Techniques d'utilisation de sublime
项目经理如何凭借NPDP证书逆袭?看这里