Thu Aug 23 14:00:02 2001 Michael Jennings (mej)

I got tired of having to maintain half a gazillion menus.cfg files
considering that the vast majority of them are identical or have
large identical sections.  Thus, I took the m4-based menus.cfg from
the chooser theme and hacked on it a bunch.  I can now regenerate
the menu files for all Eterm themes from a single source file using
the gen-menus script in doc/.

I also removed the comments from the theme.cfg files of all themes
except "Eterm" itself.


SVN revision: 5263
This commit is contained in:
Michael Jennings 2001-08-23 21:04:36 +00:00
parent 2770621c7d
commit e65a9e34aa
14 changed files with 1223 additions and 992 deletions

View File

@ -4350,3 +4350,15 @@ Tue Aug 21 12:51:54 2001 Michael Jennings (mej)
Updating menus for some themes, and removing some themes that really
don't demonstrate anything spectacular. They'll go on the web site.
----------------------------------------------------------------------
Thu Aug 23 14:00:02 2001 Michael Jennings (mej)
I got tired of having to maintain half a gazillion menus.cfg files
considering that the vast majority of them are identical or have
large identical sections. Thus, I took the m4-based menus.cfg from
the chooser theme and hacked on it a bunch. I can now regenerate
the menu files for all Eterm themes from a single source file using
the gen-menus script in doc/.
I also removed the comments from the theme.cfg files of all themes
except "Eterm" itself.
----------------------------------------------------------------------

View File

@ -891,8 +891,7 @@ export BINDIR bindir prefix exec_prefix datadir PACKAGE
# environment variables, kinda like AC_OUTPUT above.
changequote(%&, &%)dnl
%&
for i in utils/kEsetroot themes/Eterm/theme.cfg themes/auto/theme.cfg themes/cEterm/theme.cfg \
themes/chooser/theme.cfg themes/emacs/theme.cfg themes/irc/theme.cfg themes/mutt/theme.cfg \
for i in utils/kEsetroot themes/Eterm/theme.cfg themes/auto/theme.cfg themes/chooser/theme.cfg \
themes/trans/theme.cfg ; do
echo creating $i
$AWK '{if (match($0,/@[A-Za-z0-9_]*@/)) {

24
doc/gen-menus Executable file
View File

@ -0,0 +1,24 @@
#!/bin/sh
#
# Regenerate menus.cfg files for themes from the master file
#
# 23 August 2001
# Michael Jennings <mej@eterm.org>
#
# (Consider this code public domain. I don't care who does what with
# it. It's not that significant.) :-)
#
PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/sbin:/usr/sbin
if [ "x$1" = "x-d" ]; then
shift
DIR=$1
shift
fi
for i in "$@" ; do
echo $i
DEF=`echo $(basename $i) | tr '[a-z]' '[A-Z]'`
m4 -D$DEF ${DIR:-.}/menu-master-file.m4 | perl -ne '/^\s*$/ || print;' > $i/menus.cfg
chmod a+r,o-w $i/*.cfg
done

692
doc/menu-master-file.m4 Normal file
View File

@ -0,0 +1,692 @@
<Eterm-0.9.1>
dnl# These macros are used everywhere.
define(STRING_ITEM, `begin menuitem
text "$1"
ifelse($3, `', `action string "$2"', `rtext "$2"
action string "$3"')
end')
define(ECHO_ITEM, `begin menuitem
text "$1"
ifelse($3, `', `action echo "$2"', `rtext "$2"
action echo "$3"')
end')
define(SUBMENU_ITEM, `begin menuitem
text "$1"
action submenu "ifelse($2, `', $1, $2)"
end')
define(SCRIPT_ITEM, `begin menuitem
text "$1"
ifelse($3, `', `action script "$2"', `rtext "$2"
action script "$3"')
end')
define(FONT_ITEM, `begin menuitem
text "$1"
action string "\e]50;#$2"
end')
dnl#
dnl# Define these only for the chooser theme
dnl#
ifdef(`CHOOSER', `
dnl# HOST_ITEM(protocol, hostname [, ip])
define(HOST_ITEM, `begin menuitem
text "$2"
action script "string(\e]0\\;$2\\ $1\a); echo($1\\ '`ifelse($3, `', `$2', `$3')'`\r);"
end')
dnl# INT_MENU(protocol)
define(INT_MENU, `begin menu
title "Internal Hosts $1"
HOST_ITEM(`$1', `alpha')
HOST_ITEM(`$1', `beta')
HOST_ITEM(`$1', `gamma', `10.1.1.10')
HOST_ITEM(`$1', `delta')
end')
define(EXT_MENU, `begin menu
title "External Hosts $1"
HOST_ITEM(`$1', `carbon.foo.com')
HOST_ITEM(`$1', `i.am.danish.so.eatme.net')
HOST_ITEM(`$1', `oxygen.bar.org')
end')
define(PROTOCOL_MENU, `begin menu
title "$1"
begin menuitem
text "Internal Hosts"
action submenu "Internal Hosts $1"
end
begin menuitem
text "External Hosts"
action submenu "External Hosts $1"
end
end')
define(DO_PROTOCOL, `INT_MENU($1)
EXT_MENU($1)
PROTOCOL_MENU($1)')
')
dnl#
dnl# Beginning of the actual menus
dnl#
begin menu
title Font
FONT_ITEM(`Normal', `')
FONT_ITEM(`Larger', `+')
FONT_ITEM(`Smaller', `-')
-
FONT_ITEM(`Font 1', `1')
FONT_ITEM(`Font 2', `2')
FONT_ITEM(`Font 3', `3')
FONT_ITEM(`Font 4', `4')
end
begin menu
title Toggles
STRING_ITEM(`Cursor Visible', `\e[?25t')
STRING_ITEM(`Home on Output', `\e[?1010t')
STRING_ITEM(`Home on Input', `\e[?1012t')
STRING_ITEM(`Map Alert', `\e]6;21\a')
STRING_ITEM(`Primary/Secondary Screen', `\e[?47t')
STRING_ITEM(`Reverse Video', `\e[?5t')
STRING_ITEM(`Select Trailing Spaces', `\e]6;25\a')
STRING_ITEM(`Select Whole Line on Triple-click', `\e]6;23\a')
STRING_ITEM(`Visual Bell', `\e]6;20\a')
STRING_ITEM(`X11 Mouse Reporting', `\e[?1000t')
STRING_ITEM(`Xterm Selection Behavior', `\e]6;22\a')
end
begin menu
title Keys
STRING_ITEM(`Application Arrow Keys', `\e[?1t')
STRING_ITEM(`Application Keypad', `\e[?66t')
STRING_ITEM(`Backspace/Delete', `\e[?67t')
STRING_ITEM(`Xterm Shift-Keys', `\e[?35t')
end
begin menu
title Scrollbar
STRING_ITEM(`Toggle Visibility', `Ctrl-Button2', `\e[?30t')
STRING_ITEM(`Swap Sides', `\e]6;11\a')
STRING_ITEM(`Toggle Floating', `\e]6;12\a')
STRING_ITEM(`Toggle Popup Mode', `\e]6;13\a')
-
STRING_ITEM(`Motif (Traditional) Style', `\e]6;10;motif;;\a')
STRING_ITEM(`NeXT Style', `\e]6;10;next;;\a')
STRING_ITEM(`Xterm Style', `\e]6;10;xterm;;\a')
end
begin menu
title Width
STRING_ITEM(`5', `\e]6;10;;5;\a')
STRING_ITEM(`6', `\e]6;10;;6;\a')
STRING_ITEM(`7', `\e]6;10;;7;\a')
STRING_ITEM(`8', `\e]6;10;;8;\a')
STRING_ITEM(`9', `\e]6;10;;9;\a')
STRING_ITEM(`10', `\e]6;10;;10;\a')
STRING_ITEM(`11', `\e]6;10;;11;\a')
STRING_ITEM(`12', `\e]6;10;;12;\a')
STRING_ITEM(`13', `\e]6;10;;13;\a')
STRING_ITEM(`14', `\e]6;10;;14;\a')
STRING_ITEM(`15', `\e]6;10;;15;\a')
STRING_ITEM(`16', `\e]6;10;;16;\a')
STRING_ITEM(`17', `\e]6;10;;17;\a')
STRING_ITEM(`18', `\e]6;10;;18;\a')
STRING_ITEM(`19', `\e]6;10;;19;\a')
STRING_ITEM(`20', `\e]6;10;;20;\a')
end
begin menu
title "Move to Desktop"
STRING_ITEM(`0', `\e]6;50;0;\a')
STRING_ITEM(`1', `\e]6;50;1;\a')
STRING_ITEM(`2', `\e]6;50;2;\a')
STRING_ITEM(`3', `\e]6;50;3;\a')
STRING_ITEM(`4', `\e]6;50;4;\a')
STRING_ITEM(`5', `\e]6;50;5;\a')
STRING_ITEM(`6', `\e]6;50;6;\a')
STRING_ITEM(`7', `\e]6;50;7;\a')
end
begin menu
title Terminal
SUBMENU_ITEM(`Toggles')
SUBMENU_ITEM(`Keys')
SUBMENU_ITEM(`Scrollbar')
SUBMENU_ITEM(`Move to Desktop')
-
STRING_ITEM(`Steal Focus', `Ctrl-Button1', `\e]5;\a')
STRING_ITEM(`Full Reset', `\ec')
end
begin menu
title Tiled
STRING_ITEM(`70s Marble', `\e]20;tile/70s_marble.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Atoms', `\e]20;tile/atoms.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Black Stone', `\e]20;tile/blackstone.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Blue Ether', `\e]20;tile/ether_blue.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Blue Marble', `\e]20;tile/blue_marble.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Bubbly 1', `\e]20;tile/bubbly1.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Bubbly 2', `\e]20;tile/bubbly2.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Bubbly 3', `\e]20;tile/bubbly3.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Bubbly 4', `\e]20;tile/bubbly4.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Circuit', `\e]20;tile/circuit.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Confusion', `\e]20;tile/confusion.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Cyber Playground', `\e]20;tile/cyber_bg.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Dimples', `\e]20;tile/014.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Dirt', `\e]20;tile/dirt.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Egg', `\e]20;tile/egg.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Ether', `\e]20;tile/ether.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Giger 1', `\e]20;tile/giger1.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Giger 2', `\e]20;tile/giger2.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Gray Matter', `\e]20;tile/22.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Gray Waves', `\e]20;tile/59.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Green Ether', `\e]20;tile/ether_green.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Lava', `\e]20;tile/004.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Nebula', `\e]20;tile/nebula.jpg;0x0+0+0:tile\a')
STRING_ITEM(`On Stage', `\e]20;tile/lightb1.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Purple Stuff', `\e]20;tile/purple_stuff.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Red Whisper', `\e]20;tile/40.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Shale', `\e]20;tile/shale.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Soft Marble', `\e]20;tile/soft.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Space', `\e]20;tile/space.png;0x0+0+0:tile\a')
STRING_ITEM(`Starry Night', `\e]20;tile/starry.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Steel', `\e]20;tile/steel1.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Twisted', `\e]20;tile/twisted.jpg;0x0+0+0:tile\a')
STRING_ITEM(`Whirlpool', `\e]20;tile/015.jpg;0x0+0+0:tile\a')
end
begin menu
title Scaled
STRING_ITEM(`Day/Night', `\e]20;scale/day-night.jpg;100x100+50+50\a')
STRING_ITEM(`Good Morning', `\e]20;scale/good-morning.jpg;100x100+50+50\a')
STRING_ITEM(`Neopolis', `\e]20;scale/Neopolis-horizon.jpg;100x100+50+50\a')
STRING_ITEM(`Pond', `\e]20;scale/pond.jpg;100x100+50+50\a')
STRING_ITEM(`Ripple', `\e]20;scale/ripple.jpg;100x100+50+50\a')
STRING_ITEM(`Sunset', `\e]20;scale/sunset.jpg;100x100+50+50\a')
STRING_ITEM(`Wasteland', `\e]20;scale/wasteland.jpg;100x100+50+50\a')
STRING_ITEM(`Winter Tree', `\e]20;scale/wintertree.jpg;100x100+50+50\a')
end
begin menu
title Attrib
STRING_ITEM(`Full Size', `\e]20;;100x100')
STRING_ITEM(`Normal Size', `\e]20;;0x0')
-
STRING_ITEM(`Tiled', `\e]20;;:tile')
STRING_ITEM(`Scaled', `\e]20;;100x100')
STRING_ITEM(`Proportional Scale', `\e]20;;100x100:propscale')
-
STRING_ITEM(`Center', `\e]20;;=+50+50')
STRING_ITEM(`Top Left Corner', `\e]20;;=+0+0')
STRING_ITEM(`Bottom Right Corner', `\e]20;;=+100+100')
end
begin menu
title Pixmap
STRING_ITEM(`None', `\e[m\e]20;;\a')
STRING_ITEM(`Toggle Viewport Mode', `\e]6;24\a')
SUBMENU_ITEM(`Tiled')
SUBMENU_ITEM(`Scaled')
-
SUBMENU_ITEM(`Attrib')
end
begin menu
title Brightness
STRING_ITEM(`512 (200%)', `\e]6;1;image;brightness;512\a')
STRING_ITEM(`480 (188%)', `\e]6;1;image;brightness;480\a')
STRING_ITEM(`448 (175%)', `\e]6;1;image;brightness;448\a')
STRING_ITEM(`416 (163%)', `\e]6;1;image;brightness;416\a')
STRING_ITEM(`384 (150%)', `\e]6;1;image;brightness;384\a')
STRING_ITEM(`352 (138%)', `\e]6;1;image;brightness;352\a')
STRING_ITEM(`320 (125%)', `\e]6;1;image;brightness;320\a')
STRING_ITEM(`288 (113%)', `\e]6;1;image;brightness;288\a')
STRING_ITEM(`256 (100%)', `\e]6;1;image;brightness;256\a')
STRING_ITEM(`224 (88%)', `\e]6;1;image;brightness;224\a')
STRING_ITEM(`192 (75%)', `\e]6;1;image;brightness;192\a')
STRING_ITEM(`160 (63%)', `\e]6;1;image;brightness;160\a')
STRING_ITEM(`128 (50%)', `\e]6;1;image;brightness;128\a')
STRING_ITEM(`96 (38%)', `\e]6;1;image;brightness;96\a')
STRING_ITEM(`64 (25%)', `\e]6;1;image;brightness;64\a')
STRING_ITEM(`32 (13%)', `\e]6;1;image;brightness;32\a')
STRING_ITEM(`0 (0%)', `\e]6;1;image;brightness;0\a')
end
begin menu
title Contrast
STRING_ITEM(`512 (200%)', `\e]6;1;image;contrast;512\a')
STRING_ITEM(`480 (188%)', `\e]6;1;image;contrast;480\a')
STRING_ITEM(`448 (175%)', `\e]6;1;image;contrast;448\a')
STRING_ITEM(`416 (163%)', `\e]6;1;image;contrast;416\a')
STRING_ITEM(`384 (150%)', `\e]6;1;image;contrast;384\a')
STRING_ITEM(`352 (138%)', `\e]6;1;image;contrast;352\a')
STRING_ITEM(`320 (125%)', `\e]6;1;image;contrast;320\a')
STRING_ITEM(`288 (113%)', `\e]6;1;image;contrast;288\a')
STRING_ITEM(`256 (100%)', `\e]6;1;image;contrast;256\a')
STRING_ITEM(`224 (88%)', `\e]6;1;image;contrast;224\a')
STRING_ITEM(`192 (75%)', `\e]6;1;image;contrast;192\a')
STRING_ITEM(`160 (63%)', `\e]6;1;image;contrast;160\a')
STRING_ITEM(`128 (50%)', `\e]6;1;image;contrast;128\a')
STRING_ITEM(`96 (38%)', `\e]6;1;image;contrast;96\a')
STRING_ITEM(`64 (25%)', `\e]6;1;image;contrast;64\a')
STRING_ITEM(`32 (13%)', `\e]6;1;image;contrast;32\a')
STRING_ITEM(`0 (0%)', `\e]6;1;image;contrast;0\a')
end
begin menu
title Gamma
STRING_ITEM(`512 (200%)', `\e]6;1;image;gamma;512\a')
STRING_ITEM(`480 (188%)', `\e]6;1;image;gamma;480\a')
STRING_ITEM(`448 (175%)', `\e]6;1;image;gamma;448\a')
STRING_ITEM(`416 (163%)', `\e]6;1;image;gamma;416\a')
STRING_ITEM(`384 (150%)', `\e]6;1;image;gamma;384\a')
STRING_ITEM(`352 (138%)', `\e]6;1;image;gamma;352\a')
STRING_ITEM(`320 (125%)', `\e]6;1;image;gamma;320\a')
STRING_ITEM(`288 (113%)', `\e]6;1;image;gamma;288\a')
STRING_ITEM(`256 (100%)', `\e]6;1;image;gamma;256\a')
STRING_ITEM(`224 (88%)', `\e]6;1;image;gamma;224\a')
STRING_ITEM(`192 (75%)', `\e]6;1;image;gamma;192\a')
STRING_ITEM(`160 (63%)', `\e]6;1;image;gamma;160\a')
STRING_ITEM(`128 (50%)', `\e]6;1;image;gamma;128\a')
STRING_ITEM(`96 (38%)', `\e]6;1;image;gamma;96\a')
STRING_ITEM(`64 (25%)', `\e]6;1;image;gamma;64\a')
STRING_ITEM(`32 (13%)', `\e]6;1;image;gamma;32\a')
STRING_ITEM(`0 (0%)', `\e]6;1;image;gamma;0\a')
end
begin menu
title Background
STRING_ITEM(`Toggle Transparency', `\e]6;0\a')
SUBMENU_ITEM(`Pixmap')
SUBMENU_ITEM(`Brightness')
SUBMENU_ITEM(`Contrast')
SUBMENU_ITEM(`Gamma')
end
dnl# chooser-only menus
ifdef(`CHOOSER', `
DO_PROTOCOL(ssh)
DO_PROTOCOL(rlogin)
DO_PROTOCOL(telnet)
DO_PROTOCOL(ftp)
')
dnl### BEGIN mutt menus
ifdef(`MUTT', `
begin menu
title Messages
ECHO_ITEM(`New Message', `m')
ECHO_ITEM(`Reply', `r')
ECHO_ITEM(`Group Reply', `g')
ECHO_ITEM(`Forward', `f')
ECHO_ITEM(`Bounce', `b')
ECHO_ITEM(`Move Message to...', `s')
ECHO_ITEM(`Copy Message to...', `C')
ECHO_ITEM(`Delete Message', `d')
ECHO_ITEM(`Display Message', `\r')
ECHO_ITEM(`Toggle Headers', `h')
ECHO_ITEM(`Show Attachments', `v')
-
ECHO_ITEM(`Exit mutt', `q')
ECHO_ITEM(`Exit without Saving', `x')
end
begin menu
title "Change Folder"
ECHO_ITEM(`Inbox', `c!\r')
ECHO_ITEM(`Sent Mail', `c<\r')
ECHO_ITEM(`Received Mail', `c>\r')
ECHO_ITEM(`Other...', `c')
end
begin menu
title Forward
ECHO_ITEM(`Forward by Message Date', `od')
ECHO_ITEM(`Forward by Sender', `of')
ECHO_ITEM(`Forward by Date Received', `or')
ECHO_ITEM(`Forward by Subject', `os')
ECHO_ITEM(`Forward by Thread', `ot')
ECHO_ITEM(`Forward by Size', `oz')
ECHO_ITEM(`Forward by Mailbox Order', `ou')
end
begin menu
title Reverse
ECHO_ITEM(`Reverse by Message Date', `Od')
ECHO_ITEM(`Reverse by Sender', `Of')
ECHO_ITEM(`Reverse by Date Received', `Or')
ECHO_ITEM(`Reverse by Subject', `Os')
ECHO_ITEM(`Reverse by Thread', `Ot')
ECHO_ITEM(`Reverse by Size', `Oz')
ECHO_ITEM(`Reverse by Mailbox Order', `Ou')
end
begin menu
title Sort
SUBMENU_ITEM(`Forward')
SUBMENU_ITEM(`Forward')
end
begin menu
title Mailbox
SUBMENU_ITEM(`Change to Folder')
SUBMENU_ITEM(`Sort')
-
ECHO_ITEM(`Resync', `$')
end
')
dnl### END mutt menus
dnl### BEGIN vim menus
ifdef(`VIM', `
begin menu
title Method
ECHO_ITEM(`Manual', `\e:set fdm=manual\r')
ECHO_ITEM(`Indent', `\e:set fdm=indent\r')
ECHO_ITEM(`Expression', `\e:set fdm=expr\r')
ECHO_ITEM(`Syntax', `\e:set fdm=syntax\r')
ECHO_ITEM(`Diff', `\e:set fdm=diff\r')
ECHO_ITEM(`Marker', `\e:set fdm=marker\r')
end
begin menu
title F_Width
ECHO_ITEM(`0', `\e:set fdc=0\r')
ECHO_ITEM(`1', `\e:set fdc=1\r')
ECHO_ITEM(`2', `\e:set fdc=2\r')
ECHO_ITEM(`3', `\e:set fdc=3\r')
ECHO_ITEM(`4', `\e:set fdc=4\r')
ECHO_ITEM(`5', `\e:set fdc=5\r')
ECHO_ITEM(`6', `\e:set fdc=6\r')
ECHO_ITEM(`7', `\e:set fdc=7\r')
ECHO_ITEM(`8', `\e:set fdc=8\r')
end
begin menu
title Folding
ECHO_ITEM(`Enable/Disable Folding', `\ezi')
ECHO_ITEM(`View Curosr Line', `\ezv')
ECHO_ITEM(`View Cursor Line only', `\ezMzx')
ECHO_ITEM(`Close more folds', `\ezm')
ECHO_ITEM(`Close all folds', `\ezM')
ECHO_ITEM(`Open more folds', `\ezr')
ECHO_ITEM(`Open all folds', `\ezR')
-
SUBMENU_ITEM(`Method', `Method')
ECHO_ITEM(`Create Fold', `\ezf')
ECHO_ITEM(`Delete Fold', `\ezd')
ECHO_ITEM(`Delete All Folds', `\ezD')
-
SUBMENU_ITEM(`Fold Column Width', `F_Width')
end
begin menu
title Shiftwidth
ECHO_ITEM(`2', `\e:set shiftwidth=2\r')
ECHO_ITEM(`3', `\e:set shiftwidth=3\r')
ECHO_ITEM(`4', `\e:set shiftwidth=4\r')
ECHO_ITEM(`5', `\e:set shiftwidth=5\r')
ECHO_ITEM(`6', `\e:set shiftwidth=6\r')
ECHO_ITEM(`7', `\e:set shiftwidth=7\r')
ECHO_ITEM(`8', `\e:set shiftwidth=8\r')
end
begin menu
title Settings
ECHO_ITEM(`Toggle Line Numbering', `\e:set nu!\r')
ECHO_ITEM(`Toggle Line Wrap', `\e:set wrap!\r')
ECHO_ITEM(`Toggle Search Pattern Hilight', `\e:set hls!\r')
ECHO_ITEM(`Toggle Expand Tab', `\e:set et!\r')
ECHO_ITEM(`Toggle auto-indent', `\e:set ai!\r')
-
STRING_ITEM(`Toggle Toolbar', `\e]6;14\a')
STRING_ITEM(`Toggle Scrollbar Left/Right', `\e]6;11\a')
STRING_ITEM(`Toggle Scrollbar Visible', `\e[?30t')
-
SUBMENU_ITEM(`Shiftwidth', `Shiftwidth')
ECHO_ITEM(`Text Width', `\e:set textwidth=')
end
begin menu
title File
ECHO_ITEM(`Open...', `[:e]', `\e:e')
ECHO_ITEM(`Split-Open...', `[:sp]', `\e:sp')
ECHO_ITEM(`New', `[:enew]', `\e:enew\r')
-
ECHO_ITEM(`Save', `[:w]', `\e:w\r')
ECHO_ITEM(`Save As...', `[:saveas]', `\e:saveas')
-
ECHO_ITEM(`Show Diff with...', `[:diffsplit]', `\e:diffsplit')
ECHO_ITEM(`Show Patched by...', `(broken)', `o broken in gvim too')
-
ECHO_ITEM(`Print', `[:print]', `\e:print')
-
ECHO_ITEM(`Save-Exit', `[:wq]', `\e:wq\r')
ECHO_ITEM(`Exit', `[:q]', `\e:q\r')
end
begin menu
title Edit
ECHO_ITEM(`Undo', `[:u]', `\e:u\r')
ECHO_ITEM(`Redo', `[:red]', `\e:red\r')
ECHO_ITEM(`Repeat', `[.]', `\e.')
-
ECHO_ITEM(`Cut', `[+x]', `+x')
ECHO_ITEM(`Copy', `[+y]', `+y')
ECHO_ITEM(`Paste', `[^Y]', `C-Y')
ECHO_ITEM(`Put Before', `\e[p\r')
ECHO_ITEM(`Put After', `\e]p\r')
ECHO_ITEM(`Select All', `[ggVG]', `ggVG')
-
ECHO_ITEM(`Find', `[/]', `\e/')
ECHO_ITEM(`Find and Replace', `[:%s/]', `\e:\%s/')
-
ECHO_ITEM(`Settings Window', `[:options]', `\e:options\r')
SUBMENU_ITEM(`Settings', `Settings')
end
begin menu
title Tools
ECHO_ITEM(`Jump to this tag[x]', `\eg^]')
ECHO_ITEM(`Jump back', `i\e^T')
ECHO_ITEM(`Build Tags File', `\e:!ctags -R .\r')
-
SUBMENU_ITEM(`Folding', `Folding')
-
ECHO_ITEM(`Make', `[:make]', `\e:make\r')
ECHO_ITEM(`List Errors', `[:cl]', `\e:cl\r')
ECHO_ITEM(`List Messages', `[:cl!]', `\ecl!\r')
ECHO_ITEM(`Next Error', `[:cn]', `\e:cn\r')
ECHO_ITEM(`Previous Error', `[:cp]', `\e:cp\r')
ECHO_ITEM(`Older List', `[:cold]', `\e:cold\r')
ECHO_ITEM(`Newer List', `[:cnew]', `\e:cnew\r')
ECHO_ITEM(`Error Window', `[:cwin]', `\e:cwin\r')
-
ECHO_ITEM(`Convert to HEX', `\e:let b:mod = &mod\r:silent \%!xxd\r:set ft=xxd\r:let &mod = b:mod\r')
ECHO_ITEM(`Convert Back', `\e:let b:mod = &mod\e:\%!xxd -r\r:doautocmd filetypedetect BufReadPost\r:let &mod = b:mod\r')
end
begin menu
title Syntax
ECHO_ITEM(`Set syntax only', `\e:let s:syntax_menu_synonly=1\r')
ECHO_ITEM(`Off', `[:syn off]', `\e:syn off\r')
ECHO_ITEM(`Manual', `[:syn manual]', `\e:syn manual\r')
ECHO_ITEM(`Automatic', `[:syn on]', `\e:syn on\r')
ECHO_ITEM(`on (this file)', `\e:set syn=ON\r')
ECHO_ITEM(`off (this file)', `\esyn clear\r')
-
ECHO_ITEM(`Color test', `\e:sp \$VIMRUNTIME/syntax/colortest.vim\r:source \%\r8Gz\r')
ECHO_ITEM(`Hilight test', `\e:so \$VIMRUNTIME/syntax/hitest.vim\r')
ECHO_ITEM(`Convert to HTML', `\e:so \$VIMRUNTIME/syntax/2html.vim\r')
end
begin menu
title Move_To
ECHO_ITEM(`Top', `\e^WK')
ECHO_ITEM(`Bottom', `\e^WK')
ECHO_ITEM(`Left', `\e^WH')
ECHO_ITEM(`Right', `\e^WL')
end
begin menu
title Window
ECHO_ITEM(`New', `\e^Wn')
ECHO_ITEM(`Split', `\e^Ws')
ECHO_ITEM(`Split to \#', `\e^W^^')
ECHO_ITEM(`Split Vertically', `\e^wv')
ECHO_ITEM(`Split File Explorer', `\e:20vsp .\r')
-
ECHO_ITEM(`Close', `\e^Wc')
ECHO_ITEM(`Close Other(s)', `^Wo')
-
SUBMENU_ITEM(`Move To', `Move_To')
ECHO_ITEM(`Rotate Up', `\e^WR')
ECHO_ITEM(`Rotate Down', `\e^Wr')
-
ECHO_ITEM(`Equal Size', `\e^W=')
ECHO_ITEM(`Max Height', `\e^W_')
ECHO_ITEM(`Min Height', `\e^W1_')
ECHO_ITEM(`Max Width', `\e^W\|')
ECHO_ITEM(`Min Width', `\e^W1\|')
end
begin menu
title Help
ECHO_ITEM(`Overview', `\e:h\r')
ECHO_ITEM(`How-to links', `\e:h how-to\r')
ECHO_ITEM(`Credits', `\e:h credits\r')
ECHO_ITEM(`Copying', `\e:h uganda\r')
ECHO_ITEM(`Find...', `\e:helpfind')
-
ECHO_ITEM(`Version', `\e:version\r')
ECHO_ITEM(`About', `\e:intro\r')
end
')
dnl### END vim menus
dnl### BEGIN Emacs menus
ifdef(`EMACS', `
begin menu
title Buffers
ECHO_ITEM(`List all', `C-x C-b', `C-xC-b')
ECHO_ITEM(`Change to other', `C-x o', `C-xo')
ECHO_ITEM(`Change to...', `C-x b', `C-xb')
end
begin menu
title Files
ECHO_ITEM(`Open File...', `C-x C-f', `C-xC-f')
ECHO_ITEM(`Open Directory...', `C-x d', `C-xd')
ECHO_ITEM(`Save Buffer', `C-x C-s', `C-xC-s')
ECHO_ITEM(`Save Buffer As...', `C-x C-w', `C-xC-w')
ECHO_ITEM(`Revert Buffer', `M-x revert-buffer\r', `M-xrevert-buffer\r')
ECHO_ITEM(`Insert File...', `C-x i', `C-xi')
ECHO_ITEM(`Kill Current Buffer', `M-x kill-this-buffer\r', `M-xkill-this-buffer\r')
-
ECHO_ITEM(`Make New Frame', `C-x 52', `C-x52')
ECHO_ITEM(`Open New Display...', `M-x make-frame-on-display', `M-xmake-frame-on-display')
ECHO_ITEM(`Delete Frame', `C-x 50', `C-x50')
ECHO_ITEM(`Split Window', `C-x 2', `C-x2')
ECHO_ITEM(`One Window', `C-x 1', `C-x1')
-
ECHO_ITEM(`Exit Emacs', `C-x C-c', `C-xC-c')
end
begin menu
title Edit
ECHO_ITEM(`Undo', `C-_', `C-_')
-
ECHO_ITEM(`Set Mark', `C-\40', `C-\40')
ECHO_ITEM(`Cut', `C-w', `C-w')
ECHO_ITEM(`Copy', `M-w', `M-w')
ECHO_ITEM(`Paste', `C-y', `C-y')
ECHO_ITEM(`Clear', `M-x delete-region', `M-xdelete-region')
-
ECHO_ITEM(`Cut Rectangle', `M-x kill-rectangle', `M-xkill-rectangle')
ECHO_ITEM(`Clear Rectangle', `M-x clear-rectangle', `M-xclear-rectangle')
end
begin menu
title Search
ECHO_ITEM(`Search...', `C-s', `C-s')
ECHO_ITEM(`Regexp Search...', `M-x isearch-forward-regexp', `M-xisearch-forward-regexp')
ECHO_ITEM(`Search Backward...', `C-r', `C-r')
ECHO_ITEM(`Regexp Search Backward...', `M-x isearch-backward-regexp', `M-xisearch-backward-regexp')
-
ECHO_ITEM(`Repeat Search', `M-x isearch-repeat-forward', `M-xisearch-repeat-forward')
ECHO_ITEM(`Repeat Regexp Search', `M-x isearch-repeat-forward', `M-xisearch-repeat-forward')
ECHO_ITEM(`Repeat Search Backward', `M-x isearch-repeat-backward', `M-xisearch-repeat-backward')
ECHO_ITEM(`Repeat Regexp Search Backward', `M-x isearch-repeat-backward', `M-xisearch-repeat-backward')
-
ECHO_ITEM(`Replace String...', `M-x replace-string', `M-xreplace-string')
ECHO_ITEM(`Replace Regexp...', `M-x replace-regexp', `M-xreplace-regexp')
ECHO_ITEM(`Query Replace String...', `M-x query-replace', `M-xquery-replace')
ECHO_ITEM(`Query Replace Regexp...', `M-x query-replace-regexp', `M-xquery-replace-regexp')
-
ECHO_ITEM(`Goto Line...', `M-x goto-line', `M-xgoto-line')
end
begin menu
title Help
ECHO_ITEM(`Customize', `M-x customize', `M-xcustomize')
ECHO_ITEM(`Emacs News', `M-x view-emacs-news', `M-xview-emacs-news')
ECHO_ITEM(`Emacs FAQ', `M-x view-emacs-FAQ', `M-xview-emacs-FAQ')
ECHO_ITEM(`Info Browser', `M-x info', `M-xinfo')
-
ECHO_ITEM(`Describe Mode', `M-x describe-mode', `M-xdescribe-mode')
ECHO_ITEM(`Command Apropos...', `M-x command-apropos', `M-xcommand-apropos')
ECHO_ITEM(`List Keybindings', `M-x describe-bindings', `M-xdescribe-bindings')
ECHO_ITEM(`Describe Key...', `M-x describe-key', `M-xdescribe-key')
ECHO_ITEM(`Describe Function...', `M-x describe-function', `M-xdescribe-function')
ECHO_ITEM(`Describe Variable...', `M-x describe-variable', `M-xdescribe-variable')
-
ECHO_ITEM(`Man...', `M-x man', `M-xman')
ECHO_ITEM(`Emacs Tutorial', `M-x help-with-tutorial', `M-xhelp-with-tutorial')
ECHO_ITEM(`Find Lisp Packages...', `M-x finder-by-keyword', `M-xfinder-by-keyword')
ECHO_ITEM(`Send Bug Report...', `M-x report-emacs-bug', `M-xreport-emacs-bug')
-
ECHO_ITEM(`Show Version', `M-x version', `M-xversion')
end
')
dnl### END Emacs menus
dnl### BEGIN xterm menus
ifdef(`XTERM', `
begin menu
title "Eterm Options"
SUBMENU_ITEM(`Scrollbar')
SUBMENU_ITEM(`Move to Desktop')
SUBMENU_ITEM(`Pixmap')
SUBMENU_ITEM(`Brightness')
SUBMENU_ITEM(`Contrast')
SUBMENU_ITEM(`Gamma')
-
STRING_ITEM(`Steal Focus', `Ctrl-Button1', `\e]5;\a')
SCRIPT_ITEM(`New Eterm Window', `spawn(Eterm)')
STRING_ITEM(`Version', `\e[8n')
STRING_ITEM(`Status', `\e[9n')
separator
SCRIPT_ITEM(`Save User Settings...', `save')
SCRIPT_ITEM(`Save Theme Settings...', `save(theme)')
SCRIPT_ITEM(`Exit', `exit')
end
m4exit(0)
')
dnl### END xterm menus
begin menu
title ifdef(`VIM', `Vim', `Eterm')
SUBMENU_ITEM(Font)
SUBMENU_ITEM(Background)
SUBMENU_ITEM(Terminal)
-
ifdef(`CHOOSER', `
SUBMENU_ITEM(`ssh')
SUBMENU_ITEM(`rlogin')
SUBMENU_ITEM(`telnet')
SUBMENU_ITEM(`ftp')
-
')
ifdef(`MUTT', `
SUBMENU_ITEM(`Messages')
SUBMENU_ITEM(`Mailbox')
-
')
ifdef(`VIM', `
SUBMENU_ITEM(`File', `File')
SUBMENU_ITEM(`Edit', `Edit')
SUBMENU_ITEM(`Tools', `Tools')
SUBMENU_ITEM(`Syntax', `Syntax')
SUBMENU_ITEM(`Window', `Window')
SUBMENU_ITEM(`Help', `Help')
-
')
SCRIPT_ITEM(`New Eterm Window', `spawn(Eterm)')
STRING_ITEM(`Version', `\e[8n')
STRING_ITEM(`Status', `\e[9n')
separator
SCRIPT_ITEM(`Save User Settings...', `save')
SCRIPT_ITEM(`Save Theme Settings...', `save(theme)')
SCRIPT_ITEM(`Exit', `exit')
end
begin menu
title "Eterm Operations"
SCRIPT_ITEM(`New Eterm Window', `spawn(Eterm)')
STRING_ITEM(`Version', `\e[8n')
STRING_ITEM(`Status', `\e[9n')
separator
SCRIPT_ITEM(`Save User Settings...', `save')
SCRIPT_ITEM(`Save Theme Settings...', `save(theme)')
SCRIPT_ITEM(`Exit', `exit')
end

View File

@ -45,6 +45,7 @@ static eterm_script_handler_t script_handlers[] =
{
{ "copy", script_handler_copy },
{ "die", script_handler_exit },
{ "echo", script_handler_echo },
{ "exec", script_handler_spawn },
{ "exit", script_handler_exit },
{ "kill", script_handler_kill },
@ -54,6 +55,7 @@ static eterm_script_handler_t script_handlers[] =
{ "scroll", script_handler_scroll },
{ "search", script_handler_search },
{ "spawn", script_handler_spawn },
{ "string", script_handler_string },
{ "nop", script_handler_nop }
};
@ -163,6 +165,22 @@ script_handler_copy(char **params)
selection_copy(sel);
}
/* echo(): Send a string to the pty
*
* Syntax: echo(<string>)
*
* <string> is the string of characters to send to the pty.
*/
void
script_handler_echo(char **params)
{
char **tmp;
for (tmp = params; tmp && *tmp; tmp++) {
tt_write(*tmp, strlen(*tmp));
}
}
/* exit(): Exit Eterm with an optional message or return code
*
* Syntax: exit([ { <msg> | <code> } ])
@ -360,6 +378,22 @@ script_handler_spawn(char **params)
}
}
/* string(): Send a string to Eterm's escape code handler
*
* Syntax: string(<string>)
*
* <string> is the string of characters to send to the handler.
*/
void
script_handler_string(char **params)
{
char **tmp;
for (tmp = params; tmp && *tmp; tmp++) {
cmd_write(*tmp, strlen(*tmp));
}
}
/* nop(): Do nothing
*
* Syntax: nop()

View File

@ -44,6 +44,7 @@ _XFUNCPROTOBEGIN
/* Handlers */
extern void script_handler_copy(char **);
extern void script_handler_echo(char **);
extern void script_handler_exit(char **);
extern void script_handler_kill(char **);
extern void script_handler_paste(char **);
@ -51,6 +52,7 @@ extern void script_handler_save(char **);
extern void script_handler_scroll(char **);
extern void script_handler_search(char **);
extern void script_handler_spawn(char **);
extern void script_handler_string(char **);
extern void script_handler_nop(char **);
/* Engine */

View File

@ -248,8 +248,8 @@ lookup_key(XEvent * ev)
len = XLookupString(&ev->xkey, (char *) kbuf, sizeof(kbuf), &keysym, NULL);
D_TTY(("XLookupString() gave us len %d, keysym 0x%04x, and buffer \"%s\"\n", len, keysym, safe_print_string(kbuf, len)));
/* If there is no string and it's a Latin2-4 character, replace it with the Latin1 character instead. */
if (!len && (keysym >= 0x0100) && (keysym < 0x0400)) {
/* If there is no string and it's a Latin2-7 character, replace it with the Latin1 character instead. */
if (!len && (keysym >= 0x0100) && (keysym < 0x0900)) {
len = 1;
kbuf[0] = (keysym & 0xff);
}

View File

@ -1,7 +1,6 @@
<Eterm-0.9.1>
begin menu
title Font
font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1
begin menuitem
text "Normal"
action string "\e]50;#"
@ -248,7 +247,7 @@ begin menu
action submenu "Scrollbar"
end
begin menuitem
text "Move to Desktop..."
text "Move to Desktop"
action submenu "Move to Desktop"
end
-
@ -262,11 +261,10 @@ begin menu
action string "\ec"
end
end
begin menu
title Tiled
begin menuitem
text "70's Marble"
text "70s Marble"
action string "\e]20;tile/70s_marble.jpg;0x0+0+0:tile\a"
end
begin menuitem
@ -730,54 +728,23 @@ begin menu
action submenu "Gamma"
end
end
begin menu
title "Eterm Operations"
begin menuitem
text "New Window..."
action script "spawn(Eterm)"
end
begin menuitem
text "Version"
action string "\e[8n"
end
begin menuitem
text "Status"
action string "\e[9n"
end
separator
begin menuitem
text "Save User Settings..."
action script "save()"
end
begin menuitem
text "Save Theme Settings..."
action script "save(theme)"
end
begin menuitem
text "Exit"
action script "exit"
end
end
# This is the menu that gets called by Ctrl-Button3
begin menu
title Eterm
begin menuitem
text "Font"
action submenu Font
action submenu "Font"
end
begin menuitem
text "Background"
action submenu Background
action submenu "Background"
end
begin menuitem
text "Terminal"
action submenu Terminal
action submenu "Terminal"
end
-
begin menuitem
text "New Window..."
text "New Eterm Window"
action script "spawn(Eterm)"
end
begin menuitem
@ -791,7 +758,35 @@ begin menu
separator
begin menuitem
text "Save User Settings..."
action script "save()"
action script "save"
end
begin menuitem
text "Save Theme Settings..."
action script "save(theme)"
end
begin menuitem
text "Exit"
action script "exit"
end
end
begin menu
title "Eterm Operations"
begin menuitem
text "New Eterm Window"
action script "spawn(Eterm)"
end
begin menuitem
text "Version"
action string "\e[8n"
end
begin menuitem
text "Status"
action string "\e[9n"
end
separator
begin menuitem
text "Save User Settings..."
action script "save"
end
begin menuitem
text "Save Theme Settings..."
@ -802,4 +797,3 @@ begin menu
action script "exit"
end
end

View File

@ -1,7 +1,6 @@
<Eterm-0.9.1>
begin menu
title Font
font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1
begin menuitem
text "Normal"
action string "\e]50;#"
@ -248,7 +247,7 @@ begin menu
action submenu "Scrollbar"
end
begin menuitem
text "Move to Desktop..."
text "Move to Desktop"
action submenu "Move to Desktop"
end
-
@ -262,11 +261,10 @@ begin menu
action string "\ec"
end
end
begin menu
title Tiled
begin menuitem
text "70's Marble"
text "70s Marble"
action string "\e]20;tile/70s_marble.jpg;0x0+0+0:tile\a"
end
begin menuitem
@ -730,54 +728,23 @@ begin menu
action submenu "Gamma"
end
end
begin menu
title "Eterm Operations"
begin menuitem
text "New Window..."
action script "spawn(Eterm)"
end
begin menuitem
text "Version"
action string "\e[8n"
end
begin menuitem
text "Status"
action string "\e[9n"
end
separator
begin menuitem
text "Save User Settings..."
action script "save()"
end
begin menuitem
text "Save Theme Settings..."
action script "save(theme)"
end
begin menuitem
text "Exit"
action script "exit"
end
end
# This is the menu that gets called by Ctrl-Button3
begin menu
title Eterm
begin menuitem
text "Font"
action submenu Font
action submenu "Font"
end
begin menuitem
text "Background"
action submenu Background
action submenu "Background"
end
begin menuitem
text "Terminal"
action submenu Terminal
action submenu "Terminal"
end
-
begin menuitem
text "New Window..."
text "New Eterm Window"
action script "spawn(Eterm)"
end
begin menuitem
@ -791,7 +758,35 @@ begin menu
separator
begin menuitem
text "Save User Settings..."
action script "save()"
action script "save"
end
begin menuitem
text "Save Theme Settings..."
action script "save(theme)"
end
begin menuitem
text "Exit"
action script "exit"
end
end
begin menu
title "Eterm Operations"
begin menuitem
text "New Eterm Window"
action script "spawn(Eterm)"
end
begin menuitem
text "Version"
action string "\e[8n"
end
begin menuitem
text "Status"
action string "\e[9n"
end
separator
begin menuitem
text "Save User Settings..."
action script "save"
end
begin menuitem
text "Save Theme Settings..."
@ -802,4 +797,3 @@ begin menu
action script "exit"
end
end

View File

@ -1,40 +1,12 @@
<Eterm-0.9.1>
# ^- This must be the first line of any Eterm config file!
# Format is: <Eterm-VERSION> where VERSION is replaced by
# the version it was written for,
# minus the "DR-" if any.
#
# This is a sample Eterm config file.
#
# As always, the authors guarantee absolutely nothing and take
# no responsibility for anything that might happen to you, your
# computer, your dog, your sex life, or anyone or anything else
# directly or indirectly through the use of, or inability to use,
# this program. Use at your OWN risk.
# Define the color properties
begin color
# Foreground, background, cursor, scrollbar, pointer colors
foreground #aaaaaa
background black
cursor #ffff00
cursor_text #880000
pointer white
# video attribute can either be "normal" or "reverse"
video normal
# Redefine the 16 basic colors, if you really feel the need
# First word is "color", next is the number (0-15, BD, or UL),
# then the values for red, green, and blue separated by spaces
# Numbers are base 10 unless preceded by "0x" (base 16) or '0'
# (base 8). Alternatively, you can use color names or #xxxxxx
# format.
# The colors below are taken from Rasterman's .Xdefaults file. They are intended to
# display ANSI art properly when combined with a good ANSI-art font (like vga or
# Rasterman's nexus font).
color 0 0 0 0
color 1 0xaa 0 0
color 2 0 0210 0
@ -53,26 +25,8 @@ begin color
color 15 #ffffff
color bd #ffffff
color ul #ffffff
# This ends the color section. Any text after the word "end" is
# assumed to be a comment and ignored.
end color
# The X11 attributes section. Should be fairly self-explanatory,
# but if not, consult the X man page.
begin attributes
# Geometry == widthxheight+x_offset+y_offset, offsets from top left
# if +, bottom right if -
# geometry 132x50+100+100
# title %appname()
# name %appname()
# iconname Eterm
# Set the fonts. These must be monospace fonts. The values shown are
# the Eterm defaults. The "bold" font is the font used if color BD has
# not been set and Eterm cannot map the foreground color to one of the
# high-intensity colors (8-15).
font default @DEF_FONT_IDX@
font 0 @FONT0@
font 1 @FONT1@
@ -81,12 +35,7 @@ begin attributes
font 4 @FONT4@
font 5 10x20
font 6 12x24
# font bold 7x14
end attributes
# The Multichar support options. Same goes for these fonts as for the normal
# ones. The "encoding" attribute can be either "eucj" or "sjis" or "euckr"
# or big5 or gb
begin multichar
font 0 @MFONT0@
font 1 @MFONT1@
@ -95,55 +44,21 @@ begin multichar
font 4 @MFONT4@
encoding @MULTICHAR_ENCODING@
end multichar
# Define the imageclasses.
begin imageclasses
# You must define this before setting any images that use it. This is the $PATH-style variable
# that determines where Eterm looks for image files.
path "./pix/:~/.Eterm/:~/.Eterm/themes/Eterm/pix:~/.Eterm/pix/:@PKGDATADIR@/pix/"
# If you want a different icon than the standard Eterm one, set this.
# icon Eterm.xpm
# This is the background animator. See the man page for the syntax.
# anim 3 foo1 foo2 foo3
# Here we define an image.
begin image
# The first thing you set when defining an image MUST be the type. No type, no dice. The type
# should be one of the following: background, up_arrow, down_arrow, left_arrow, right_arrow,
# trough, anchor, menu, or submenu
type background
# Next you should set the state. This is either normal, selected, or clicked.
state normal
# Here you set the file. You can also set the geometry string here if you follow the filename with
# an @ sign. That way, you can include the geometries in your pixmaps.list file.
file %random(`cat pixmaps.list`)
# The mode line. This defines the startup mode for the image, as well as what modes are allowed.
# Valid modes are "image" (to display the image file), "trans" (to be transparent), or "viewport"
# (for viewport mode). Syntax is "mode <startup_mode> allow <allowed_modes>".
mode auto allow image trans viewport auto
# Set the image border. This is a portion of the image which will be kept at its actual size when
# scaling. Use this for beveled images (buttons, etc.).
border 0 0 0 0
# Th-th-th-th-that's all folks.
end image
# The rest of the images.
begin image
type trough
mode auto allow image trans viewport auto
state normal
color black #666666
file bar_vertical_3.png
# Here is how you specify the geometry string separately. See the man page for its syntax.
geom 100
border 2 2 2 3
end image
@ -271,32 +186,15 @@ begin imageclasses
border 2 3 2 2
end image
end
%include "menus.cfg"
# This section *must* come after the menu definitions if you want
# menu actions to work. C'est la vie. :-)
#
# Syntax: bind [ { <modifiers> | anymod } ] { <key> | <keysym> | <button> } to { string | echo | menu } <parameter>
#
begin actions
bind ctrl button1 to string "\e]5;\a"
bind ctrl button2 to string "\e[?30t"
bind ctrl button3 to menu Eterm
bind ctrl shift button3 to string "\e]6;14\a"
end actions
# This section must also come after the menus if you want any buttons
# to launch menus. (If not, it can go anywhere.)
begin button_bar
# Specify a font. The default buttonbar font is the default terminal
# font as defined in the attributes section above.
font "-adobe-helvetica-medium-r-normal--10-100-75-75-p-56-iso8859-1"
# Add a button. The syntax is:
# button <text> [ icon <filename> ] action { string | echo | menu } <parameter>
#
button Eterm action menu "Eterm Operations"
button Font action menu Font
button Background action menu Background
@ -304,101 +202,27 @@ begin button_bar
rbutton icon help.png action script "spawn(Eterm -e man Eterm)"
rbutton icon exit.png action script "exit"
end button_bar
# The XIM support options.
# input_method: set the name of your favorate input method program
# preedit_type: OverTheSpot or OffTheSpot or Root
# begin xim
# input_method Ami
# preedit_type OverTheSpot
# end xim
# Boolean variables. The values can be "1", "on", or "true" for TRUE, or "0",
# "off", or "false" for FALSE.
begin toggles
# If true, Eterm will un-iconify itself when it receives a beep (ASCII 0x07)
map_alert on
# If true, Eterm will flash rather than sending a beep.
visual_bell off
# If true, Eterm will prepend '-' to the shell name when calling it.
login_shell true
# If true, Eterm will display the scroll bar
scrollbar on
# If true, Eterm will attempt to make an entry in the utmp file to record the
# login information. Eterm *must* run privileged to do this.
utmp_logging on
# If true, Eterm will select the whole line when you triple click on the
# window, instead of from that location/word to the end of the line.
select_line false
# If true, Eterm will handle the Meta (Alt) + keypress to set the 8th bit.
# If false, Eterm will handle the Meta + keypress as an escape prefix. (default)
# meta8 false
# If true, Eterm will start iconified.
iconic false
# If true, Eterm will jump to the bottom of the window when something is output
# to the terminal.
home_on_output 1
# If true, Eterm will jump to the bottom of the window when a key is pressed.
home_on_input 1
# If true, Eterm will put the scrollbar on the right of the window (default is left).
scrollbar_right true
# If true, the scrollbar will have no trough.
scrollbar_floating false
# If true, Eterm will run with no window borders.
borderless false
end toggles
begin keyboard
# Use the supplied keysym to reduce/enlarge the font
smallfont_key LessThan
bigfont_key GreaterThan
# You can also associate a given keysym (0xff00 - 0xffff) with a string
# keysym 0xffff "\r\n\e\007\t"
# Greek keyboard mode. First the word "greek", then its boolean
# state, then its mode (either "iso" or "ibm").
# greek off iso
end keyboard
begin misc
# The command to which to pipe print requests (printscreen)
# print_pipe "lpr"
# The number of lines in the scrollback buffer. More lines, more memory needed.
save_lines 1024
# The characters to use as word delimiters for double-click selection
cut_chars "\t\\\`\\\"\'&() *,;<=>?@[]{|}"
# Defines the width of the border between the terminal window and the client window.
# (Default is 5).
border_width 5
# Defines the number of pixels to add between lines (default is 0).
# line_space 2
# Value to use for $TERM
term_name Eterm
# Program to exec (intended for use with themes)
# exec foo
end misc

View File

@ -1,36 +1,35 @@
<Eterm-0.9.1>
%preproc m4
define(STRING_ITEM, `begin menuitem
text "$1"
action string "$2"
end')
define(ECHO_ITEM, `begin menuitem
text "$1"
action echo "$2"
end')
define(SUBMENU_ITEM, `begin menuitem
text "$1"
action submenu "$1"
end')
define(SCRIPT_ITEM, `begin menuitem
text "$1"
action script "$2"
end')
define(FONT_ITEM, `begin menuitem
text "$1"
action string "\e]50;#$2"
end')
begin menu
title Font
font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1
STRING_ITEM(`Normal', `\e]50;#')
STRING_ITEM(`Larger', `\e]50;#+')
STRING_ITEM(`Smaller', `\e]50;#-')
begin menuitem
text "Normal"
action string "\e]50;#"
end
begin menuitem
text "Larger"
action string "\e]50;#+"
end
begin menuitem
text "Smaller"
action string "\e]50;#-"
end
-
STRING_ITEM(`Font 1', `\e]50;#1')
STRING_ITEM(`Font 2', `\e]50;#2')
STRING_ITEM(`Font 3', `\e]50;#3')
STRING_ITEM(`Font 4', `\e]50;#4')
begin menuitem
text "Font 1"
action string "\e]50;#1"
end
begin menuitem
text "Font 2"
action string "\e]50;#2"
end
begin menuitem
text "Font 3"
action string "\e]50;#3"
end
begin menuitem
text "Font 4"
action string "\e]50;#4"
end
end
begin menu
title Toggles
@ -248,7 +247,7 @@ begin menu
action submenu "Scrollbar"
end
begin menuitem
text "Move to Desktop..."
text "Move to Desktop"
action submenu "Move to Desktop"
end
-
@ -262,310 +261,174 @@ begin menu
action string "\ec"
end
end
begin menu
title Transparency
begin menuitem
text "Force Update"
action string "\e]6;3\a"
end
begin menuitem
text "Toggle Desktop Watching"
action string "\e]6;4\a"
end
begin menuitem
text "Toggle Transparency"
action string "\e]6;0\a"
end
end
begin menu
title Tiled
begin menuitem
text "70's Marble"
action string "\e]20;70s_marble.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "7m"
action string "\e]20;7m.jpg;0x0+0+0:tile\a"
text "70s Marble"
action string "\e]20;tile/70s_marble.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Atoms"
action string "\e]20;atoms.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Backwave"
action string "\e]20;backwave.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/atoms.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Black Stone"
action string "\e]20;blackstone.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/blackstone.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Blue Ether"
action string "\e]20;ether_blue.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/ether_blue.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Blue Marble"
action string "\e]20;blue_marble.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/blue_marble.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Blue Maze"
action string "\e]20;blue_maze.jpg;0x0+0+0:tile\a"
text "Bubbly 1"
action string "\e]20;tile/bubbly1.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Blue Monday"
action string "\e]20;021.jpg;0x0+0+0:tile\a"
text "Bubbly 2"
action string "\e]20;tile/bubbly2.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Blue Puzzle"
action string "\e]20;026.png;0x0+0+0:tile\a"
text "Bubbly 3"
action string "\e]20;tile/bubbly3.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Blue Rock"
action string "\e]20;blue_rock.jpg;0x0+0+0:tile\a"
text "Bubbly 4"
action string "\e]20;tile/bubbly4.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Circuit"
action string "\e]20;circuit.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/circuit.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Confusion"
action string "\e]20;tile/confusion.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Cyber Playground"
action string "\e]20;cyber_bg.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Dark Marble"
action string "\e]20;dark_marble.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/cyber_bg.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Dimples"
action string "\e]20;014.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/014.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Dirt"
action string "\e]20;dirt.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/dirt.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Egg"
action string "\e]20;tile/egg.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Ether"
action string "\e]20;ether.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/ether.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Giger 1"
action string "\e]20;giger1.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/giger1.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Giger 2"
action string "\e]20;giger2.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/giger2.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Gray Matter"
action string "\e]20;22.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/22.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Gray Waves"
action string "\e]20;59.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/59.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Green Ether"
action string "\e]20;ether_green.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/ether_green.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Lava"
action string "\e]20;004.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Mudslide"
action string "\e]20;35.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/004.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Nebula"
action string "\e]20;nebula.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/nebula.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "On Stage"
action string "\e]20;lightb1.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Purple Clouds"
action string "\e]20;7.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Purple Glass"
action string "\e]20;purpgls.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Purple Rain"
action string "\e]20;024.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/lightb1.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Purple Stuff"
action string "\e]20;purple_stuff.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Rainstorm"
action string "\e]20;15.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Red Stucco"
action string "\e]20;red_stucco.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/purple_stuff.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Red Whisper"
action string "\e]20;40.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/40.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Shale"
action string "\e]20;shale.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/shale.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Soft Marble"
action string "\e]20;soft.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/soft.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Space"
action string "\e]20;space.png;0x0+0+0:tile\a"
action string "\e]20;tile/space.png;0x0+0+0:tile\a"
end
begin menuitem
text "Starry Night"
action string "\e]20;starry.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/starry.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Steel"
action string "\e]20;tile/steel1.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Twisted"
action string "\e]20;tile/twisted.jpg;0x0+0+0:tile\a"
end
begin menuitem
text "Whirlpool"
action string "\e]20;015.jpg;0x0+0+0:tile\a"
action string "\e]20;tile/015.jpg;0x0+0+0:tile\a"
end
end
begin menu
title Scaled
begin menuitem
text "After the Storm"
action string "\e]20;after_the_storm.jpg;100x100+50+50\a"
text "Day/Night"
action string "\e]20;scale/day-night.jpg;100x100+50+50\a"
end
begin menuitem
text "Alien Spheres"
action string "\e]20;alien_spheres.jpg;100x100+50+50\a"
end
begin menuitem
text "Ascension"
action string "\e]20;ascension.jpg;100x100+50+50\a"
end
begin menuitem
text "Atlantis"
action string "\e]20;atlantis.jpg;100x100+50+50\a"
end
begin menuitem
text "Bladerunner"
action string "\e]20;Bladerunner-bg.jpg;100x100+50+50\a"
end
begin menuitem
text "Canyon"
action string "\e]20;Canyon.jpg;100x100+50+50\a"
end
begin menuitem
text "Cave Fire"
action string "\e]20;Cavefire-bg.jpg;100x100+50+50\a"
end
begin menuitem
text "Citidel"
action string "\e]20;citidel.jpg;100x100+50+50\a"
end
begin menuitem
text "Crater Lake"
action string "\e]20;crater_lake.jpg;100x100+50+50\a"
end
begin menuitem
text "Cronus"
action string "\e]20;cronus.jpg;100x100+50+50\a"
end
begin menuitem
text "Daughter"
action string "\e]20;Daughter.jpg;100x100+50+50\a"
end
begin menuitem
text "Dragon"
action string "\e]20;Dragon.jpg;100x100+50+50\a"
end
begin menuitem
text "DVXVB"
action string "\e]20;dvxvb.jpg;100x100+50+50\a"
end
begin menuitem
text "Evocation"
action string "\e]20;Evocation.jpg;100x100+50+50\a"
end
begin menuitem
text "The Fourth Day"
action string "\e]20;fourthday.jpg;100x100+50+50\a"
end
begin menuitem
text "Gaia"
action string "\e]20;gaia.jpg;100x100+50+50\a"
end
begin menuitem
text "Galleon"
action string "\e]20;galleon.jpg;100x100+50+50\a"
end
begin menuitem
text "Gorgon"
action string "\e]20;gorgon.jpg;100x100+50+50\a"
end
begin menuitem
text "Ice Moon"
action string "\e]20;icemoon.jpg;100x100+50+50\a"
end
begin menuitem
text "Lake of Fire"
action string "\e]20;lake_of_fire.jpg;100x100+50+50\a"
end
begin menuitem
text "Lighthouse"
action string "\e]20;lighthouse.jpg;100x100+50+50\a"
end
begin menuitem
text "Nebula"
action string "\e]20;nebula.jpg;100x100+50+50\a"
text "Good Morning"
action string "\e]20;scale/good-morning.jpg;100x100+50+50\a"
end
begin menuitem
text "Neopolis"
action string "\e]20;Neopolis-horizon.jpg;100x100+50+50\a"
end
begin menuitem
text "Night of the Dragon"
action string "\e]20;night_of_the_dragon.jpg;100x100+50+50\a"
end
begin menuitem
text "Planet A"
action string "\e]20;planeta.jpg;100x100+50+50\a"
action string "\e]20;scale/Neopolis-horizon.jpg;100x100+50+50\a"
end
begin menuitem
text "Pond"
action string "\e]20;pond.jpg;100x100+50+50\a"
end
begin menuitem
text "Poseidon"
action string "\e]20;poseidon.jpg;100x100+50+50\a"
action string "\e]20;scale/pond.jpg;100x100+50+50\a"
end
begin menuitem
text "Ripple"
action string "\e]20;ripple.jpg;100x100+50+50\a"
action string "\e]20;scale/ripple.jpg;100x100+50+50\a"
end
begin menuitem
text "Roche Limit"
action string "\e]20;roche_limit.jpg;100x100+50+50\a"
end
begin menuitem
text "Silence"
action string "\e]20;silence.jpg;100x100+50+50\a"
end
begin menuitem
text "The Taken Field"
action string "\e]20;the_taken_field.jpg;100x100+50+50\a"
end
begin menuitem
text "Urmane"
action string "\e]20;urmane3.jpg;100x100+50+50\a"
text "Sunset"
action string "\e]20;scale/sunset.jpg;100x100+50+50\a"
end
begin menuitem
text "Wasteland"
action string "\e]20;wasteland.jpg;100x100+50+50\a"
action string "\e]20;scale/wasteland.jpg;100x100+50+50\a"
end
begin menuitem
text "Winter Tree"
action string "\e]20;scale/wintertree.jpg;100x100+50+50\a"
end
end
begin menu
@ -585,11 +448,11 @@ begin menu
end
begin menuitem
text "Scaled"
action string "\e]20;;:scale"
action string "\e]20;;100x100"
end
begin menuitem
text "Proportional Scale"
action string "\e]20;;:propscale"
action string "\e]20;;100x100:propscale"
end
-
begin menuitem
@ -845,8 +708,8 @@ end
begin menu
title Background
begin menuitem
text "Transparency"
action submenu "Transparency"
text "Toggle Transparency"
action string "\e]6;0\a"
end
begin menuitem
text "Pixmap"
@ -865,129 +728,269 @@ begin menu
action submenu "Gamma"
end
end
# HOST_ITEM(protocol, hostname [, ip])
define(HOST_ITEM, `begin menuitem
text "$2"
action string "\e]0;$2 $1\a\e]7;echo:$1 '`ifelse($3, `', `$2', `$3')'`\r\a"
end')
# ALIEN_MENU(protocol)
define(ALIEN_MENU, `begin menu
title "Alien Cluster $1"
HOST_ITEM(`$1', `apone')
HOST_ITEM(`$1', `ash')
HOST_ITEM(`$1', `bishop')
HOST_ITEM(`$1', `burke')
HOST_ITEM(`$1', `dallas')
HOST_ITEM(`$1', `drake')
HOST_ITEM(`$1', `ripley')
HOST_ITEM(`$1', `view1-mp')
HOST_ITEM(`$1', `vob1-mp')
HOST_ITEM(`$1', `vob2-mp')
end')
define(IT_MENU, `begin menu
title "IT Hosts $1"
HOST_ITEM(`$1', `allen')
HOST_ITEM(`$1', `babylon4')
HOST_ITEM(`$1', `icarus')
HOST_ITEM(`$1', `orwell')
HOST_ITEM(`$1', `phantom')
HOST_ITEM(`$1', `starfury')
HOST_ITEM(`$1', `viper')
HOST_ITEM(`$1', `whitestar')
end')
define(COM_MENU, `begin menu
title "3Com $1"
HOST_ITEM(`$1', `bkup-u2')
HOST_ITEM(`$1', `bkup-us')
HOST_ITEM(`$1', `corsys1')
HOST_ITEM(`$1', `dmc-mp')
HOST_ITEM(`$1', `dw-dev')
HOST_ITEM(`$1', `dw1-uw')
HOST_ITEM(`$1', `dw2-mp')
HOST_ITEM(`$1', `firegate')
HOST_ITEM(`$1', `hicks')
HOST_ITEM(`$1', `hp-carp')
HOST_ITEM(`$1', `hp-sales')
HOST_ITEM(`$1', `hp9000')
HOST_ITEM(`$1', `hprpc1', `149.112.166.42')
HOST_ITEM(`$1', `hprpc2', `149.112.166.43')
HOST_ITEM(`$1', `intergate')
HOST_ITEM(`$1', `lnnsdintra1')
HOST_ITEM(`$1', `mailgate')
HOST_ITEM(`$1', `mwdev1')
HOST_ITEM(`$1', `mwdev2')
HOST_ITEM(`$1', `mwdev3')
HOST_ITEM(`$1', `mwdocs1')
HOST_ITEM(`$1', `mwprod1')
HOST_ITEM(`$1', `mwprod2')
HOST_ITEM(`$1', `mwprod3')
HOST_ITEM(`$1', `netscop')
HOST_ITEM(`$1', `notes-mp')
HOST_ITEM(`$1', `oraweb1')
HOST_ITEM(`$1', `pcdprod')
HOST_ITEM(`$1', `prod-mp')
HOST_ITEM(`$1', `rdpvcs')
HOST_ITEM(`$1', `rdsgi1-mp')
HOST_ITEM(`$1', `recov-mp')
HOST_ITEM(`$1', `ren')
HOST_ITEM(`$1', `scop-us')
HOST_ITEM(`$1', `ship-eg')
HOST_ITEM(`$1', `ship-mp')
HOST_ITEM(`$1', `stimpy')
HOST_ITEM(`$1', `test-mp')
HOST_ITEM(`$1', `townesquare')
HOST_ITEM(`$1', `ussk1rdu1')
HOST_ITEM(`$1', `uw-inet')
HOST_ITEM(`$1', `webmw')
end')
define(EXT_MENU, `begin menu
title "External $1"
HOST_ITEM(`$1', `foobar.com')
end')
define(PROTOCOL_MENU, `begin menu
title "$1"
begin menu
title "Internal Hosts ssh"
begin menuitem
text "Alien Cluster"
action submenu "Alien Cluster $1"
text "alpha"
action script "string(\e]0\\;alpha\\ ssh\a); echo(ssh\\ alpha\r);"
end
begin menuitem
text "IT Hosts"
action submenu "IT Hosts $1"
text "beta"
action script "string(\e]0\\;beta\\ ssh\a); echo(ssh\\ beta\r);"
end
begin menuitem
text "3Com"
action submenu "3Com $1"
text "gamma"
action script "string(\e]0\\;gamma\\ ssh\a); echo(ssh\\ 10.1.1.10\r);"
end
begin menuitem
text "External"
action submenu "External $1"
text "delta"
action script "string(\e]0\\;delta\\ ssh\a); echo(ssh\\ delta\r);"
end
end')
define(DO_PROTOCOL, `ALIEN_MENU($1)
IT_MENU($1)
COM_MENU($1)
EXT_MENU($1)
PROTOCOL_MENU($1)')
DO_PROTOCOL(ssh)
DO_PROTOCOL(rlogin)
DO_PROTOCOL(telnet)
DO_PROTOCOL(ftp)
# This is the menu that gets called by Ctrl-Button3
end
begin menu
title "External Hosts ssh"
begin menuitem
text "carbon.foo.com"
action script "string(\e]0\\;carbon.foo.com\\ ssh\a); echo(ssh\\ carbon.foo.com\r);"
end
begin menuitem
text "i.am.danish.so.eatme.net"
action script "string(\e]0\\;i.am.danish.so.eatme.net\\ ssh\a); echo(ssh\\ i.am.danish.so.eatme.net\r);"
end
begin menuitem
text "oxygen.bar.org"
action script "string(\e]0\\;oxygen.bar.org\\ ssh\a); echo(ssh\\ oxygen.bar.org\r);"
end
end
begin menu
title "ssh"
begin menuitem
text "Internal Hosts"
action submenu "Internal Hosts ssh"
end
begin menuitem
text "External Hosts"
action submenu "External Hosts ssh"
end
end
begin menu
title "Internal Hosts rlogin"
begin menuitem
text "alpha"
action script "string(\e]0\\;alpha\\ rlogin\a); echo(rlogin\\ alpha\r);"
end
begin menuitem
text "beta"
action script "string(\e]0\\;beta\\ rlogin\a); echo(rlogin\\ beta\r);"
end
begin menuitem
text "gamma"
action script "string(\e]0\\;gamma\\ rlogin\a); echo(rlogin\\ 10.1.1.10\r);"
end
begin menuitem
text "delta"
action script "string(\e]0\\;delta\\ rlogin\a); echo(rlogin\\ delta\r);"
end
end
begin menu
title "External Hosts rlogin"
begin menuitem
text "carbon.foo.com"
action script "string(\e]0\\;carbon.foo.com\\ rlogin\a); echo(rlogin\\ carbon.foo.com\r);"
end
begin menuitem
text "i.am.danish.so.eatme.net"
action script "string(\e]0\\;i.am.danish.so.eatme.net\\ rlogin\a); echo(rlogin\\ i.am.danish.so.eatme.net\r);"
end
begin menuitem
text "oxygen.bar.org"
action script "string(\e]0\\;oxygen.bar.org\\ rlogin\a); echo(rlogin\\ oxygen.bar.org\r);"
end
end
begin menu
title "rlogin"
begin menuitem
text "Internal Hosts"
action submenu "Internal Hosts rlogin"
end
begin menuitem
text "External Hosts"
action submenu "External Hosts rlogin"
end
end
begin menu
title "Internal Hosts telnet"
begin menuitem
text "alpha"
action script "string(\e]0\\;alpha\\ telnet\a); echo(telnet\\ alpha\r);"
end
begin menuitem
text "beta"
action script "string(\e]0\\;beta\\ telnet\a); echo(telnet\\ beta\r);"
end
begin menuitem
text "gamma"
action script "string(\e]0\\;gamma\\ telnet\a); echo(telnet\\ 10.1.1.10\r);"
end
begin menuitem
text "delta"
action script "string(\e]0\\;delta\\ telnet\a); echo(telnet\\ delta\r);"
end
end
begin menu
title "External Hosts telnet"
begin menuitem
text "carbon.foo.com"
action script "string(\e]0\\;carbon.foo.com\\ telnet\a); echo(telnet\\ carbon.foo.com\r);"
end
begin menuitem
text "i.am.danish.so.eatme.net"
action script "string(\e]0\\;i.am.danish.so.eatme.net\\ telnet\a); echo(telnet\\ i.am.danish.so.eatme.net\r);"
end
begin menuitem
text "oxygen.bar.org"
action script "string(\e]0\\;oxygen.bar.org\\ telnet\a); echo(telnet\\ oxygen.bar.org\r);"
end
end
begin menu
title "telnet"
begin menuitem
text "Internal Hosts"
action submenu "Internal Hosts telnet"
end
begin menuitem
text "External Hosts"
action submenu "External Hosts telnet"
end
end
begin menu
title "Internal Hosts ftp"
begin menuitem
text "alpha"
action script "string(\e]0\\;alpha\\ ftp\a); echo(ftp\\ alpha\r);"
end
begin menuitem
text "beta"
action script "string(\e]0\\;beta\\ ftp\a); echo(ftp\\ beta\r);"
end
begin menuitem
text "gamma"
action script "string(\e]0\\;gamma\\ ftp\a); echo(ftp\\ 10.1.1.10\r);"
end
begin menuitem
text "delta"
action script "string(\e]0\\;delta\\ ftp\a); echo(ftp\\ delta\r);"
end
end
begin menu
title "External Hosts ftp"
begin menuitem
text "carbon.foo.com"
action script "string(\e]0\\;carbon.foo.com\\ ftp\a); echo(ftp\\ carbon.foo.com\r);"
end
begin menuitem
text "i.am.danish.so.eatme.net"
action script "string(\e]0\\;i.am.danish.so.eatme.net\\ ftp\a); echo(ftp\\ i.am.danish.so.eatme.net\r);"
end
begin menuitem
text "oxygen.bar.org"
action script "string(\e]0\\;oxygen.bar.org\\ ftp\a); echo(ftp\\ oxygen.bar.org\r);"
end
end
begin menu
title "ftp"
begin menuitem
text "Internal Hosts"
action submenu "Internal Hosts ftp"
end
begin menuitem
text "External Hosts"
action submenu "External Hosts ftp"
end
end
begin menu
title Eterm
SUBMENU_ITEM(Font)
SUBMENU_ITEM(Background)
SUBMENU_ITEM(Terminal)
begin menuitem
text "Font"
action submenu "Font"
end
begin menuitem
text "Background"
action submenu "Background"
end
begin menuitem
text "Terminal"
action submenu "Terminal"
end
-
SCRIPT_ITEM(`New Eterm Window', `spawn(Eterm)')
STRING_ITEM(`Version', `\e[8n')
STRING_ITEM(`Status', `\e[9n')
begin menuitem
text "ssh"
action submenu "ssh"
end
begin menuitem
text "rlogin"
action submenu "rlogin"
end
begin menuitem
text "telnet"
action submenu "telnet"
end
begin menuitem
text "ftp"
action submenu "ftp"
end
-
begin menuitem
text "New Eterm Window"
action script "spawn(Eterm)"
end
begin menuitem
text "Version"
action string "\e[8n"
end
begin menuitem
text "Status"
action string "\e[9n"
end
separator
SCRIPT_ITEM(`Save User Settings...', `save')
SCRIPT_ITEM(`Save Theme Settings...', `save(theme)')
SCRIPT_ITEM(`Exit', `exit')
begin menuitem
text "Save User Settings..."
action script "save"
end
begin menuitem
text "Save Theme Settings..."
action script "save(theme)"
end
begin menuitem
text "Exit"
action script "exit"
end
end
begin menu
title "Eterm Operations"
begin menuitem
text "New Eterm Window"
action script "spawn(Eterm)"
end
begin menuitem
text "Version"
action string "\e[8n"
end
begin menuitem
text "Status"
action string "\e[9n"
end
separator
begin menuitem
text "Save User Settings..."
action script "save"
end
begin menuitem
text "Save Theme Settings..."
action script "save(theme)"
end
begin menuitem
text "Exit"
action script "exit"
end
end

View File

@ -1,40 +1,12 @@
<Eterm-0.9.1>
# ^- This must be the first line of any Eterm config file!
# Format is: <Eterm-VERSION> where VERSION is replaced by
# the version it was written for,
# minus the "DR-" if any.
#
# This is a sample Eterm config file.
#
# As always, the authors guarantee absolutely nothing and take
# no responsibility for anything that might happen to you, your
# computer, your dog, your sex life, or anyone or anything else
# directly or indirectly through the use of, or inability to use,
# this program. Use at your OWN risk.
# Define the color properties
begin color
# Foreground, background, cursor, scrollbar, pointer colors
foreground #aaaaaa
background black
cursor #ffff00
cursor_text #880000
pointer white
# video attribute can either be "normal" or "reverse"
video normal
# Redefine the 16 basic colors, if you really feel the need
# First word is "color", next is the number (0-15, BD, or UL),
# then the values for red, green, and blue separated by spaces
# Numbers are base 10 unless preceded by "0x" (base 16) or '0'
# (base 8). Alternatively, you can use color names or #xxxxxx
# format.
# The colors below are taken from Rasterman's .Xdefaults file. They are intended to
# display ANSI art properly when combined with a good ANSI-art font (like vga or
# Rasterman's nexus font).
color 0 0 0 0
color 1 0xaa 0 0
color 2 0 0210 0
@ -53,26 +25,9 @@ begin color
color 15 #ffffff
color bd #ffffff
color ul #ffffff
# This ends the color section. Any text after the word "end" is
# assumed to be a comment and ignored.
end color
# The X11 attributes section. Should be fairly self-explanatory,
# but if not, consult the X man page.
begin attributes
# Geometry == widthxheight+x_offset+y_offset, offsets from top left
# if +, bottom right if -
# geometry 132x50+100+100
# title "%appname() -- Host Chooser"
name "%appname() -- Host Chooser"
# iconname Eterm
# Set the fonts. These must be monospace fonts. The values shown are
# the Eterm defaults. The "bold" font is the font used if color BD has
# not been set and Eterm cannot map the foreground color to one of the
# high-intensity colors (8-15).
font default @DEF_FONT_IDX@
font 0 @FONT0@
font 1 @FONT1@
@ -81,12 +36,7 @@ begin attributes
font 4 @FONT4@
font 5 10x20
font 6 12x24
# font bold 7x14
end attributes
# The Multichar support options. Same goes for these fonts as for the normal
# ones. The "encoding" attribute can be either "eucj" or "sjis" or "euckr"
# or big5 or gb
begin multichar
font 0 @MFONT0@
font 1 @MFONT1@
@ -95,55 +45,21 @@ begin multichar
font 4 @MFONT4@
encoding @MULTICHAR_ENCODING@
end multichar
# Define the imageclasses.
begin imageclasses
# You must define this before setting any images that use it. This is the $PATH-style variable
# that determines where Eterm looks for image files.
path "./pix/:~/.Eterm/:~/.Eterm/themes/Eterm/pix:~/.Eterm/pix/:@PKGDATADIR@/pix/"
# If you want a different icon than the standard Eterm one, set this.
# icon Eterm.xpm
# This is the background animator. See the man page for the syntax.
# anim 3 foo1 foo2 foo3
# Here we define an image.
begin image
# The first thing you set when defining an image MUST be the type. No type, no dice. The type
# should be one of the following: background, up_arrow, down_arrow, left_arrow, right_arrow,
# trough, anchor, menu, or submenu
type background
# Next you should set the state. This is either normal, selected, or clicked.
state normal
# Here you set the file. You can also set the geometry string here if you follow the filename with
# an @ sign. That way, you can include the geometries in your pixmaps.list file.
file %random(`cat pixmaps.list`)
# The mode line. This defines the startup mode for the image, as well as what modes are allowed.
# Valid modes are "image" (to display the image file), "trans" (to be transparent), or "viewport"
# (for viewport mode). Syntax is "mode <startup_mode> allow <allowed_modes>".
mode image allow image trans viewport auto
# Set the image border. This is a portion of the image which will be kept at its actual size when
# scaling. Use this for beveled images (buttons, etc.).
border 0 0 0 0
# Th-th-th-th-that's all folks.
end image
# The rest of the images.
begin image
type trough
mode image allow image trans viewport auto
state normal
color black #666666
file bar_vertical_3.png
# Here is how you specify the geometry string separately. See the man page for its syntax.
geom 100
border 2 2 2 3
end image
@ -271,33 +187,16 @@ begin imageclasses
border 2 3 2 2
end image
end
%include "menus.cfg"
# This section *must* come after the menu definitions if you want
# menu actions to work. C'est la vie. :-)
#
# Syntax: bind [ { <modifiers> | anymod } ] { <key> | <keysym> | <button> } to { string | echo | menu } <parameter>
#
begin actions
bind ctrl button1 to string "\e]5;\a"
bind ctrl button2 to string "\e[?30t"
bind ctrl button3 to menu Eterm
bind ctrl shift button3 to string "\e]6;14\a"
end actions
# This section must also come after the menus if you want any buttons
# to launch menus. (If not, it can go anywhere.)
begin button_bar
# Specify a font. The default buttonbar font is the default terminal
# font as defined in the attributes section above.
font "-adobe-helvetica-medium-r-normal--10-100-75-75-p-56-iso8859-1"
# Add a button. The syntax is:
# button <text> [ icon <filename> ] action { string | echo | menu } <parameter>
#
button Eterm action menu Eterm
button Eterm action menu "Eterm Operations"
button ssh action menu ssh
button rlogin action menu rlogin
button telnet action menu telnet
@ -305,96 +204,26 @@ begin button_bar
rbutton icon help.png action script "spawn(Eterm -e man Eterm)"
rbutton icon exit.png action script "exit"
end button_bar
# The XIM support options.
# input_method: set the name of your favorate input method program
# preedit_type: OverTheSpot or OffTheSpot or Root
# begin xim
# input_method Ami
# preedit_type OverTheSpot
# end xim
# Boolean variables. The values can be "1", "on", or "true" for TRUE, or "0",
# "off", or "false" for FALSE.
begin toggles
# If true, Eterm will un-iconify itself when it receives a beep (ASCII 0x07)
map_alert on
# If true, Eterm will flash rather than sending a beep.
visual_bell off
# If true, Eterm will prepend '-' to the shell name when calling it.
login_shell true
# If true, Eterm will display the scroll bar
scrollbar on
# If true, Eterm will attempt to make an entry in the utmp file to record the
# login information. Eterm *must* run privileged to do this.
utmp_logging on
# If true, Eterm will handle the Meta (Alt) + keypress to set the 8th bit.
# If false, Eterm will handle the Meta + keypress as an escape prefix. (default)
# meta8 false
# If true, Eterm will start iconified.
iconic false
# If true, Eterm will jump to the bottom of the window when something is output
# to the terminal.
home_on_output 1
# If true, Eterm will jump to the bottom of the window when a key is pressed.
home_on_input 1
# If true, Eterm will put the scrollbar on the right of the window (default is left).
scrollbar_right true
# If true, the scrollbar will have no trough.
scrollbar_floating false
# If true, Eterm will run with no window borders.
borderless false
end toggles
begin keyboard
# Use the supplied keysym to reduce/enlarge the font
smallfont_key LessThan
bigfont_key GreaterThan
# You can also associate a given keysym (0xff00 - 0xffff) with a string
# keysym 0xffff "\r\n\e\007\t"
# Greek keyboard mode. First the word "greek", then its boolean
# state, then its mode (either "iso" or "ibm").
# greek off iso
end keyboard
begin misc
# The command to which to pipe print requests (printscreen)
# print_pipe "lpr"
# The number of lines in the scrollback buffer. More lines, more memory needed.
save_lines 1024
# The characters to use as word delimiters for double-click selection
cut_chars "\t\\\`\\\"\'&() *,;<=>?@[]{|}"
# Defines the width of the border between the terminal window and the client window.
# (Default is 5).
border_width 5
# Defines the number of pixels to add between lines (default is 0).
# line_space 2
# Value to use for $TERM
term_name Eterm
# Program to exec (intended for use with themes)
# exec foo
end misc

View File

@ -1,7 +1,6 @@
<Eterm-0.9.1>
begin menu
title Font
font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1
begin menuitem
text "Normal"
action string "\e]50;#"
@ -248,7 +247,7 @@ begin menu
action submenu "Scrollbar"
end
begin menuitem
text "Move to Desktop..."
text "Move to Desktop"
action submenu "Move to Desktop"
end
-
@ -262,11 +261,10 @@ begin menu
action string "\ec"
end
end
begin menu
title Tiled
begin menuitem
text "70's Marble"
text "70s Marble"
action string "\e]20;tile/70s_marble.jpg;0x0+0+0:tile\a"
end
begin menuitem
@ -730,54 +728,23 @@ begin menu
action submenu "Gamma"
end
end
begin menu
title "Eterm Operations"
begin menuitem
text "New Window..."
action script "spawn(Eterm)"
end
begin menuitem
text "Version"
action string "\e[8n"
end
begin menuitem
text "Status"
action string "\e[9n"
end
separator
begin menuitem
text "Save User Settings..."
action script "save()"
end
begin menuitem
text "Save Theme Settings..."
action script "save(theme)"
end
begin menuitem
text "Exit"
action script "exit"
end
end
# This is the menu that gets called by Ctrl-Button3
begin menu
title Eterm
begin menuitem
text "Font"
action submenu Font
action submenu "Font"
end
begin menuitem
text "Background"
action submenu Background
action submenu "Background"
end
begin menuitem
text "Terminal"
action submenu Terminal
action submenu "Terminal"
end
-
begin menuitem
text "New Window..."
text "New Eterm Window"
action script "spawn(Eterm)"
end
begin menuitem
@ -791,7 +758,35 @@ begin menu
separator
begin menuitem
text "Save User Settings..."
action script "save()"
action script "save"
end
begin menuitem
text "Save Theme Settings..."
action script "save(theme)"
end
begin menuitem
text "Exit"
action script "exit"
end
end
begin menu
title "Eterm Operations"
begin menuitem
text "New Eterm Window"
action script "spawn(Eterm)"
end
begin menuitem
text "Version"
action string "\e[8n"
end
begin menuitem
text "Status"
action string "\e[9n"
end
separator
begin menuitem
text "Save User Settings..."
action script "save"
end
begin menuitem
text "Save Theme Settings..."
@ -802,4 +797,3 @@ begin menu
action script "exit"
end
end

View File

@ -1,40 +1,12 @@
<Eterm-0.9.1>
# ^- This must be the first line of any Eterm config file!
# Format is: <Eterm-VERSION> where VERSION is replaced by
# the version it was written for,
# minus the "DR-" if any.
#
# This is a sample Eterm config file.
#
# As always, the authors guarantee absolutely nothing and take
# no responsibility for anything that might happen to you, your
# computer, your dog, your sex life, or anyone or anything else
# directly or indirectly through the use of, or inability to use,
# this program. Use at your OWN risk.
# Define the color properties
begin color
# Foreground, background, cursor, scrollbar, pointer colors
foreground #aaaaaa
background black
cursor #ffff00
cursor_text #880000
pointer white
# video attribute can either be "normal" or "reverse"
video normal
# Redefine the 16 basic colors, if you really feel the need
# First word is "color", next is the number (0-15, BD, or UL),
# then the values for red, green, and blue separated by spaces
# Numbers are base 10 unless preceded by "0x" (base 16) or '0'
# (base 8). Alternatively, you can use color names or #xxxxxx
# format.
# The colors below are taken from Rasterman's .Xdefaults file. They are intended to
# display ANSI art properly when combined with a good ANSI-art font (like vga or
# Rasterman's nexus font).
color 0 0 0 0
color 1 0xaa 0 0
color 2 0 0210 0
@ -53,26 +25,10 @@ begin color
color 15 #ffffff
color bd #ffffff
color ul #ffffff
# This ends the color section. Any text after the word "end" is
# assumed to be a comment and ignored.
end color
# The X11 attributes section. Should be fairly self-explanatory,
# but if not, consult the X man page.
begin attributes
# Geometry == widthxheight+x_offset+y_offset, offsets from top left
# if +, bottom right if -
# geometry 132x50+100+100
title "%appname() -- Pseudo-transparency Theme"
name Eterm-transparent
# iconname Eterm
# Set the fonts. These must be monospace fonts. The values shown are
# the Eterm defaults. The "bold" font is the font used if color BD has
# not been set and Eterm cannot map the foreground color to one of the
# high-intensity colors (8-15).
font default @DEF_FONT_IDX@
font 0 @FONT0@
font 1 @FONT1@
@ -81,12 +37,7 @@ begin attributes
font 4 @FONT4@
font 5 10x20
font 6 12x24
# font bold 7x14
end attributes
# The Multichar support options. Same goes for these fonts as for the normal
# ones. The "encoding" attribute can be either "eucj" or "sjis" or "euckr"
# or big5 or gb
begin multichar
font 0 @MFONT0@
font 1 @MFONT1@
@ -95,55 +46,21 @@ begin multichar
font 4 @MFONT4@
encoding @MULTICHAR_ENCODING@
end multichar
# Define the imageclasses.
begin imageclasses
# You must define this before setting any images that use it. This is the $PATH-style variable
# that determines where Eterm looks for image files.
path "./pix/:~/.Eterm/:~/.Eterm/themes/Eterm/pix:~/.Eterm/pix/:@PKGDATADIR@/pix/"
# If you want a different icon than the standard Eterm one, set this.
# icon Eterm.xpm
# This is the background animator. See the man page for the syntax.
# anim 3 foo1 foo2 foo3
# Here we define an image.
begin image
# The first thing you set when defining an image MUST be the type. No type, no dice. The type
# should be one of the following: background, up_arrow, down_arrow, left_arrow, right_arrow,
# trough, anchor, menu, or submenu
type background
# Next you should set the state. This is either normal, selected, or clicked.
state normal
# Here you set the file. You can also set the geometry string here if you follow the filename with
# an @ sign. That way, you can include the geometries in your pixmaps.list file.
file %random(`cat pixmaps.list`)
# The mode line. This defines the startup mode for the image, as well as what modes are allowed.
# Valid modes are "image" (to display the image file), "trans" (to be transparent), or "viewport"
# (for viewport mode). Syntax is "mode <startup_mode> allow <allowed_modes>".
mode trans allow image trans viewport auto
# Set the image border. This is a portion of the image which will be kept at its actual size when
# scaling. Use this for beveled images (buttons, etc.).
border 0 0 0 0
# Th-th-th-th-that's all folks.
end image
# The rest of the images.
begin image
type trough
mode trans allow image trans viewport auto
state normal
color black #666666
file bar_vertical_3.png
# Here is how you specify the geometry string separately. See the man page for its syntax.
geom 100
border 2 2 2 3
end image
@ -271,32 +188,15 @@ begin imageclasses
border 2 3 2 2
end image
end
%include "menus.cfg"
# This section *must* come after the menu definitions if you want
# menu actions to work. C'est la vie. :-)
#
# Syntax: bind [ { <modifiers> | anymod } ] { <key> | <keysym> | <button> } to { string | echo | menu } <parameter>
#
begin actions
bind ctrl button1 to string "\e]5;\a"
bind ctrl button2 to string "\e[?30t"
bind ctrl button3 to menu Eterm
bind ctrl shift button3 to string "\e]6;14\a"
end actions
# This section must also come after the menus if you want any buttons
# to launch menus. (If not, it can go anywhere.)
begin button_bar
# Specify a font. The default buttonbar font is the default terminal
# font as defined in the attributes section above.
font "-adobe-helvetica-medium-r-normal--10-100-75-75-p-56-iso8859-1"
# Add a button. The syntax is:
# button <text> [ icon <filename> ] action { string | echo | menu } <parameter>
#
button Eterm action menu "Eterm Operations"
button Font action menu Font
button Background action menu Background
@ -304,96 +204,26 @@ begin button_bar
rbutton icon help.png action script "spawn(Eterm -e man Eterm)"
rbutton icon exit.png action script "exit"
end button_bar
# The XIM support options.
# input_method: set the name of your favorate input method program
# preedit_type: OverTheSpot or OffTheSpot or Root
# begin xim
# input_method Ami
# preedit_type OverTheSpot
# end xim
# Boolean variables. The values can be "1", "on", or "true" for TRUE, or "0",
# "off", or "false" for FALSE.
begin toggles
# If true, Eterm will un-iconify itself when it receives a beep (ASCII 0x07)
map_alert on
# If true, Eterm will flash rather than sending a beep.
visual_bell on
# If true, Eterm will prepend '-' to the shell name when calling it.
login_shell true
# If true, Eterm will display the scroll bar
scrollbar on
# If true, Eterm will attempt to make an entry in the utmp file to record the
# login information. Eterm *must* run privileged to do this.
utmp_logging on
# If true, Eterm will handle the Meta (Alt) + keypress to set the 8th bit.
# If false, Eterm will handle the Meta + keypress as an escape prefix. (default)
# meta8 false
# If true, Eterm will start iconified.
iconic false
# If true, Eterm will jump to the bottom of the window when something is output
# to the terminal.
home_on_output 1
# If true, Eterm will jump to the bottom of the window when a key is pressed.
home_on_input 1
# If true, Eterm will put the scrollbar on the right of the window (default is left).
scrollbar_right true
# If true, the scrollbar will have no trough.
scrollbar_floating true
# If true, Eterm will run with no window borders.
borderless true
end toggles
begin keyboard
# Use the supplied keysym to reduce/enlarge the font
smallfont_key LessThan
bigfont_key GreaterThan
# You can also associate a given keysym (0xff00 - 0xffff) with a string
# keysym 0xffff "\r\n\e\007\t"
# Greek keyboard mode. First the word "greek", then its boolean
# state, then its mode (either "iso" or "ibm").
# greek off iso
end keyboard
begin misc
# The command to which to pipe print requests (printscreen)
# print_pipe "lpr"
# The number of lines in the scrollback buffer. More lines, more memory needed.
save_lines 64
# The characters to use as word delimiters for double-click selection
cut_chars "\t\\\`\\\"\'&() *,;<=>?@[]{|}"
# Defines the width of the border between the terminal window and the client window.
# (Default is 5).
border_width 5
# Defines the number of pixels to add between lines (default is 0).
# line_space 2
# Value to use for $TERM
term_name Eterm
# Program to exec (intended for use with themes)
# exec foo
end misc