Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2001 17:08:31 +0100
From:      Cliff Sarginson <cliff@raggedclown.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Control-C doesn't work with ssh
Message-ID:  <20011212160831.GF22772@raggedclown.net>
In-Reply-To: <87elm0tpq7.fsf@juil.domain>
References:  <Pine.BSF.4.21.0112120723500.65972-100000@wow.atlasta.net> <87elm0tpq7.fsf@juil.domain>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 12, 2001 at 06:36:32PM +0300, Ilya Martynov wrote:
> >> Have anybody know what can cause for not working Control-C in ssh?
> >> 
> >> It doesn't work anymore on my FreeBSD server if I login on it with
> >> ssh. For example I can't break 'tail -f /some/file' with Control-C. It
> >> just prints "^C" but doesn't kill the process. I have to suspend it
> >> with Control-Z and manually kill with 'kill %1'.
> 
> DR> try setting
> 
> DR> stty intr '^C'
> 
> DR> and see if it will then accept the break. 
> 
> DR> I keep one of these in my .login at all times (but then, i'm a tcsh user)
> 
> DR> stty crt -tostop erase '^H' kill '^U' intr '^C' status '^T'
> 
> It doesn't seem to help :(
> 
> BTW I've just found that actually ^C does work in 'tcsh' and 'csh' but
> doesn't work with 'bash' and 'sh'. It is very wierd. I've checked all
> files 'bash' or 'sh' can use (/etc/profile, $HOME/.profile, etc) but
> I've not found anything suspicious.
> 
Send the output of "stty -a" for the culprit and the good guy.

-- 
Regards
Cliff



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?20011212160831.GF22772>