Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
双标签时,终端显示命令候选列表,但光标线也向下移动。如何在显示下面的所有候选人时保持在同一条线上?
我猜一定有一些配置文件可以指定这种行为。这也适用于在键入命令中间按 ctrl-c 的情况。我希望光标停留在当前行。
您需要具有丰富终端支持的 shell。
例如Z 壳牌。Bash使用readline库构建用户交互,它只能逐行运行......
这种行为允许在大多数平台上运行 Bash,因为不需要终端的特殊能力。