如何获取 konsole kpart 的当前目录
正如罐头上所说的那样。 还有什么方法可以告诉 shell 内正在运行什么?*
我想我可以通过查找具有匹配父 pid 的进程来做到这一点*但是它可以移植到 Windows 吗?以及如何查找给定 pid* 的进程的当前目录。
*(最优选到最不优选)qt 或 kde api/其他跨平台 api/*nix 和 windows api?
Exactly what it says on the tin.
Also is there any way to tell what is running inside the shell?*
I suppose I could do this by looking up finding process with matching parent pids* but is that portable to windows? And how would you look up current directory of a process given pid*.
*(most to least preferable) qt or kde api/other crossplatform api/*nix and windows api?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来 TerminalInterfaceV2 可能正是我所需要的,任何有关它的额外信息将不胜感激。
It looks like TerminalInterfaceV2 might be exactly what I need, any extra info about it would be appreciated.