From: yirgster on
bash doesn't recognize control-c, control-z

I'm on HP-UX.

Below is some output from stty -a. Obviously, control-z (susp) is
undefined. But neither @ (for kill) nor DEL (for intr) work.

How do I set these up? I know there's a way, but I've completely
forgotten and google didn't show an immediate result.

intr = DEL; quit = ^\; erase = ^H; kill = @
eof = ^D; eol = ^@; eol2 <undef>; swtch <undef>
stop = ^S; start = ^Q; susp <undef>; dsusp <undef>
From: Kenny McCormack on
In article <adf8d41f-bb55-4f24-941b-1fdb42e286b7(a)e34g2000pra.googlegroups.com>,
yirgster <yirg.kenya(a)gmail.com> wrote:
>bash doesn't recognize control-c, control-z
>
>I'm on HP-UX.
>
>Below is some output from stty -a. Obviously, control-z (susp) is
>undefined. But neither @ (for kill) nor DEL (for intr) work.
>
>How do I set these up? I know there's a way, but I've completely
>forgotten and google didn't show an immediate result.
>
>intr = DEL; quit = ^\; erase = ^H; kill = @
>eof = ^D; eol = ^@; eol2 <undef>; swtch <undef>
>stop = ^S; start = ^Q; susp <undef>; dsusp <undef>

stty intr "^C"

(That's shift/6 C, inside the quotes)

--
> No, I haven't, that's why I'm asking questions. If you won't help me,
> why don't you just go find your lost manhood elsewhere.

CLC in a nutshell.

From: Thomas 'PointedEars' Lahn on
yirgster wrote:

> bash doesn't recognize control-c, control-z
>
> I'm on HP-UX.
>
> Below is some output from stty -a. Obviously, control-z (susp) is
> undefined. But neither @ (for kill) nor DEL (for intr) work.

Perhaps you can set them up in /etc/inputrc? I'm on GNU/Linux
and have never used HP-UX before, so that's only a wild guess.


PointedEars
From: yirgster on
On Jun 18, 1:27 pm, gaze...(a)shell.xmission.com (Kenny McCormack)
wrote:
> In article <adf8d41f-bb55-4f24-941b-1fdb42e28...(a)e34g2000pra.googlegroups..com>,
>
> yirgster  <yirg.ke...(a)gmail.com> wrote:
> >bash doesn't recognize control-c, control-z
>
> >I'm on HP-UX.
>
> >Below is some output from stty -a. Obviously, control-z (susp) is
> >undefined. But neither @ (for kill) nor DEL (for intr) work.
>
> >How do I set these up? I know there's a way, but I've completely
> >forgotten and google didn't show an immediate result.
>
> >intr = DEL; quit = ^\; erase = ^H; kill = @
> >eof = ^D; eol = ^@; eol2 <undef>; swtch <undef>
> >stop = ^S; start = ^Q; susp <undef>; dsusp <undef>
>
> stty intr "^C"
>
> (That's shift/6 C, inside the quotes)
>
> --
>
> > No, I haven't, that's why I'm asking questions. If you won't help me,
> > why don't you just go find your lost manhood elsewhere.
>
> CLC in a nutshell.

Thanks! Works for both intr and susp. Wonder why they don't have these
on by default in HP-UX, a system I hardly work on but which we support.
From: Barry Margolin on
In article
<11d6cd11-c3fa-4021-b4bb-85a023faae2e(a)t26g2000prt.googlegroups.com>,
yirgster <yirg.kenya(a)gmail.com> wrote:

> On Jun 18, 1:27�pm, gaze...(a)shell.xmission.com (Kenny McCormack)
> wrote:
> > In article
> > <adf8d41f-bb55-4f24-941b-1fdb42e28...(a)e34g2000pra.googlegroups.com>,
> >
> > yirgster �<yirg.ke...(a)gmail.com> wrote:
> > >bash doesn't recognize control-c, control-z
> >
> > >I'm on HP-UX.
> >
> > >Below is some output from stty -a. Obviously, control-z (susp) is
> > >undefined. But neither @ (for kill) nor DEL (for intr) work.
> >
> > >How do I set these up? I know there's a way, but I've completely
> > >forgotten and google didn't show an immediate result.
> >
> > >intr = DEL; quit = ^\; erase = ^H; kill = @
> > >eof = ^D; eol = ^@; eol2 <undef>; swtch <undef>
> > >stop = ^S; start = ^Q; susp <undef>; dsusp <undef>
> >
> > stty intr "^C"
> >
> > (That's shift/6 C, inside the quotes)
> >
> > --
> >
> > > No, I haven't, that's why I'm asking questions. If you won't help me,
> > > why don't you just go find your lost manhood elsewhere.
> >
> > CLC in a nutshell.
>
> Thanks! Works for both intr and susp. Wonder why they don't have these
> on by default in HP-UX, a system I hardly work on but which we support.

It looks like HP-UX's defaults are the traditional one from the early
AT&T Unix days, rather than the settings that BSD copied from DEC
operating systems.

--
Barry Margolin, barmar(a)alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***