如何找出与击键相关的文本表示形式? [英] How to find out keystroke bash associated textual representation?

查看:79
本文介绍了如何找出与击键相关的文本表示形式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此答案中所述,可以将击键映射到终端中的命令.为此,有一种用于描述每个密钥的特定bash语法,对于 F1 \e[11~或对于 Control O Control-o

As described in this answer is possible to map keystrokes to commands in a terminal. And to do this, there is a specific bash syntax for describes each key, as \e[11~ for F1 or Control-o for ControlO

为什么不是每个人都可以抵扣,我想找到一种方法来发现每个与键相关的字符串.如果我只在终端中按它,那么大多数非字母数字键都不会发生

How not everyone is deductible, I would like to find a way to discover each key associated string. If I just press it in terminal nothing happens for most of non-alphanumeric keys

推荐答案

我认为您可以替代地安装Expect,启动autoexpect并查看生成的文件中按键的代码是什么.

I think you can alternatively install expect, start autoexpect and see what are the codes for your key strokes in generated file.

这篇关于如何找出与击键相关的文本表示形式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆