I encountered the same issue. When I pressed ‘Shift+|’ the character ’>’ , that is the ASCII=62 character was displayed in the DO console window.
My quick workaround was to enter the ASCII printable character code for the 'pipe’ character a.k.a. 'vertical-bar’ from the keyboard.
I was using a Dell Latitude laptop, that has a keyboard where the Fn+F4 is the numlock ON/OFF for the keyboard’s embedded Fn+numeric keypad, but the same workaround should work for any keyboards that has numlock, just substitute in the key presss for numlock ON specific to your keyboard in step 1.
- Press Fn+F4 to turn num-lock ON. Confirmed by the numlock icon (Lock with numeric 9) will be lighted. [Once numlock is on, the embedded Fn+numeric keypad is enabled. Pressing Fn+m gives 0, Fn-j gives 1, Fn+k gives 2, ....9Fn+9 gives 9 ]
- Hold the Alt-Fn keys down.
- Press j+j+u [Numeric ASCII code 123 for the ’|’ symbol.]
- Release the Alt+Fn keys.
The ’|’ will be displayed before the flashing cursor on the console screen.
Note: This only works using the 'Alt’ key with numlock. Using the top row of numeric keys does not have the same effect. Entering Alt+n where the n is from 1 to 0 in the top-row of numeric keys within the DO console gives (arg: 1) , Alt-2 gives (arg:2) , …Alt+9 gives (arg: 9, alt+0 gives (arg: 0).
Alternative solution:
In a 3-year old ask ubuntu response 'Ra’ suggested changing one’s keyboard layout for the DO console default '105 INT’. (105-key international). I have pasted 'Ra’s instructions below. It is access device dependent. In my short try I did not find a keyboard mapping that worked but I only tried 2 other Dell keyboard layouts.
—quote—
$ sudo dpkg-reconfigure keyboard-configuration
Alternatively, you can set XKBLAYOUT value in the keyboard config file /etc/default/keyboard
Then, apply the change by running:
$ sudo setupcon
—unquote—