TNSR Keyboard Layout (Question Mark Key)
-
When typing in the clixon_cli the question mark is not being interpreted correctly.
- Login as user with sudo priv
sudo -u tnsr clixon_cli
- Type
dataplane dpdk dev ?
and when pressing the?
it responds as if hitting the enter key.
Typing
?
with any other command in the clixon_cli, the?
behaves exactly as the enter key.Exit from the TNSR user and the question mark key behaves as expected in the VM.
We have tried as the Linux user (not as TNSR):
localectl set-keymap us-intl
sudo dpkg-reconfigure keyboard-configuration
We get the same behaviour at the console, ssh'ed in from both a Linux and Windows machine.
The install media used:
TNSR-DVD-Ubuntu-x86_64-22.02-1-Home-Lab.iso
We have installed the Centos version in the past without issue.
Any suggestions welcome.
-
What are you seeing vs what is expected in the CLI output?
It should look like this when you hit
?
:tnsr(config)# dataplane dpdk dev ? 0000:01:00.0 Co-processor: Intel Corporation Atom Processor C3000 Series QuickAssist Technology (rev 11) 0000:03:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03) 0000:04:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03) ( Active Interface enp4s0 ) 0000:06:00.0 Ethernet controller: Intel Corporation Ethernet Connection X553 1GbE (rev 11) 0000:06:00.1 Ethernet controller: Intel Corporation Ethernet Connection X553 1GbE (rev 11) 0000:08:00.0 Ethernet controller: Intel Corporation Ethernet Connection X553 1GbE (rev 11) 0000:08:00.1 Ethernet controller: Intel Corporation Ethernet Connection X553 1GbE (rev 11) ( Active Interface enp8s0f1 ) default tnsr(config)#
It does take you back to a prompt but shows the list of what parameters would go next first.
If I press
enter
, I get this instead:tnsr(config)# dataplane dpdk dev CLI syntax error: "dataplane dpdk dev": Incomplete command
What gets interpreted by the TNSR host when you press
?
depends more on your local terminal settings on the client than on the TNSR host. By default it works fine for me from BSD, Linux, Windows, etc.Before trying to change how the TNSR environment is configured I'd check the terminal emulation settings on your client and other similar connection properties.
-
@jimp Thanks for the reply.
It does look like the key is being registered but not displayed and it follows with an enter keypress. When I pressed
?
at the end of the first line, it immediately replied with the output (as if I hit enter).My first thought was it was the client -- Linux Mint VM I use in the lab.
I then connected using the Proxmox console access. Again, my thought was maybe something with how the Proxmox console was interpreting and sending the keystroke (used for both the VM and the console).
So, I connected using a non-lab Windows (PowerShell/OpenSSH) physical machine that gets used daily to connect to many ssh hosts and it exhibited the exact same behaviour.
The other part which is strange is the
?
behaves correctly when logged in as the user but only does the unwanted behaviour in the clixon_cli.Any suggestions for troubleshooting?
-
It looks like it's behaving correctly in your output to me.
When you hit
?
it should be doing what you show. It doesn't output?
in the CLI it triggers the CLI to print a list of help for what should come next in the command and then returns you to a fresh prompt. -
@jimp your screencap shows the
?
but mine does not.I would expect to have to hit enter after typing the
?
-- is this a clixon thing? I do not recall this from the previous version of TNSR and I have not use clixon anywhere else. -
@weehooey said in TNSR Keyboard Layout (Question Mark Key):
@jimp your screencap shows the
?
but mine does not.I added it manually to indicate where I typed
?
I would expect to have to hit enter after typing the
?
-- is this a clixon thing? I do not recall this from the previous version of TNSR and I have not use clixon anywhere else.It's been like that since TNSR began, it's always output the help as soon as the user presses
?
. I don't know if that is all clixon in general or specific to TNSR but seems more like clixon to me.If you hit
Tab
in some contexts it shows a list of next choices without going to a new line but not everything supports tab completion.tnsr(config)# data <tab> buffers cpu dpdk ethernet ip6 linux-cp logging memory ping shell statseg traceroute tnsr(config)# dataplane dpd <tab> blacklist decimal-interface-names dev iova-mode log-level no-multi-seg no-pci no-tx-checksum-offload tcp-udp-checksum telemetry uio-driver tnsr(config)# dataplane dpdk dev <tab> 0000:01:00.0 0000:03:00.0 0000:04:00.0 0000:06:00.0 0000:06:00.1 0000:08:00.0 0000:08:00.1 default
Again I put
<tab>
where I hit theTab
key, note the space before it. -
@jimp Ah! Cool. Thank you -- I appreciate your patience.
Sorry for the false alarm.