c# - Erase only one already printed character from the console in c#
问题描述
So I want to create a script that first prints out values from a (pretty big) 2D array and then change one character by erasing it and printing a new one without clearing out the whole console and redrawing it because that creates flickering which is very annoying when i want to make often changes. So is there any way to replace or erase one character that has been already printed or any other efficient way to do it? I just don't want flickering.
解决方案
移动光标并写一个空格“”。(或者您想用作替代的任何字符。)
推荐阅读
- c++ - 了解 C++ 头文件/库和函数的源代码
- python - A[R][:,R] 的纯 python 等价物
- git - 从 GitLab 合并请求中排除特定提交
- c++ - 如何将 VTK 库包含到我的项目中?
- c++ - 两个 CUDA 内核的内存复制 - 为什么速度不同?
- java - 用Java补充DNA序列
- .net - 无法加载文件或程序集'netstandard,版本 = 2.0.0.0
- css - 在响应式菜单中保留比率
- google-maps - 如何在 Ionic 3 项目中正确安装 cordova-google-maps?
- java - 如何从 Eclipse 项目中获取文件的内容