1
0
mirror of https://github.com/moshix/mvs.git synced 2026-02-05 07:24:56 +00:00

Updated x3270pro for better colors and Vista3270 compatibility

This commit is contained in:
moshix
2020-11-28 20:32:40 -06:00
committed by GitHub
parent 63f4d82470
commit 34c9e6c98a

257
x3270pro
View File

@@ -1,7 +1,13 @@
x3270 profile
! =============
! Sensible defaults, and Emacs-like keybindings.
! Chris Poole.
! Keyboard config
! ---------------
! keypad state (-keypad)
x3270.keypadOn: false
! keymap (-keymap)
@@ -11,12 +17,12 @@ x3270.keymap: @server
x3270.keymap: mine
! Definition of the 'mine' keymap
! More-specific definitions must come before less-specific definitions.
! The definition for Shift<Key>Backspace must come before the
! The definition for Shift<Key>Backspace must come before the
! definition for <Key>BackSpace
x3270.keymap.mine: #override \
<Key>Escape : Attn()\n\
<Key>Escape : Clear()\n\
<Key>Return : Newline()\n\
<Key>Mode_switch : Enter()\n\
<Key>Control_R : Enter()\n\
<Key>Control_L : Reset()\n\
<Key>ISO_Level3_Shift : Enter()\n\
Ctrl Alt Mod2<Key>d : Disconnect()\n\
@@ -24,16 +30,16 @@ x3270.keymap.mine: #override \
<Key>Prior : PF(7)\n\
<Key>Next : PF(8)\n\
Shift<Key>Return : Up()\n\
Shift<Key>` : Clear()\n\
Shift<Key>` : Clear()\n\
Ctrl<Key>g : Redraw()\n\
Ctrl<Key>h : Home()\n\
Ctrl<Key>i : ToggleInsert()\n\
Ctrl<Key>r : Reset()\n\
<Key>` : PA(1)\n\
Shift<Key>2 : PA(2)\n\
Ctrl<Key>` : PA(1)\n\
Ctrl<Key>` : PA(2)\n\
Ctrl<Key>3 : PA(3)\n\
Meta<Key>w : set-select(CLIPBOARD)\n\
Ctrl<Key>y : insert-selection(CLIPBOARD)\n\
Meta<Key>c : set-select(CLIPBOARD)\n\
Meta<Key>v : insert-selection(CLIPBOARD)\n\
Ctrl<Key>a : BackTab()\n\
Ctrl<Key>e : FieldEnd()\n\
Ctrl<Key>p : Up()\n\
@@ -42,25 +48,35 @@ x3270.keymap.mine: #override \
Ctrl<Key>f : Right()\n\
Meta<Key>b : PreviousWord()\n\
Meta<Key>f : NextWord()\n\
Ctrl<Key>v : PF(8)\n\
Meta<Key>v : PF(7)\n\
Ctrl<Key>d : Delete()\n\
Ctrl<Key>k : EraseEOF()\n\
<Key>Insert : ToggleInsert()\n\
<Key>KP_Insert : ToggleInsert()\n\
<Key>End : EraseEOF()\n\
Meta<Key>w : DeleteWord()
! Color Scheme
! ------------
!
! moshe x3270.colorScheme: default
x3270.colorScheme.cjp: \
black blue red magenta \
green turquoise yellow white \
black blue3 orange purple \
paleGreen cyan grey white \
white black dimGray \
4 2 1 15
x3270.colorScheme: default
! Default, for reference
! x3270.colorScheme.default: \
! black deepSkyBlue red pink \
! green turquoise yellow white \
! black blue3 orange purple \
! paleGreen paleTurquoise2 grey white \
! white black dimGray \
! 4 2 1 15
! black deepSkyBlue red pink \
! green turquoise yellow white \
! black blue3 orange purple \
! paleGreen paleTurquoise2 grey white \
! white black dimGray \
! 4 2 1 15
! Miscellaneous
@@ -72,39 +88,8 @@ x3270.altCursor: true
x3270.scrollBar: false
! Colors of menus
! moshex3270.background: black
! moshex3270.foreground: red
x3270.colorScheme: reverse
! VER http://web.mit.edu/source-8.1/third/x3270/X3270.xad
! 0 X color to use for IBM "neutral/black" (also used as ANSI color 0)
! 1 X color to use for IBM "blue" (also used for ANSI color 4)
! 2 X color to use for IBM "red" (also used for ANSI color 1)
! 3 X color to use for IBM "pink" (also used for ANSI color 5)
! 4 X color to use for IBM "green" (also used for ANSI color 2)
! 5 X color to use for IBM "turquoise"
! 6 X color to use for IBM "yellow" (also used for ANSI color 3)
! 7 X color to use for IBM "neutral/white"
! 8 X color to use for IBM "black"
! 9 X color to use for IBM "deep blue"
! 10 X color to use for IBM "orange"
! 11 X color to use for IBM "purple"
! 12 X color to use for IBM "pale green"
! 13 X color to use for IBM "pale turquoise" (also used for ANSI color 6)
! 14 X color to use for IBM "grey"
! 15 X color to use for IBM "white" (also used for ANSI color 7)
! 16 X color to use if one of 0..15 cannot be allocated (white or black)
! 17 X color to use as the default screen background
! 18 X color to use as the select background
! 19 IBM color index (0..15) to use for unprotected, unhighlighted fields
! 20 IBM color index (0..15) to use for unprotected, highlighted fields
! 21 IBM color index (0..15) to use for protected, unhighlighted fields
! 22 IBM color index (0..15) to use for protected, highlighted fields
x3270.colorScheme.reverse: \
#000000 #c0c0c0 #00ff00 #008000 #f0f000 \
#f0f0f0 #ffff00 #ffffff #000000 #000080 \
#ffa500 #f0f0f0 #00ff00 #f0f0f0 \
#c0c0c0 #ffffff white #000070 #FF0000 \
4 2 1 15
x3270.background: black
x3270.foreground: red
! Silence the bell
x3270.bellVolume: -100
@@ -113,9 +98,9 @@ x3270.visualBell: true
! Use a larger font
x3270.emulatorFont: 3270
! Window size; 160x62 is maximum in PCOMM
! Window size; 160x62 is maximum in PCOMM
!x3270.oversize: 160x62
x3270.oversize: 132x43
x3270.oversize: 100x43
!x3270.oversize: 80x43
x3270.model: 3279-4-E
@@ -129,17 +114,177 @@ x3270.model: 3279-4-E
x3270.crosshair: false
! Pull-down menus: Ctrl and each of the mouse buttons
x3270.menuBar: true
x3270.menuBar: true
! reconnect automatically
! Don't reconnect automatically
x3270.reconnect: true
! Don't allow windows to be resized
x3270.allowResize: true
! When pasting text, treat columns to the left of the cursor as a martin to
! When pasting text, treat columns to the left of the cursor as a margin to
! avoid printing into
x3270.marginedPaste: true
! Complete list of defaults can be found at:
! http://stuff.mit.edu/afs/athena/astaff/source/src-8.4/third/x3270/x3270.xad
! Complete list of defaults can be found at:
! http://stuff.mit.edu/afs/athena/astaff/source/src-8.4/third/x3270/x3270.xad
! cut from here for andromeda theme
! --------------------------------------------------
! .x3270pro file generated using x3270.nice by Soldier of FORTRAN
! Original Xresource file: 'Andromeda'
! Copy and paste this output to ~/.x3270pro
! --------------------------------------------------
! Original Xresource file:
! --------------------------------------------------
! Generated with :
! XRDB2Xreources.py
! *.foreground: #e5e5e5
! *.background: #262a33
! Black
! *.color0: #000000
! *.color8: #666666
! Red
! *.color1: #cd3131
! *.color9: #cd3131
! Green
! *.color2: #05bc79
! *.color10: #05bc79
! Yellow
! *.color3: #e5e512
! *.color11: #e5e512
! Blue
! *.color4: #2472c8
! *.color12: #2472c8
! Magenta
! *.color5: #bc3fbc
! *.color13: #bc3fbc
! Cyan
! *.color6: #0fa8cd
! *.color14: #0fa8cd
! White
! *.color7: #e5e5e5
! *.color15: #e5e5e5
! Bold, Italic, Underline
! *.colorIT:
! *.colorUL:
! --------------------------------------------------
! Adding theme to Options -> Color Scheme
! --------------------------------------------------
x3270.schemeList: Default 3279: default\n\
Bright: bright\n\
Reverse: reverse\n\
Green Screen: greenScreen\n\
Andromeda: Andromeda
! --------------------------------------------------
! Generating Andromeda .x3270pro theme
! --------------------------------------------------
! Menu Colors: Foreground
! --------------------------------------------------
x3270*dialog*confirmButton.foreground : #e5e5e5
x3270*dialog*foreground : #e5e5e5
x3270.aboutPopup*icon.foreground : #e5e5e5
x3270.keypadForeground : #e5e5e5
x3270*menuBarContainer.foreground : #e5e5e5
x3270*fileMenuButton*foreground : #e5e5e5
x3270*optionsMenuButton*foreground : #e5e5e5
x3270*connectMenuButton*foreground : #e5e5e5
x3270*reconnectButton*foreground : #e5e5e5
x3270*macrosMenuButton*foreground : #e5e5e5
x3270*keypadButton*foreground : #e5e5e5
x3270*fileMenu*foreground : #e5e5e5
x3270*exitMenu*foreground : #e5e5e5
x3270*optionsMenu*foreground : #e5e5e5
x3270*hostMenu*foreground : #e5e5e5
x3270*reconnect*foreground : #e5e5e5
x3270*macrosMenu*foreground : #e5e5e5
x3270*togglesMenu*foreground : #e5e5e5
x3270*fontsMenu*foreground : #e5e5e5
x3270*modelsMenu*foreground : #e5e5e5
x3270*colorsMenu*foreground : #e5e5e5
x3270*charsetMenu*foreground : #e5e5e5
x3270*dialog*value*foreground : #e5e5e5
x3270*dialog*foreground : #e5e5e5
x3270*dialog*confirmButton.foreground : #e5e5e5
x3270*dialog*confirm2Button.foreground : #e5e5e5
3270*dialog*cancelButton.foreground : #e5e5e5
x3270.ftProgressPopup*filename.foreground : #e5e5e5
! --------------------------------------------------
! Menu Colors: Critical
! --------------------------------------------------
x3270.errorPopup*label.foreground : #cd3131
x3270*dialog*cancelButton.foreground : #cd3131
! --------------------------------------------------
! Menu Colors: Backgrounds
! --------------------------------------------------
x3270.keypadBackground : #262a33
x3270*menuBarContainer.background : #262a33
x3270*fileMenuButton*background : #262a33
x3270*optionsMenuButton*background : #262a33
x3270*connectMenuButton*background : #262a33
x3270*reconnectButton*background : #262a33
x3270*macrosMenuButton*background : #262a33
x3270*keypadButton*background : #262a33
x3270*fileMenu*background : #262a33
x3270*exitMenu*background : #262a33
x3270*optionsMenu*background : #262a33
x3270*hostMenu*background : #262a33
x3270*reconnect*background : #262a33
x3270*macrosMenu*background : #262a33
x3270*togglesMenu*background : #262a33
x3270*fontsMenu*background : #262a33
x3270*modelsMenu*background : #262a33
x3270*colorsMenu*background : #262a33
x3270*charsetMenu*background : #262a33
x3270*dialog*value*background : #262a33
x3270*dialog*background : #262a33
x3270*dialog*confirmButton.background : #262a33
x3270*dialog*confirm2Button.background : #262a33
3270*dialog*cancelButton.background : #262a33
x3270.ftProgressPopup*filename.background : #262a33
! --------------------------------------------------
! Menu Colors: Borders
! --------------------------------------------------
x3270*reconnectButton*borderColor : #e5e5e5
x3270*macrosMenuButton*borderColor : #e5e5e5
x3270*fileMenu.borderColor : #e5e5e5
x3270*exitMenu.borderColor : #e5e5e5
x3270*optionsMenu.borderColor : #e5e5e5
x3270*hostMenu.borderColor : #e5e5e5
x3270*macrosMenu.borderColor : #e5e5e5
x3270*togglesMenu.borderColor : #e5e5e5
x3270*fontsMenu.borderColor : #e5e5e5
x3270*modelsMenu.borderColor : #e5e5e5
x3270*colorsMenu.borderColor : #e5e5e5
x3270*charsetMenu.borderColor : #e5e5e5
x3270*confirmButton.borderColor : #e5e5e5
x3270*confirmButton.borderColor : #e5e5e5
x3270*confirm2Button.borderColor : #e5e5e5
x3270*cancelButton.borderColor : #e5e5e5
x3270.ftProgressPopup*filename.borderColor: #e5e5e5
x3270*fileMenuButton*borderColor : #262a33
x3270*optionsMenuButton*borderColor : #262a33
x3270*connectMenuButton*borderColor : #262a33
x3270*menuBarContainer.borderColor : #262a33
x3270*menuBarContainer.borderWidth : 0
x3270*value.borderColor : #e5e5e5
x3270*value.foreground : #e5e5e5
! --------------------------------------------------
! Default Color Scheme
! --------------------------------------------------
x3270.colorScheme: Andromeda
! --------------------------------------------------
! Color Scheme definition
! --------------------------------------------------
x3270.colorScheme.Andromeda: \
#000000 #2472c8 #cd3131 #bc3fbc \
#05bc79 #0fa8cd #e5e512 #e5e5e5 \
#000000 #2472c8 #e5e512 #bc3fbc \
#05bc79 #0fa8cd #666666 #e5e5e5 \
white #262a33 #666666 4 \
2 1 15
! --------------------------------------------------
! x3270.nice done
! --------------------------------------------------
~