资 源 简 介
A lib created for flicker-free output that works on both the Windows console and native Linux terminals.
Example code:
First, a minimal hello world example. Just include Parabola.cs in your project, and remember to call Screen.Initialize before anything else.
using System;using ParabolaConsoleLib;namespace ParabolaTest{ class MainClass{ public static void Main (string[] args){ Screen.Initialize(25,80); Screen.Write(2,20,"Hello world!",ConsoleColor.Green); } }}
That"s it!
Next, a more complex example using the Panel class, which lets you specify a starting point other than (0,0).
using System;using ParabolaConsoleLib;namespace ParabolaTest{ class MainClass{ public static void Main (string[] args){ Screen.Initialize(25,80); Panel map = new Panel(3,13,10,20); //10x20 panel at (3,13) for(int i=0;i<10;++i){ for(int j=0;j<20;++j){ if(i==0||j==0||i==9||j==19){ map.Write(i,j,"#"); } else{ map.Wr