jed-users mailing list

[2021 Date Index] [2021 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [jed-users] Re: VT100 compatible terminal emulator?



On 7/26/21 10:53 AM, Ulli Horlacher wrote:
On Mon 2021-07-26 (10:34), Roland Hughes wrote:

Okay, need some explanation of what it is you are __really__ trying to do.
I am looking for an alternative for xterm, because its popup menu
(Ctrl-Mousebutton) does not work any more and I cannot change the font
(size) at runtime.
You don't configure the fonts at launch like I did in my script?

====
Usage(){
    echo
    echo " Usage  : vax -options"
    echo
    echo " Options: -80   for 80 column terminal"
    echo "          -132  for 132 column terminal"
    echo "          -fg colorname"
    echo "          -bg colorname"
    echo "          -fn fontname"
    echo "          -fb bold fontname"
    echo "          -host [altair] [devel] [leonis] [castor]"
    echo ""
    echo " Example: \"vax -80 -fg white -bg black -fn 9x15 -fb 9x15b -host castor\""
    echo "          Starts a VAX session with an 80 column terminal"
    echo "          with a black background, white foreground, a normal"
    echo "          font of 9x15 and a bold font of 9x15b, and connects"
    echo "          to the node 'castor'"
    echo
    echo "          If you need additional help, please call Workstation"
    echo "          Services at x92396."
    echo
    exit 1
}


# Default to a black foreground with a white background.
# Use the 9x15 and 9x15bold fonts. Connect to castor by default.
#
    FG=yellow
    BG=black
    HOST=192.168.1.8
    FONTFAMILY="Liberation Mono"
    COLS=80



    xterm  -title "VAX" -132 -sb -sl 4000 +t -bc -geo ${COLS}x32 -fg ${FG} -bg ${BG} \
        -cr red -fa "$FONTFAMILY" -xrm \
        'XTerm*VT100.translations:     #override \n\
        ~Shift  <Key>F1:    string(0x1b)    string("OP") \n \

====

Basically it sounds like all you need to do is fix the mapping at the end.

       <Btn1Down>:             select-start() \n\
        <Btn1Up>:               select-end(PRIMARY, CLIPBOARD, CUB_BUFFER0) \n\
        Shift<Btn1Down>:		select-start() \n\
   	    Shift<Btn1Motion>:		select-extend() \n\
	    Shift<Btn1Up>:			select-end(CLIPBOARD) \n\
	    Shift<Btn2Up>:			insert-selection(CLIPBOARD) \n\
	    Shift<Btn3Down>:		start-extend() \n\
	    Shift<Btn3Motion>:		select-extend() \n\
	    Shift<BtnUp>:			select-end(CLIPBOARD)\n'\


====

okay, I installed xterm on this machine running Ubuntu 20.04 LTS.

The menu with fonts is now tied to Ctrl<Btn2Down> using the dec-u-serve script I posted earlier. By button 2 I mean the far right mouse button. It does not work with the first button.


--

Roland Hughes, President
Logikal Solutions
(630)-205-1593

http://www.theminimumyouneedtoknow.com
http://www.infiniteexposure.net
http://www.johnsmith-book.com
http://www.logikalblog.com
http://www.interestingauthors.com/blog

_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


[2021 date index] [2021 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]