如何清除整个控制台窗口? [英] How to clear the entire console window?

查看:70
本文介绍了如何清除整个控制台窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个控制台窗口RPG,但是在清除整个控制台窗口时遇到了问题.我有一种方法可以用一个命令清除整个控制台窗口吗?

I am making a console window RPG, yet I'm having problems clearing the entire console window. Is there a way for me to clear the entire console window with one command?

推荐答案

您可以使用 Clear()方法:

Console.Clear();

这篇关于如何清除整个控制台窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆