批处理文件中控制台窗口底部的永久行

发布于 2024-08-21 08:29:35 字数 102 浏览 1 评论 0原文

只是想知道是否有人知道在运行批处理文件时是否可以在 cmd 提示窗口的底部有一个永久的文本行?所以它是浮动的,如果屏幕上有很多文本流动,并且 cmd 提示符开始滚动,那么该行文本仍然在底部。

Just wondering if anyone knew if it was possible to have a permament line of text at the bottom of a cmd prompt window when running a batch file? So it floats, and if there is a lot of text flowing on the screen, and the cmd prompt starts to scroll, that line of text is still there at the bottom.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

伊面 2024-08-28 08:29:35

并非没有外部程序。您的输出选项仅限于:

  • 更改控制台中所有文本的前景色和背景色 在
  • 当前光标位置打印一行文本 在当前
  • 光标位置打印一些文本(没有尾部换行符)

不编写自己的程序(或求助于其他人)您无法对控制台输出执行任何其他操作。

当需要一行或其他内容来显示状态而输出的主要部分滚动时,我通常使用窗口标题;您可以使用 title 设置它。

Not without external programs. Your output options are limited to:

  • Changing the foreground and background color of all text in the console
  • Printing a line of text at the current cursor position
  • Printing some text (without a trailing line break) at the current cursor position

Without writing your own programs (or resorting to others) you can't do anything else with the console output.

When needing a line or something to display status while the main portion of the output scrolls away I've usually been using the window title for that; you can set it with title.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文