【发布时间】:2020-06-10 08:03:36
【问题描述】:
当我在 Linux 上运行 Db2 CLP(命令行处理器)并保留在 CLP 中时,箭头键无法按预期工作。
例如:而不是显示我执行的上一个命令,按向上箭头产生:^[[A 并按向左箭头产生:^[[D.
见下文:
[db2inst1@willow ~]$ db2
(c) Copyright IBM Corporation 1993,2007
Command Line Processor for DB2 Client 11.5.0.0
You can issue database manager commands and SQL statements from the command
prompt. For example:
db2 => connect to sample
db2 => bind sample.bnd
For general help, type: ?.
For command help, type: ? command, where command can be
the first few keywords of a database manager command. For example:
? CATALOG DATABASE for help on the CATALOG DATABASE command
? CATALOG for help on all of the CATALOG commands.
To exit db2 interactive mode, type QUIT at the command prompt. Outside
interactive mode, all commands must be prefixed with 'db2'.
To list the current command option settings, type LIST COMMAND OPTIONS.
For more detailed help, refer to the Online Reference Manual.
db2 => ^[[A
我在运行在 Windows 10 上的本地 cygwin 终端中使用 bash,在远程 CentOS Linux 机器上使用 bash,并使用 SSH 进行连接。是否有解决此问题的配置选项?
【问题讨论】:
-
您的意思是在 CLP 中还是在 bash 中执行 db2 后使用这些键?
-
在 CLP 中会发生这种情况
-
为什么投反对票?问题不是很清楚吗?我添加了一个示例。
标签: linux bash ssh db2 keymapping