diff options
author | rafan <rafan@FreeBSD.org> | 2011-04-22 23:17:15 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2011-04-22 23:17:15 +0800 |
commit | 407a781a3801ac9340b5caa25bd6ee31e77ffce8 (patch) | |
tree | ea5b80ea031b72b404394fb7d9db4eafa7ddb224 /net | |
parent | cc15e7860455159840ab74690b9bc52d987d4c16 (diff) | |
download | freebsd-ports-gnome-407a781a3801ac9340b5caa25bd6ee31e77ffce8.tar.gz freebsd-ports-gnome-407a781a3801ac9340b5caa25bd6ee31e77ffce8.tar.zst freebsd-ports-gnome-407a781a3801ac9340b5caa25bd6ee31e77ffce8.zip |
- Make it work with "Sun Function-Keys" Xterm
- Bump PORTREVISION
PR: ports/156521
Submitted by: David O'Brien (obrien@)
Diffstat (limited to 'net')
-rw-r--r-- | net/omnitty/Makefile | 2 | ||||
-rw-r--r-- | net/omnitty/files/patch-main.c | 17 |
2 files changed, 16 insertions, 3 deletions
diff --git a/net/omnitty/Makefile b/net/omnitty/Makefile index ab30d3ac4b3e..c183586f5f74 100644 --- a/net/omnitty/Makefile +++ b/net/omnitty/Makefile @@ -7,7 +7,7 @@ PORTNAME= omnitty PORTVERSION= 0.3.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} diff --git a/net/omnitty/files/patch-main.c b/net/omnitty/files/patch-main.c index b397e4293d93..5505e23d4ad6 100644 --- a/net/omnitty/files/patch-main.c +++ b/net/omnitty/files/patch-main.c @@ -1,6 +1,19 @@ --- main.c.orig 2005-10-26 06:08:25.000000000 +0800 -+++ main.c 2008-02-17 22:45:29.000000000 +0800 -@@ -335,9 +335,10 @@ ++++ main.c 2011-04-22 23:14:33.000000000 +0800 +@@ -88,6 +88,12 @@ + define_key("\e[15~", KEY_F(5)); define_key("\e[17~", KEY_F(6)); + define_key("\e[18~", KEY_F(7)); define_key("\e[19~", KEY_F(8)); + define_key("\e[20~", KEY_F(9)); define_key("\e[21~", KEY_F(10)); ++ /* If "Sun Function-Keys" is enabled in your Xterm: */ ++ define_key("\e[224z", KEY_F(1)); define_key("\e[225z", KEY_F(2)); ++ define_key("\e[226z", KEY_F(3)); define_key("\e[227z", KEY_F(4)); ++ define_key("\e[228z", KEY_F(5)); define_key("\e[229z", KEY_F(6)); ++ define_key("\e[230z", KEY_F(7)); define_key("\e[231z", KEY_F(8)); ++ define_key("\e[232z", KEY_F(9)); define_key("\e[233z", KEY_F(10)); + + getmaxyx(stdscr, h, w); + if (h < MIN_REQUIRED_HEIGHT || w < MIN_REQUIRED_WIDTH) { +@@ -335,9 +341,10 @@ while (!quit) { if (zombie_count) { |