试试我这个
IMyTextPanel lcd;List<string> texts;List<string> init;
int displayLength = 17;//显示行数
public Program(){lcd = GridTerminalSystem.GetBlockWithName("MEA") as IMyTextPanel;
texts = new List<string>(); }
void Main(string arg){AutoPagingText (arg);}
string info = "";
for(int a = 0; a < texts.Count; a++){
info += (texts[a]);info += "\n";}
lcd.WriteText(info);
Echo(texts.Count.ToString());
Echo(texts[texts.Count -1]);
void AutoPagingText(string text){
if(texts.Count > displayLength){texts.Remove(texts[0]);texts.Add(text);}
else{texts.Add(text);}}