Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | input: rework how input sources are added | wm4 | 2013-12-21 | 1 | -1/+18 |
| | | | | | | | | | | | | | | Until now, there were two functions to add input sources (stuff like stdin input, slave mode, lirc, joystick). Unify them to a single function (mp_input_add_fd()), and make sure the associated callbacks always have a context parameter. Change the lirc and joystick code such that they take store their state in a context struct (probably worthless), and use the new mp_msg replacements (the point of this refactoring). Additionally, get rid of the ugly USE_FD0_CMD_SELECT etc. ifdeffery in the terminal handling code. | ||||
* | terminal: abstract terminal color handling | wm4 | 2013-12-20 | 1 | -1/+21 |
| | | | | | | | | Instead of making msg.c an ifdef hell for unix vs. windows code, move the code to separate functions defined in terminal-unix.c/terminal- win.c. Drop the code that selects random colors for --msgmodule prefixes. | ||||
* | terminal: move SIGTTOU signal handler setup code | wm4 | 2013-12-19 | 1 | -0/+2 |
| | | | | | | This comes with a real change in behavior: now the signal handler is set only when the terminal input code is active (e.g. not with --no-consolecontrols), but this should be ok. | ||||
* | Rename getch2....c/h to terminal....c/h | wm4 | 2013-12-19 | 1 | -0/+578 |
"getch2" really tells nothing about what the heck this code does. It'd be even worse when moving the rest of terminal handling code there. |