如何获取 konsole kpart 的当前目录

发布于 2024-10-04 08:23:41 字数 188 浏览 0 评论 0原文

正如罐头上所说的那样。 还有什么方法可以告诉 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 技术交流群。

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

发布评论

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

评论(1

意犹 2024-10-11 08:23:41

看起来 TerminalInterfaceV2 可能正是我所需要的,任何有关它的额外信息将不胜感激。

It looks like TerminalInterfaceV2 might be exactly what I need, any extra info about it would be appreciated.

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