-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Learning Cython Programming (Second Edition) - Second Edition
By :
Tmux is a terminal multiplexer inspired by GNU Screen (http://tmux.github.io/), but it supports much simpler and better configuration. More importantly, the implementation is much cleaner and easier to maintain, and it also uses libevent and very well-written C code.
I want to show you how you can extend Tmux with new built-in commands by writing Python code instead of C. Overall, there are several parts to this project, as follows:
struct cmd_entrycmd_tableLet's take a quick look at the Tmux source, and in particular any of the cmd-*.c files that contain command declarations and implementations. Consider, for example, that cmd-kill-window.c is the command entry. This tells Tmux the name of the command, its alias, and how it may or may not accept arguments; finally, it accepts a function pointer...
Change the font size
Change margin width
Change background colour