summaryrefslogtreecommitdiff
path: root/community/dvtm
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-05 23:14:38 +0000
committerroot <root@rshg054.dnsready.net>2011-09-05 23:14:38 +0000
commite05f52e52ba779f4b0ebb5463dba9fc74f67f0b8 (patch)
tree426be7e1703e9b4aaec588af1dcec4ae24fe161e /community/dvtm
parentf651180e6b1ac9508ec0d1d9b94972de776020a9 (diff)
Mon Sep 5 23:14:38 UTC 2011
Diffstat (limited to 'community/dvtm')
-rw-r--r--community/dvtm/PKGBUILD8
-rw-r--r--community/dvtm/config.h31
2 files changed, 23 insertions, 16 deletions
diff --git a/community/dvtm/PKGBUILD b/community/dvtm/PKGBUILD
index b5444c7f4..358b4251d 100644
--- a/community/dvtm/PKGBUILD
+++ b/community/dvtm/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 52669 2011-07-27 12:48:55Z lfleischer $
+# $Id: PKGBUILD 55178 2011-09-04 22:30:57Z lfleischer $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Giorgio Lando <patroclo7@gmail.com>
# Contributor: bender02 at gmx dot com
pkgname=dvtm
-pkgver=0.6
+pkgver=0.7
pkgrel=1
pkgdesc='Dynamic virtual terminal manager.'
arch=('i686' 'x86_64')
@@ -13,8 +13,8 @@ license=('MIT')
depends=('ncurses')
source=("http://www.brain-dump.org/projects/${pkgname}/${pkgname}-${pkgver}.tar.gz"
'config.h')
-md5sums=('db77a3744868dd91a5ae5ad98b7df709'
- '5759191a39281e62a64941d3f28cf010')
+md5sums=('d8ef63bad5b48324ad040630c51a1c26'
+ '50ae76c4b33864f0cf051417443cc422')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
diff --git a/community/dvtm/config.h b/community/dvtm/config.h
index 39e121ee9..2b00776f2 100644
--- a/community/dvtm/config.h
+++ b/community/dvtm/config.h
@@ -22,7 +22,7 @@
#define NORMAL_FG -1
#define NORMAL_BG -1
/* status bar (command line option -s) position */
-#define BARPOS BarTop /* BarBot, BarOff */
+#define BAR_POS BAR_TOP /* BAR_BOTTOM, BAR_OFF */
/* curses attributes for the status bar */
#define BAR_ATTR A_NORMAL
#define BAR_FG BLUE
@@ -36,9 +36,9 @@
* the SEPARATOR, %d stands for the window number */
#define TITLE "[%s%s#%d]"
/* master width factor [0.1 .. 0.9] */
-#define MWFACT 0.5
+#define MFACT 0.5
/* scroll back buffer size in lines */
-#define SCROLL_BUF_SIZE 500
+#define SCROLL_HISTORY 500
#include "tile.c"
#include "grid.c"
@@ -68,15 +68,11 @@ Key keys[] = {
{ MOD, 'b', { setlayout, { "TTT" } } },
{ MOD, 'm', { setlayout, { "[ ]" } } },
{ MOD, ' ', { setlayout, { NULL } } },
- { MOD, 'h', { setmwfact, { "-0.05" } } },
- { MOD, 'l', { setmwfact, { "+0.05" } } },
+ { MOD, 'h', { setmfact, { "-0.05" } } },
+ { MOD, 'l', { setmfact, { "+0.05" } } },
{ MOD, '.', { toggleminimize, { NULL } } },
-#ifdef CONFIG_STATUSBAR
{ MOD, 's', { togglebar, { NULL } } },
-#endif
-#ifdef CONFIG_MOUSE
- { MOD, 'M', { mouse_toggle, { NULL } } },
-#endif
+ { MOD, 'M', { togglemouse, { NULL } } },
{ MOD, '\n', { zoom , { NULL } } },
{ MOD, '1', { focusn, { "1" } } },
{ MOD, '2', { focusn, { "2" } } },
@@ -98,6 +94,13 @@ Key keys[] = {
{ MOD, '?', { create, { "man dvtm", "dvtm help" } } },
};
+static const ColorRule colorrules[] = {
+ /* title attrs fgcolor bgcolor */
+#if 0
+ { "ssh", A_NORMAL, COLOR_BLACK, 224 },
+#endif
+};
+
/* possible values for the mouse buttons are listed below:
*
* BUTTON1_PRESSED mouse button 1 down
@@ -127,6 +130,12 @@ Key keys[] = {
* REPORT_MOUSE_POSITION report mouse movement
*/
+#ifdef NCURSES_MOUSE_VERSION
+# define CONFIG_MOUSE /* compile in mouse support if we build against ncurses */
+#endif
+
+#define ENABLE_MOUSE true /* whether to enable mouse events by default */
+
#ifdef CONFIG_MOUSE
Button buttons[] = {
{ BUTTON1_CLICKED, { mouse_focus, { NULL } } },
@@ -136,11 +145,9 @@ Button buttons[] = {
};
#endif /* CONFIG_MOUSE */
-#ifdef CONFIG_CMDFIFO
Cmd commands[] = {
{ "create", { create, { NULL } } },
};
-#endif /* CONFIG_CMDFIFO */
/* gets executed when dvtm is started */
Action actions[] = {