| | dvtm mod | Epic/Caché mod | AIX mod | |
Running the tm script described below within mintty using the DejaVu Sans Mono font. Also, I use the summerfruit256 colorscheme in Vim
Customized version of dvtm specifically to support key mappings and escape sequences used in Caché by Epic.
Also includes string matching rules defined in the config.h file for dynamic terminal colors (foreground, background, and attributes). Rules are matched against the window title, and so can be defined to dynamically change based on userid, hostname, etc.
See below for details on my configuration files and startup scripts.
To build, edit config.mk to match your local setup and customize config.h as you see fit. Then run make install. See the official dvtm website for more details.
Customized version of dvtm specifically to compile on AIX.
To build I run ./configure then make, then cp -p dtach $PREFIX/bin/. See the official dtach website for more details.
Ultimately, the command I use to launch dvtm in my AIX session is the tm script at the end of this section. It uses dtach and the dvtm-status script to start up the dynamic virtual terminal manager that I work in every day.
#define Black 0 #define White 15 #define DeepSkyBlue4 24 #define Honeydew2 194 #define LightCyan1 195 #define OrangeRed1 202 #define MistyRose1 224 #define SELECTED_ATTR A_NORMAL #define SELECTED_FG White #define SELECTED_BG OrangeRed1 /* curses attributes for normal (not selected) windows */ #define NORMAL_ATTR A_NORMAL #define NORMAL_FG DeepSkyBlue4 #define NORMAL_BG Honeydew2 /* status bar (command line option -s) position */ #define BARPOS BarTop /* BarBot, BarOff */ /* curses attributes for the status bar */ #define BAR_ATTR A_NORMAL #define BAR_FG Honeydew2 #define BAR_BG DeepSkyBlue4 #define MOD CONTROL('a') static const ColorRule colorrules[] = { /* title attrs fgcolor bgcolor */ { "prod:", A_NORMAL, Black, MistyRose1 }, { "shad:", A_NORMAL, Black, LightCyan1 }, };
In order to compile on my AIX system, I have to remove -lutil from the LIBS variable in config.mk.
#!/bin/sh FIFO="$HOME/.dvtm-status" [ -e "$FIFO" ] || mkfifo "$FIFO" chmod 600 $FIFO while true; do echo "`df | grep -E '(9|10).%' | sed 's/.* \([0-9]*%\) \(.*\)/ \2:\1 /' | tr '\n' '-'`\ [`uptime | sed 's/.*age: //'`]\ [`date +\"%a %d-%b-%g %l:%M %p\"`" sleep 10 done > $FIFO & STATUS_PID=$! dvtm -s $FIFO "$@" 2>/dev/null kill $STATUS_PID rm $FIFO
#!/bin/sh SESS="$HOME/.dvtm-session" dtach -A $SESS -r winch dvtm-status $@