Perform input translation (e.g. DEL<->BKSPC, PETSCII chars) in input_thread()
My first idea was to have a per-external-program setting to enable input translation, but Deuce suggested it would be better done in input_thread() and after some thought, I agree. Translations are not done in data/file transfer mode, so use the CON_RAW_IN console flag to indicate this condition. So even JS console.getbyte() will return a translated char unless the console is set raw input mode (this could be surprising behavior for some!). I considered saving/restoring the console mode when performing a file transfer but will leave that to a time when obviously needed. This fixes issue #497 in automatic way (no option needed).
parent
28fc0106
No related branches found
No related tags found
Showing
- src/sbbs3/download.cpp 20 additions, 10 deletionssrc/sbbs3/download.cpp
- src/sbbs3/inkey.cpp 1 addition, 3 deletionssrc/sbbs3/inkey.cpp
- src/sbbs3/main.cpp 3 additions, 0 deletionssrc/sbbs3/main.cpp
- src/sbbs3/sbbs.h 3 additions, 1 deletionsrc/sbbs3/sbbs.h
- src/sbbs3/sbbsdefs.h 0 additions, 2 deletionssrc/sbbs3/sbbsdefs.h
Loading
Please register or sign in to comment