Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Oct 1998 11:18:58 -0700 (PDT)
From:      David Wolfskill <dhw@whistle.com>
To:        freebsd-questions@FreeBSD.ORG, philuint@erols.com
Subject:   Re: Question!
Message-ID:  <199810051818.LAA01009@pau-amma.whistle.com>
In-Reply-To: <36170FB1.BCAFDCDC@erols.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>Date: Sun, 04 Oct 1998 01:03:30 -0500
>From: Whee Kim <philuint@erols.com>

>    I found something and I want to fix this.  After a certain task,
>xterm doesn't echo what I type.  For example,

>    I did man setenv.  Then I read much as I needed, then I gave it
>interrupt signal to stop man setenv.

Don't do that (send an interrupt to a program that has turned off
echoing), or you're likely to get the result you just saw.

>Then it starts from there.  I type
>something, but it doesn't eacho on xterm.  What is wrong?

Well, when the pager program ("more" or "less", typically) started up,
it turned off echoing (since you don't need a "space" echoed when you
want to page down to the next page, for example).  It's ready to turn
echoing back on upon normal termination, but you prevented that, by
sending it a signal instead.

>How do I fix this?

First, don't do that.

Once it's happened, there are various things you can do:

* An xterm-specific approach:  hold the control key down & press the
  middle mouse button; one of the actions you can select is a reset
  (either soft, full, or with a "clear saved lines").

* A more general approach:  enter ^Jstty sane^J (where "^J" is
  control-J).

* An ambitious project:  Make source changes to the various pagers so
  they will turn echoing back on, even if they terminate as a result of
  someone doing something unexpected, such as send a signal.  (This is
  unlikely to work for folks who use "kill -9" though....)

> And one more thing.  I noticed that error messages don't show in xterm,
>but I see that it was preompted when I exit my X.  How do I configure so
>that the message that are generated show in corresponding xterm and
>command?

I'm a bit confused as to what error messages you're referring to in the
above.  Error messages from what program(s)?


david
-- 
David Wolfskill		UNIX System Administrator
dhw@whistle.com		voice: (650) 577-7158	pager: (650) 371-4621

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810051818.LAA01009>