简体   繁体   English

Netbeans“远程终端选项卡”alt / ctrl和其他组合键不起作用

[英]Netbeans “Remote Terminal Tab” alt / ctrl and other key combinations doesn't work

I am using Netbeans 8.0.2. 我正在使用Netbeans 8.0.2。

Recently, I had discovered the "Remote Terminal Tab" option and it is cool. 最近,我发现了“远程终端选项卡”选项,很酷。 It can be very useful under certain circumstances. 在某些情况下它可能非常有用。 It is located under "Window menu"->"IDE Tools"->"Terminal". 它位于“窗口菜单” - >“IDE工具” - >“终端”下。

It seems to work properly, exactly like putty / or other ssh client. 它似乎工作正常,完全像putty /或其他ssh客户端。 BUT there is a problem with key combinations interpretation. 但是键组合解释存在问题。

Alt + < any > doesn't work, seems like the Tab ignores the Alt key completely. Alt + <any>不起作用,似乎Tab完全忽略Alt键。 So, if you used to Alt + d or Alt + right arrow / left arrow this functionality is not available. 因此,如果您习惯使用Alt + dAlt + 右箭头 / 左箭头,则此功能不可用。

The same for control. 控制相同。 Ctrl + right arrow / left arrow and many others results unexpected behavior. Ctrl + 向右箭头 / 向左箭头和许多其他结果会导致意外行为。 Ctrl + r , s , c , z and some others work, but certain combinations like Ctrl + right arrow / left arrow , backspace , and many others doesn't work. Ctrl + rscz其他一些工作,但某些组合,如Ctrl + 右箭头 / 左箭头退格键许多其他组合不起作用。

Simple steps to reproduce and understand the problem: 简单的步骤来重现和理解问题:

  • open "Remote Terminal Tab" (setup connection... connect to you remote host) 打开“远程终端选项卡”(设置连接...连接到远程主机)
  • run the read command 运行read命令

centos_artur:~$ read centos_artur:〜$读

now type combinations with alt key, for example alt + d , alt + right / left , you'll get: 现在用alt键键入组合,例如alt + dalt + right / left ,你会得到:

d^[[D^[[C d ^ [[d ^ [[C

now, for ctrl + left , right , you'll get: 现在,对于ctrl + leftright ,你会得到:

^[[D^[[C ^ [[d ^ [[C

Now open any native linux bash terminal, for example centos. 现在打开任何本机linux bash终端,例如centos。 Run the same read command, and this what you'll get as output: 运行相同的读取命令,这将是您将获得的输出:

Alt  + d     = ^[d
Alt  + left  = ^[[1;3D
Alt  + right = ^[[1;3C
Ctrl + left  = ^[[1;5D
Ctrl + right = ^[[1;5C

The question is: How to make those combinations work in NetBeans "Remote Terminal Tab" ? 问题是:如何使这些组合在NetBeans“远程终端选项卡”中工作? How to fix it? 怎么解决? I read something about NetBeans use Alt key for internal use only short-cuts, I assume this related, but doesn't help solving the problem. 我读过一些关于NetBeans使用Alt键的内部使用只有捷径,我认为这有关,但无助于解决问题。

I tested with Netbeans on Windows 7 and Linux(on CentOS) versions. 我在Windows 7和Linux(在CentOS上)版本上使用Netbeans进行了测试。 And got the same behaviour on both... 并且两者都有相同的行为......

A bug opened for the issue on I found this bug description ( https://netbeans.org/bugzilla/show_bug.cgi?id=236268 ) on netbeans bugzilla site. 我在这个问题上打开了一个错误,在netbeans bugzilla网站上发现了这个错误描述( https://netbeans.org/bugzilla/show_bug.cgi?id=236268 )。

This is quite a common problem while working with consoles... Problem is, that there is a serialization going on between the host computer (keyboard driver etc) and the virtual terminal (serial VT). 使用控制台时这是一个非常常见的问题...问题是,主机(键盘驱动程序等)和虚拟终端(串行VT)之间存在序列化。 In my experience, not even an oldschool tool like Putty or even cygwin has 100% implementations. 根据我的经验,即使像Putty甚至cygwin这样的oldschool工具也没有100%的实现。

You have to rely on netbeans dev team 你必须依靠netbeans开发团队

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM