[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: telnet vs ^Z



On Thu, Jun 29, 2000 at 11:51:35AM -0700, Jakob 'sparky' Kaivo wrote:
> Will Trillich <will@serensoft.com> writes:
> 
> > i've got linux in the basement, cranking and serving
> > like a dream. to administer, i'm upstairs and i get
> > in via telnet on my local 192.168.*.* intranet.
> > 
> > on the console (linux keyboard/mouse/monitor) i can
> > use ^Z to suspend a foreground job, just like in the
> > documentation.
> > 
> > but ^Z seems to be ignored when i get in via telnet
> > even tho stty shows 'susp = ^Z'.
> > 
> > now in know that tcsh has command-line settings that
> > can override stty items, such as '^W = werase' but
> > there's nothing i can see (perhaps i'm blind) that
> > would alter ^Z for suspend.
> > 
> > what's interfering?
> 
> telnet is. Before connecting, telnet is likely setting the signal
> handler for SIGSTOP to SIG_IGN so that it can pass the suspend
> character (^Z) to the romte connection. To suspend telnet, hit th
> escape character (^] by default) and type z (enter).

whoops. i didn't include enough info.

i'm not trying to suspend my local telnet session
(which i'm running from my mac os box). i'm trying
to suspend, say, the remote 'vi' or 'mutt' session.
my telnet does send every keystroke (except for
mac-specific command-key combos) to linux.

when i type control-Z in full-screen environment
such as vi or mutt, i see my telnet display blank
and then reappear in a fraction of a second
(kinda like ^L in vi, but ^L does a full redraw
so fast you often don't even see the blink).

..

so when i telnet in from remote, how do i get
^Z to suspend the local linux process?



Reply to: