summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-01-13 07:59:21 +0100
committerwm4 <wm4@mplayer2.org>2012-01-18 04:13:27 +0100
commite72296758074d8e375490025b0cbe7f333230f13 (patch)
treeead7a5b776f7123bc2e3b3451357a12f26f62c5a /input
parentad455c43f54f1ec259d9aea48cc16e7c4485b584 (diff)
downloadmpv-e72296758074d8e375490025b0cbe7f333230f13.tar.bz2
mpv-e72296758074d8e375490025b0cbe7f333230f13.tar.xz
input: handle UTF-8 terminal input
This assumes the terminal uses UTF-8. If invalid UTF-8 is encountered (for example because the terminal uses a legacy encoding), the code falls back to the old method and feeds each byte as key code to the input code. In theory, UTF-8 input could randomly fail, because the code in getch2.c doesn't try to fill the input buffer correctly with input sequences longer than a byte. This is a problem with the design of the existing code.
Diffstat (limited to 'input')
0 files changed, 0 insertions, 0 deletions