Hmm might have found a bug in the #OpenBSD wscons as I have used @joel@tumfatig.net excellent blog post to setup my console to use uk keyboard layout on my #Thinkpad and the us on my custom built tkl keyboard. It works perfectly with the exception of the uk layout. If i type a £ it will not let me delete it on the console. But every other character is fine on both us and uk layouts. Am i being stupid or is this a bug ???
https://www.tumfatig.net/2026/multiple-keyboard-layouts-on-openbsd/
0 Boosts
0 Likes
I'm using the #OpenBSD default ksh and whenever I use the ThinkPad keyboard which is set in wscons to use uk it prints £ but will not let me delete it.
@justine Yes, definitely a bug.
If I typed “abc£” and pressed Return, it would say “ksh: abc£: not found”.
But if I pressed Backspace once and then Return, here's what I see on the screen:
myhost$ abc
ksh: ab: not found
How weird!
@alderwick @justine Does it happen with other characters which are multi-byte in UTF-8?
So far I have only noticed the £ symbol but there might be more I've not yet discovered ???
CC: @alderwick@merveilles.town
@justine That's odd! I just typed “£££” in my console and was able to backspace over them as you'd expect.
But wait! I was using bash. I switch to ksh and I can replicate it too
Something is up with ksh's awareness of were the cursor is on the command line. If I type “abc£”, then start backspacing, it displays one fewer character for each backspace, but it stops when “a” is left.