简体   繁体   English

将cmd提示分为两部分

[英]Split the cmd prompt into two parts

I've been studying Java for about 7 months now and I've recently started with C++. 我已经学习Java大约7个月了,最近我开始使用C ++。

I'm currently making a server (no gui, just cmd) which will handle multiple connections at the same time. 我目前正在制作一台服务器(没有GUI,只有cmd),它将同时处理多个连接。 And I was wondering if it is possible to split the CMD into two parts, so I can see the clients connected , but in the same time type my own commands without making the "client list" disappear. 而且我想知道是否可以将CMD分为两部分,以便可以看到客户端已连接,但是同时键入自己的命令而不会使“客户端列表”消失。

Here is a picture of what I mean: 这是我的意思的图片:

在此处输入图片说明

If this is possible, what should I search for? 如果可能,我应该搜索什么? I will appreciate all ideas and hints that I could get. 我将不胜感激所有想法和暗示。

You can have a look on ncurses library which could help you, but I'm not sure about Windows support in it. 您可以看一下可以帮助您的ncurses库,但是我不确定其中是否支持Windows。 Something similar for Windows is implemented in PDCurses . Windows中类似的功能在PDCurses中实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM