1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 10:32:15 +00:00
mpv/osdep
Diogo Franco (Kovensky) 057467f6b3 getch2: Refactor/rewrite
Still uses termcap, but uses terminfo for loading the termcap database if
possible. Adds configure test to find terminfo; skips the termcap test
if terminfo is found since terminfo provides termcap.

Use termcap completely for special keys; if we can't get it from termcap
and it isn't one of the known fallbacks, we ignore its specialness and
treat as a sequence of UTF-8 codes.

Further hardcoded fallbacks can be added by calling keys_push_once in
load_termcap; there is no limit to the amount of keys pushed.

Uses the "ke" and "ks" capabilities to start / exit application mode, which
is necessary on vt100 emulators (including screen, xterm and all terminals
that emulate either of those) to correctly receive arrow keys.

It's now possible to compile getch2 even without termcap, though it won't
be of much use since it'll be unable to detect special keys.

Converted to 4 spaces per tab, prettified some statements.
2013-07-25 00:01:51 -03:00
..
ar osx: add Apple Remote support 2013-06-03 22:35:47 +02:00
getch2-win.c getch2-win: uncrustify 2013-07-14 16:08:27 +02:00
getch2.c getch2: Refactor/rewrite 2013-07-25 00:01:51 -03:00
getch2.h core: cleanup more mp_fifo leftovers 2013-07-02 14:11:31 +02:00
glob-win.c osdep:/glob-win.c: reformat 2012-08-03 01:31:32 +02:00
glob.h
io.c windows support: fix _wstat misusage 2013-01-13 17:32:39 +01:00
io.h windows support: fix _wstat misusage 2013-01-13 17:32:39 +01:00
macosx_application_objc.h cocoa_common: handle keyboard modifiers for mouse events 2013-07-21 10:49:27 +02:00
macosx_application.h cocoa: remove usage of mp_fifo 2013-07-03 22:25:45 +02:00
macosx_application.m cocoa: remove usage of mp_fifo 2013-07-03 22:25:45 +02:00
macosx_bundle.h path: add mp_find_config_file and reorganize some of the code 2012-12-15 17:38:00 +01:00
macosx_bundle.m path: add mp_find_config_file and reorganize some of the code 2012-12-15 17:38:00 +01:00
macosx_compat.h OSX: fix compilation with 10.7 SDK 2013-06-19 21:24:26 +02:00
macosx_events.h cocoa_common: handle keyboard modifiers for mouse events 2013-07-21 10:49:27 +02:00
macosx_events.m cocoa_common: handle keyboard modifiers for mouse events 2013-07-21 10:49:27 +02:00
mpv.exe.manifest w32: update manifest for high DPI and Windows 8.1 2013-07-14 16:10:23 +02:00
mpv.rc Update copyright year 2013-01-04 15:23:23 +01:00
numcores.c vd_ffmpeg: set thread count to number of cores on machine by default 2010-12-20 05:53:28 +02:00
numcores.h vd_ffmpeg: set thread count to number of cores on machine by default 2010-12-20 05:53:28 +02:00
priority.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
priority.h cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00
timer-darwin.c timer: refactor, add 64 bit timer function 2013-05-26 16:44:20 +02:00
timer-linux.c timer: refactor, add 64 bit timer function 2013-05-26 16:44:20 +02:00
timer-win2.c timer: use gettimeofday() on Windows 2013-05-26 16:44:20 +02:00
timer.c Replace calls to usec_sleep() 2013-05-26 16:44:20 +02:00
timer.h Replace calls to usec_sleep() 2013-05-26 16:44:20 +02:00