Using SMIT in X11R4 xterms. A small hint 8-)

Using SMIT in X11R4 xterms. A small hint 8-)

Post by Chin Fa » Thu, 01 Aug 1991 16:15:22



Hi,

I just found out how to use SMIT in a X11R4 xterm but still have
everything working.  In a X11R4 xterm, the menu looks like the
following:

F1=Help             F2=Refresh          F3=Cancel           Esc+8=Image
Esc+9=Shell         Esc+0=Exit          Enter=Do

BUT, if you press F[1-3], there will be only a frustrating beep :-(
So, looking at the 2nd row, I figured if some of them used Esc, I might
as well try Esc+1, Esc+2, and Esc+3.  Hey! That worked immediately!

This is absolutely NOT documented in the impressive InfoExplorer
database 8-)

Hmmm... I am an engineer, so you may call above a mechanical engineer's
solution?  Dirty huh?  Hehehe...

Sincerely,

Chin Fang
Mechanical Engineering Department
Stanford University

 
 
 

Using SMIT in X11R4 xterms. A small hint 8-)

Post by Jon Alper » Thu, 01 Aug 1991 20:59:55


I really hate to burst your bubble (OK...I am _really_ going to secretly
enjoy this :-} ).

Those people who use a dumb terminal for a console to one of the rack systems
(or any of the rs/6000 systems) learned the "esc+1,2,3" for F1, F2, F3 a
long time ago. It has more to do with how the input device (or xterm window
in the example originally posted) translates the esc and F keys than what
SMIT is looking for. You can accomplish the same ends by setting your
TERM to vt100.

take it easy...

--
Jon Alperin
Bell Communications Research


---> Voicenet: (908) 699-8674
---> UUNET: uunet!bcr!jona

* All opinions and stupid questions are my own *

 
 
 

Using SMIT in X11R4 xterms. A small hint 8-)

Post by John P. Eisenmeng » Fri, 02 Aug 1991 01:29:14



Quote:> BUT, if you press F[1-3], there will be only a frustrating beep :-(
> So, looking at the 2nd row, I figured if some of them used Esc, I might
> as well try Esc+1, Esc+2, and Esc+3.  Hey! That worked immediately!

BUT if you try PF[1-3] it may work.  At least it does in my environment
(VAXStation 2000 / Ultrix / MIT X Windows).  This is true of AT&T 4425
ASCII terminals as well...

Quote:> This is absolutely NOT documented in the impressive InfoExplorer
> database 8-)

Hmm... I thought I read it somewhere in the documentation.

Quote:> Hmmm... I am an engineer, so you may call above a mechanical engineer's
> solution?  Dirty huh?  Hehehe...

Not really.  You could try programming your Xterm function keys to return
[esc]-0 through [esc]-9...

-John

 
 
 

Using SMIT in X11R4 xterms. A small hint 8-)

Post by Chin Fa » Fri, 02 Aug 1991 07:55:21




[my writing deleted]
|>
|> BUT if you try PF[1-3] it may work.  At least it does in my environment
|> (VAXStation 2000 / Ultrix / MIT X Windows).  This is true of AT&T 4425
|> ASCII terminals as well...

Alas, I don't use these.  I do my SA jobs on the console of a 320.
My two head SAs do their thing on SUN SPARCstations running standard
MIT X11R4 stuff.  Neither they nor I have PF keys :-(

|> > This is absolutely NOT documented in the impressive InfoExplorer
|> > database 8-)
|>
|> Hmm... I thought I read it somewhere in the documentation.

My head SA just informed me that it was mentioned briefly in
Installation Guide.  Gush!  I never get a chance to do OS installation
for RIOS machines :-(

|> > Hmmm... I am an engineer, so you may call above a mechanical engineer's
|> > solution?  Dirty huh?  Hehehe...
|>
|> Not really.  You could try programming your Xterm function keys to return
|> [esc]-0 through [esc]-9...

If a key is called F1, I will use it as F1.  I can program emacs to
use all sorts of crazy key combos.  But if my keyboard has pgup, pgdn
Home, End, Insert, Delete, four arrows, I will use them as they are
since they are named so.  As a mechanical engineer, I won't call the
wheels of a car tracks and will never try to do so 8-)

So, to me it's not a matter of programming.  It's more a preference
I guess.  Xmodmap and xev? Nah.. if a app is wisely written, you don't
these two.

Sincerely,

Chin Fang
Mechanical Engineering Department
Stanford University

Chin Fang

 
 
 

Using SMIT in X11R4 xterms. A small hint 8-)

Post by Minh Tran-Le/655 » Fri, 02 Aug 1991 15:55:03



>Hi,
>I just found out how to use SMIT in a X11R4 xterm but still have
>everything working.  In a X11R4 xterm, the menu looks like the
>following:
>F1=Help             F2=Refresh          F3=Cancel           Esc+8=Image
>Esc+9=Shell         Esc+0=Exit          Enter=Do
>BUT, if you press F[1-3], there will be only a frustrating beep :-(
>So, looking at the 2nd row, I figured if some of them used Esc, I might
>as well try Esc+1, Esc+2, and Esc+3.  Hey! That worked immediately!
>This is absolutely NOT documented in the impressive InfoExplorer
>database 8-)
> ...

I think that the Esc+n sequence is documented in one of the help
screen of SMIT.

You can also use the following modified xterm terminfo entry that
will define the PF keys and cursor keys and PageUp/PageDown for
use with SMIT or vi.

To install the new terminfo entry do:

        tic xterm.ti

--- cut here for xterm.ti ---
# Vanilla vt100 definitions.
vt100|vt100-am|dec vt100 (w/advanced video),
        am, mir, msgr, xenl, xon,
        cols#80, it#8, lines#24, vt#3,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
        clear=\E[H\E[J$<50>, cr=\r, csr=\E[%i%p1%d;%p2%dr,
        cub=\E[%p1%dD, cub1=\b, cud=\E[%p1%dB, cud1=\n,
        cuf=\E[%p1%dC, cuf1=\E[C$<2>,
        cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
        cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>,
        el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H, ht=\t,
        hts=\EH, ind=\n, ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=\b,
        kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB,
        kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, kf0=\EOy, kf1=\EOP,
        kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt,
        kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, rc=\E8,
        rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmkx=\E[?1l\E>,
        rmso=\E[m$<2>, rmul=\E[m$<2>,
        rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t^N%e^O%;,
        sgr0=\E[m^O$<2>, smacs=^N, smkx=\E[?1h\E=,
        smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,

xterm|vs100|xterm terminal emulator,
        ind=^J, cols#80, lines#65,
        clear=\E[H\E[2J, cub1=^H, am, cup=\E[%i%p1%d;%p2%dH,
        cuf1=\E[C, cuu1=\E[A, el=\E[K, ed=\E[J,
        cud=\E[%p1%dB, cuu=\E[%p1%dA, cub=\E[%p1%dD,
        cuf=\E[%p1%dC, km,




        il=\E[%p1%dL, dl=\E[%p1%dM, il1=\E[L, dl1=\E[M,

        kpp=\E[5~,      knp=\E[6~,      kbs=\177,       kdch1=^H,
        kich1=\E[2~,    ktab=^I,
        kf1=\E[11~,     kf2=\E[12~,     kf3=\E[13~,     kf4=\E[14~,
        kf5=\E[15~,     kf6=\E[17~,     kf7=\E[18~,     kf8=\E[19~,
        kf9=\E[20~,     kf10=\E[21~,    kf11=\E[23~,    kf12=\E[24~,
        use=vt100-am,
xterms|vs100s|xterm terminal emulator (small screen 24x80),
        cols#80, lines#24,
        use=xterm,
xterm-30|vs100-30|xterm terminal emulator (small screen 30x80),
        cols#80, lines#30,
        use=xterm,
xterm-40|vs100-40|xterm terminal emulator (small screen 40x80),
        cols#80, lines#40,
        use=xterm,
xterm-50|vs100-50|xterm terminal emulator (small screen 50x80),
        cols#80, lines#50,
        use=xterm
--- end of xterm.ti ---

Minh Tran-Le.

 
 
 

Using SMIT in X11R4 xterms. A small hint 8-)

Post by John P. Eisenmeng » Fri, 02 Aug 1991 22:50:31





| [my writing deleted]
| |>
| |> BUT if you try PF[1-3] it may work.  At least it does in my environment
| |> (VAXStation 2000 / Ultrix / MIT X Windows).  This is true of AT&T 4425
| |> ASCII terminals as well...
|
| Alas, I don't use these.  I do my SA jobs on the console of a 320.
| My two head SAs do their thing on SUN SPARCstations running standard
| MIT X11R4 stuff.  Neither they nor I have PF keys :-(

Lucky guy.

| |> > This is absolutely NOT documented in the impressive InfoExplorer
| |> > database 8-)
| |>
| |> Hmm... I thought I read it somewhere in the documentation.
|
| My head SA just informed me that it was mentioned briefly in
| Installation Guide.  Gush!  I never get a chance to do OS installation
| for RIOS machines :-(

You really meant to put a smiley there, didn't you?  Installing AIX is
not something to look forward to in my book.  (However the impending
delivery of 2 320Hs is :-)

| |> > Hmmm... I am an engineer, so you may call above a mechanical engineer's
| |> > solution?  Dirty huh?  Hehehe...
| |>
| |> Not really.  You could try programming your Xterm function keys to return
| |> [esc]-0 through [esc]-9...
|
| If a key is called F1, I will use it as F1.  I can program emacs to
| use all sorts of crazy key combos.  But if my keyboard has pgup, pgdn
| Home, End, Insert, Delete, four arrows, I will use them as they are
| since they are named so.  As a mechanical engineer, I won't call the
| wheels of a car tracks and will never try to do so 8-)

What I suggested was a dirtier solution to your problem.  It wasn't in-
tended to be taken seriously.  I guess I should have put a ;-) at the end
of that.

Speaking of pgup, pgdn, home, and end, one of the things that bugs me most
about SMIT is it's inability to page through the output it saves for you.
It's just not fun when it tells you an install failed and you have 3000+
lines on stdout.  Yes, I know it's kept in a log file, but I'd still like
to page through it within SMIT instead of scrolling line-by-line.

-John

 
 
 

Using SMIT in X11R4 xterms. A small hint 8-)

Post by Graeme Moff » Sat, 03 Aug 1991 19:21:02


Quote:>Speaking of pgup, pgdn, home, and end, one of the things that bugs me most
>about SMIT is it's inability to page through the output it saves for you.
>It's just not fun when it tells you an install failed and you have 3000+
>lines on stdout.  Yes, I know it's kept in a log file, but I'd still like
>to page through it within SMIT instead of scrolling line-by-line.

Try ^V to page forward, ESC V to page back.  (Yeah, I know what you're going
to say *B^)

--

Computer Aided Design Centre,  Fax: +64-9-366-0702 /  our bodies & our wits
School of Engineering,    Ph: +64-9-737-999 x8384 /  But we waste time,
University of Auckland, Private Bag, Auckland, NZ \   so time & we are quits

 
 
 

Using SMIT in X11R4 xterms. A small hint 8-)

Post by Donald R. Fredk » Sun, 04 Aug 1991 12:42:27


You can page up and down in SMIT if you are using a terminal that
has pgup and pgdn keys, and they are described in terminfo. I use
versaterm on a mac, emulating a vt220, all the time.
--

UUCP            {ihnp4,decvax!ucbvax,dcdwest,ucbvax}!ucsd.edu!drfredkin


 
 
 

1. X11R4 Xterm

Howdy.... I just put up the X11R4 clients and am very happy with the
way the R4 xterm works over IBM's aixterm (Thank you Mr. Greening).  I
am still having one problem thou.  When I move the mouse out of the
window I loose the focus for that window.  Can someone tell me
where/how I can control the focus for the windows.  I would really
like it if the window focus for mwm was treated like twm treats them,
I don't like having to click on the window to use it.

Is twm working anywhere.... If so where can I get a copy of the
source/patch?

        Wally Strzelec
        Texas A&M University
        Unix System Administrator

These are my own opinions and do not necessarily reflect those of
Texas A&M University or any living person.

2. How can I uninstall RH5.1 and reinstall (from CD)?

3. Yet another problem with X11R4 xterm

4. 1.VideoResolution 2.ModemConflict

5. X11r4 xterm problem

6. korn shell

7. A small hint...

8. Single source distribution - How?

9. I need some hints for a small network setup

10. smit backfile and smit backfilesys question

11. Pb with smit chgaio and smit chgsys

12. smit.log and smit.script files

13. Q: How to increase line length XMAN uses on x11r4 system