No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help
View Responses


Grex Info Item 133: What works as a pager for new people?
Entered by popcorn on Sun Apr 3 14:38:29 UTC 1994:

This item text has been erased.

52 responses total.



#1 of 52 by remmers on Sun Apr 3 15:10:08 1994:

Try:

  define pager "less -dE -P 'Press SPACEBAR for next screen, q to quit'"



#2 of 52 by popcorn on Sun Apr 3 15:17:05 1994:

This response has been erased.



#3 of 52 by gregc on Mon Apr 4 10:55:31 1994:

John just illistrated the principle of RTFM very well in response #1. :-)


#4 of 52 by davel on Mon Apr 4 11:54:54 1994:

Yes.  Valerie, I was surprised at you.


#5 of 52 by kaplan on Mon Apr 4 17:38:15 1994:

What happens with newuser on m-net?  I seem to remember that I got 
a helpful prompt tellimg me to hit space and when I checked the
.cfonce that was created for me it had "more -i" or something like
that.  Like the helpful prompt was built into the more program over
there.


#6 of 52 by kaplan on Mon Apr 4 17:45:38 1994:

Perhaps the same idea from #1 should be used for the shell prompt.  If
you don't know anything about unix and you pick bbs shell and you or
your line noise accidently issues a ctrl-z you'd be faced with a shell
prompt.  That prompt could say, "type fg to get back to PicoSpan."


#7 of 52 by remmers on Mon Apr 4 17:48:25 1994:

If your shell is bbs and you issue a control-Z, I don't think you'd
get a shell prompt.  You'd probably be logged off.


#8 of 52 by remmers on Mon Apr 4 17:51:47 1994:

Okay, I just checked it out.  If bbs is running as your login process,
it ignores or traps control-Z's and just leaves you in bbs.


#9 of 52 by carson on Mon Apr 4 17:52:25 1994:

Ctrl-Z DOES log off those of us who use bbs. ;)


#10 of 52 by remmers on Mon Apr 4 18:00:29 1994:

I guess I can believe that.  In any case you wouldn't get a shell
prompt, since if bbs is your login process, there's no other shell
running underneath.


#11 of 52 by kaplan on Mon Apr 4 18:16:22 1994:

I looked at /b and I didn't see how it was different from picking sh as
your login shell and running bbs in your .profile .  What does /b do?

Anyway, here's why I suggested a new prompt.  My friend didn't know
anything about picospan or unix so I had him pick csh as his login shell
and I put kite's menu in his .login.  He picked bbs from the menu and must
have hit ctrl-z because he got a shell prompt and didn't know how to get
back.  So I guess I have a new suggestion: 

A choice in addition to the shells and bbs in newuser should be "menu" or
perhaps "lynx" after lynx learns to execute programs.  People who opt for
this choice should have a helpful shell prompt that tells them how to get
out of the shell. 



#12 of 52 by remmers on Mon Apr 4 18:28:03 1994:

Look at /b again.  It does an *exec* of bbs -- that's different from
just "running" it.  Instead of starting up bbs as a subprocess of sh,
it "overlays" sh in the same process.


#13 of 52 by popcorn on Tue Apr 5 03:06:18 1994:

This response has been erased.



#14 of 52 by popcorn on Tue Apr 5 03:07:22 1994:

This response has been erased.



#15 of 52 by bubbles on Tue Apr 5 05:43:04 1994:

A certain other PIco
span (oops, hit Enter while reaching fopr shift) system uses more for the
default pager but has a prompt has says to hit spacebar for more or q to
quit.  If line noise feeds it garbage it says hit h for help. 


#16 of 52 by kaplan on Tue Apr 5 15:13:31 1994:

Re 12: thanks for explaining exec.  So, with this friend with 'menu' in
his .login, would 'exec menu' protect him from unwanted shell prompts? 



#17 of 52 by remmers on Tue Apr 5 18:37:22 1994:

I imagine so.


#18 of 52 by davel on Tue Apr 5 21:57:21 1994:

If menu is a script, he'd probably have to do something like exec csh menu
or exec sh menu.  Though I'm not sure, & don't have time to try it at
the moment.


#19 of 52 by popcorn on Wed Apr 6 11:40:13 1994:

This response has been erased.



#20 of 52 by davel on Wed Apr 6 12:14:11 1994:

It's a sh builtin, but also a csh builtin.  Don't know about the others,
but I'd expect them to have it too.  Might conceivably be under another
name, I guess.


#21 of 52 by remmers on Thu Apr 7 01:37:41 1994:

Should work in ksh, bash, and tcsh too, since they're all extensions of
sh or csh.


#22 of 52 by remmers on Thu Apr 7 01:39:28 1994:

I discovered, with mixed emotions, that the "less" pager mungs ANSI
codes and backspaces.  This may or may not be a good thing.


#23 of 52 by davel on Thu Apr 7 10:13:49 1994:

Can you be more specific?


#24 of 52 by remmers on Thu Apr 7 12:21:24 1994:

Control characters show up as "visible" -- e.g. if there's a backspace
character in a response, "less" displays ^H rather than moving the
cursor left.  Maybe there's an option that changes this, but I don't
have time to RTFM right now.


#25 of 52 by gerund on Thu Apr 7 17:41:58 1994:

The -r option or perhaps -u or -U is what you are looking for I think.
Yes, I RTFM.


#26 of 52 by davel on Thu Apr 7 22:42:38 1994:

<davel sees why most people don't RTFM>


#27 of 52 by gerund on Fri Apr 8 06:46:18 1994:

I only RTFM when I just *have* to find the answer either because of a need or
to satisfy curiosity.


#28 of 52 by davel on Fri Apr 8 10:05:00 1994:

My point was that you're supposed to RTFM to find out what option to use.
If the answer is x, or maybe y or z, or it could be u, then what good is
the manual?  (And this does happen too often to me, too.)


#29 of 52 by kentn on Fri Apr 8 14:50:57 1994:

And now we know why they call it the "FM"...


#30 of 52 by gerund on Fri Apr 8 19:13:11 1994:

Re #28 The 'FM' made it quite clear which it was, I was just in too much of a
hurry to decide which one of them solved the problem.  i.e. I didn't do a
closeup read just a quick glance read


#31 of 52 by remmers on Mon Apr 11 14:02:02 1994:

I looked at the FM.  Yes, it's -r or -u or -U or some combination
thereof, but I think I'll have to experiment to determine the exact
effect of each.  I read with interest the fact that "less" makes an
effort to be compatible with "more" in the way it interprets backspaces
in certain contexts to do underscoring and highlighting on terminals
that have the capability.  More later.


#32 of 52 by remmers on Tue Apr 12 01:50:43 1994:

See, the thing is, the "more" and "less" pagers let you use
control-h's to obtain u^H_n^H_d^H_e^H_r^H_s^H_c^H_o^H_r^H_e^H_ and
h^Hhi^Hig^Hgh^Hhl^Hli^Hig^Hgh^Hht effects.


#33 of 52 by gerund on Tue Apr 12 02:05:59 1994:

cool!  that underscore und highlight is neato!


#34 of 52 by popcorn on Tue Apr 12 02:38:42 1994:

This response has been erased.



#35 of 52 by davel on Tue Apr 12 03:03:38 1994:

And mine shows "underscore" highlighted, and "highlight" no different
from the surrounding text.  One more reason not to bother.


#36 of 52 by gerund on Tue Apr 12 03:04:14 1994:

actually i got underline underlined and underline highlighted.


#37 of 52 by remmers on Tue Apr 12 03:26:14 1994:

After some further RingTFM and testing, I've determined that to
get ansi antics + underscoring + boldfacing, the pager should be.

      less -drE -P 'Press SPACEBAR for next screen, q to quit'

So perhaps we could have two standard pagers:

    noansi:
      less -dE -P 'Press SPACE etc etc'

    ansi:
      less -drE -P 'Press SPACE etc etc'

with noansi being the default but 'define pager ansi' being
available also.


#38 of 52 by rcurl on Tue Apr 12 04:34:42 1994:

Re #32. When it first appears I get underline underlined and nothing
special on highlight. I use pager more and when I scroll to the next
screen, and then scroll back in the buffer, the underlining of underline
has disappeared! 


#39 of 52 by kaplan on Tue Apr 12 04:51:34 1994:

My pager is "less -c -E" and I've reverted to my 1986 Procomm 2.4.2
terminal program.  I got highlights on both special words.  Are you 
sure your terminal is dumber than mine, popcorn?  Perhaps it's your pager.


Last 13 Responses and Response Form.
No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss