vlang / vinix

Vinix is an effort to write a modern, fast, and useful operating system in the V programming language
https://vlang.io
GNU General Public License v2.0
1.89k stars 120 forks source link

Out of bounds handling for non-US keyboards #104

Open paradoxheart opened 1 year ago

paradoxheart commented 1 year ago

For the most part a UK layout keyboard works on Vinix, but certain keys will trigger a panic. For example, when typing a pipe character:

V panic: array.get: index out of range (i == 86, a.len == 58) v hash: bfcf5b1

I suggest for all keys that cannot be mapped, that U+FFFD � REPLACEMENT CHARACTER is emitted.