Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Time is money and money can't buy you love and I love your outfit" -- T.H.U.N.D.E.R. #1


computers / comp.os.vms / Re: F6 and ctrl-C

SubjectAuthor
* F6 and ctrl-CJan-Erik Söderholm
+* Re: F6 and ctrl-CStephen Hoffman
|`- Re: F6 and ctrl-CJan-Erik Söderholm
`* Re: F6 and ctrl-CDave Froble
 `* Re: F6 and ctrl-CJoukj
  `* Re: F6 and ctrl-CArne Vajhøj
   +- Re: F6 and ctrl-CJan-Erik Söderholm
   `* Re: F6 and ctrl-CJoukj
    `- Re: F6 and ctrl-CArne Vajhøj

1
F6 and ctrl-C

<sc8274$kgh$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=15804&group=comp.os.vms#15804

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: F6 and ctrl-C
Date: Fri, 9 Jul 2021 01:37:08 +0200
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <sc8274$kgh$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 8 Jul 2021 23:37:09 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="49966f3f113aa8712bf602898aa2ed64";
logging-data="21009"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+elDFrYWelHKQG+gkKiAwf"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:aZvqX/TP3t/Q9cv6Um/hSRCHwhI=
Content-Language: sv
X-Mozilla-News-Host: news://news.eternal-september.org:119
 by: Jan-Erik Söderholm - Thu, 8 Jul 2021 23:37 UTC

Hi.

Maybe a silly question...

It seems as PF6 and PF10 are linked to Ctrl/C and Ctrl/Z.
At least as it says in the OpenVMS User Manual:

Ctrl/Z and F10 Signals the end of the file for data entered from the terminal.

Ctrl/Y, Ctrl/C and F6 Interrupts command processing. You can disable
Ctrl/Y with the command SET NOCONTROL=Y.

I have found different ways to disable Ctrl/Y and Ctrl/T, but
what about Ctrl/C? We are looking at replacing our old screen
mgr tool (that doesn't support the 132 mode that we need) with
the built-in SCREEN and DISPLAY exensions in Cobol.

But currently, pressing PF6 just prints the usual "Interrupt"
and exists the application. How to prevent that and let the
PF6 codes through to the application?

Doing SET NOCONT=Y still displays "Interrupt", but it doesn't exit
the app. Setting the account to /flags=restricted does the same.

I want to have PF6 available as a function key in the application...

And also, I do not seem to get the ESC codes 11~ to 14~ through.
They comes from the F1-F4 och the PC keyboard...

Any ideas?

Jan-Erik.

Re: F6 and ctrl-C

<sc84a8$3fv$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=15805&group=comp.os.vms#15805

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: F6 and ctrl-C
Date: Thu, 8 Jul 2021 20:12:57 -0400
Organization: HoffmanLabs LLC
Lines: 33
Message-ID: <sc84a8$3fv$1@dont-email.me>
References: <sc8274$kgh$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="8116de5cebd438f14a018f1714137d0e";
logging-data="3583"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/H2Kk3DXawGvzuOwcFwGwzG7tiYdcRy9I="
User-Agent: Unison/2.2
Cancel-Lock: sha1:uvUH/PS+q6a2BqvDiFDWYAVNa7U=
 by: Stephen Hoffman - Fri, 9 Jul 2021 00:12 UTC

On 2021-07-08 23:37:08 +0000, Jan-Erik Sderholm said:

> I want to have PF6 available as a function key in the application...

F6 sends its expected function key control sequence, and the terminal
driver intercepts and converts that to ^C, and SET TERMINAL
/NOLINE_EDIT is one way to disable that driver conversion.

I don't recall if there's a (more) targeted means to disable (just) F6
conversion within the terminal driver itself, short of patching the
driver or such, and, yes, /NOLINE_EDIT is a fairly large hammer.

Or tweak the terminal emulator to send something other than (in eight
bit) CSI 1 7.

> And also, I do not seem to get the ESC codes 11~ to 14~ through.
> They comes from the F1-F4 och the PC keyboard...

VT terminals treat the first clump of DEC OpenVMS LK-layout function
keys as local, so most of OpenVMS tends not to expect to ever see F1,
F2, F3, F4, or F5.

> Any ideas?

For some of the usual code for fielding ^C and ^Y, see:
https://www.digiater.nl/openvms/freeware/v80/hoffman_examples/lib$xxable_ctrl.c

--
Pure Personal Opinion | HoffmanLabs LLC

Re: F6 and ctrl-C

<sc85q2$b0p$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=15806&group=comp.os.vms#15806

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: F6 and ctrl-C
Date: Thu, 8 Jul 2021 20:39:36 -0400
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <sc85q2$b0p$1@dont-email.me>
References: <sc8274$kgh$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 9 Jul 2021 00:38:26 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8332ea4c6f96027b426cb8a1c12d721f";
logging-data="11289"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19v1JzHQ59lIEa5/mnKzt+MUt7ECJ6YvEg="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:O/j4atUFgX6vZk/LFo9h+h2GTDU=
In-Reply-To: <sc8274$kgh$1@dont-email.me>
 by: Dave Froble - Fri, 9 Jul 2021 00:39 UTC

On 7/8/2021 7:37 PM, Jan-Erik Söderholm wrote:
> Hi.
>
> Maybe a silly question...
>
> It seems as PF6 and PF10 are linked to Ctrl/C and Ctrl/Z.
> At least as it says in the OpenVMS User Manual:
>
> Ctrl/Z and F10 Signals the end of the file for data entered from the
> terminal.
>
> Ctrl/Y, Ctrl/C and F6 Interrupts command processing. You can disable
> Ctrl/Y with the command SET NOCONTROL=Y.

Basic allows ^C to be trapped and handled in a program. Perhaps Cobol
also has this capability.

As Steve sometimes mentions, terse questions beget terse answers. Can
you be more specific on how you're handling the terminal I/O ?

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

Re: F6 and ctrl-C

<sc8qo0$1tqv$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=15809&group=comp.os.vms#15809

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!HQZo29s6y2TCuaP5Uiq8Ow.user.gioia.aioe.org.POSTED!not-for-mail
From: jou...@hrem.nano.tudelft.nl (Joukj)
Newsgroups: comp.os.vms
Subject: Re: F6 and ctrl-C
Date: Fri, 09 Jul 2021 08:35:44 +0200
Organization: Aioe.org NNTP Server
Lines: 23
Message-ID: <sc8qo0$1tqv$1@gioia.aioe.org>
References: <sc8274$kgh$1@dont-email.me> <sc85q2$b0p$1@dont-email.me>
NNTP-Posting-Host: HQZo29s6y2TCuaP5Uiq8Ow.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (X11; U; OpenVMS COMPAQ_Professional_Workstation; en-US; rv:1.8.1.17) Gecko/20081029 SeaMonkey/1.1.12
X-Notice: Filtered by postfilter v. 0.9.2
 by: Joukj - Fri, 9 Jul 2021 06:35 UTC

Dave Froble wrote:
> On 7/8/2021 7:37 PM, Jan-Erik Söderholm wrote:
>> Hi.
>>
>> Maybe a silly question...
>>
>> It seems as PF6 and PF10 are linked to Ctrl/C and Ctrl/Z.
>> At least as it says in the OpenVMS User Manual:
>>
>> Ctrl/Z and F10 Signals the end of the file for data entered from the
>> terminal.
>>
>> Ctrl/Y, Ctrl/C and F6 Interrupts command processing. You can disable
>> Ctrl/Y with the command SET NOCONTROL=Y.
>
> Basic allows ^C to be trapped and handled in a program. Perhaps Cobol
> also has this capability.
>
> As Steve sometimes mentions, terse questions beget terse answers. Can
> you be more specific on how you're handling the terminal I/O ?
>
All languages should be able to do it by a call to sys$qiow

Re: F6 and ctrl-C

<sc931q$mk7$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=15810&group=comp.os.vms#15810

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: F6 and ctrl-C
Date: Fri, 9 Jul 2021 10:57:30 +0200
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <sc931q$mk7$1@dont-email.me>
References: <sc8274$kgh$1@dont-email.me> <sc84a8$3fv$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 9 Jul 2021 08:57:30 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="49966f3f113aa8712bf602898aa2ed64";
logging-data="23175"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WCuSp4gEVdf+KEk618ClW"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:CdMcEdAu9GXmJBWV+FsKPPS+GoU=
In-Reply-To: <sc84a8$3fv$1@dont-email.me>
Content-Language: sv
 by: Jan-Erik Söderholm - Fri, 9 Jul 2021 08:57 UTC

Den 2021-07-09 kl. 02:12, skrev Stephen Hoffman:
> On 2021-07-08 23:37:08 +0000, Jan-Erik Sderholm said:
>
>> I want to have PF6 available as a function key in the application...
>
> F6 sends its expected function key control sequence, and the terminal
> driver intercepts and converts that to ^C, and SET TERMINAL /NOLINE_EDIT is
> one way to disable that driver conversion.
>
> I don't recall if there's a (more) targeted means to disable (just) F6
> conversion within the terminal driver itself, short of patching the driver
> or such, and, yes, /NOLINE_EDIT is a fairly large hammer.
>
> Or tweak the terminal emulator to send something other than (in eight bit)
> CSI 1 7.
>
>> And also, I do not seem to get the ESC codes 11~ to 14~ through.
>> They comes from the F1-F4 och the PC keyboard...
>
> VT terminals treat the first clump of DEC OpenVMS LK-layout function keys
> as local, so most of OpenVMS tends not to expect to ever see F1, F2, F3,
> F4, or F5.
>
>> Any ideas?
>
> For some of the usual code for fielding ^C and ^Y, see:
> https://www.digiater.nl/openvms/freeware/v80/hoffman_examples/lib$xxable_ctrl.c
>
>
>
>

Thanks! In todays application we use a customer unique DEC-written
screen tool (in Fortran). We do have the sources so we might search
it and see if it does something special.

It might very well be that it does some setup against the term driver.

We are rewriting one application from 80 to 132 chars, and that old
DEC tool does not support anything but 80 chars.

We can of course rewrite it to not use F1-F4 at all. These are today
used as "one line down/up" and "one screen forward/back". But that
can also be done with the "arrow down/up" and "page down/up" keys
from a modern kayboard. That has already been tested.

Dave asked:

> Can you be more specific on how you're handling the terminal I/O

The "user" just logs in as usual (happens to be telnet here), then
just RUN the EXE that is the application. So all I/O is done through
terminal driver and the usual sys$input and sys$output from Cobol.
Cobol uses DISPLAY and ACCEPT together with the features to SCREEN's
within the DATA DEFINITION section. Quite neat, actually...

I can see the ESC sequences from F1-F4 on the network [11~ to [14~
but they are for some unknown reason never seen by the Cobol code.
It is exactly the same network format as the other like [18~ for F7.

Re: F6 and ctrl-C

<sc9h8c$a0d$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=15811&group=comp.os.vms#15811

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!5Avcpu9drOe6MAssky6/+Q.user.gioia.aioe.org.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: F6 and ctrl-C
Date: Fri, 9 Jul 2021 08:59:55 -0400
Organization: Aioe.org NNTP Server
Lines: 24
Message-ID: <sc9h8c$a0d$1@gioia.aioe.org>
References: <sc8274$kgh$1@dont-email.me> <sc85q2$b0p$1@dont-email.me>
<sc8qo0$1tqv$1@gioia.aioe.org>
NNTP-Posting-Host: 5Avcpu9drOe6MAssky6/+Q.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Arne Vajhøj - Fri, 9 Jul 2021 12:59 UTC

On 7/9/2021 2:35 AM, Joukj wrote:
> Dave Froble wrote:
>> On 7/8/2021 7:37 PM, Jan-Erik Söderholm wrote:
>>> It seems as PF6 and PF10 are linked to Ctrl/C and Ctrl/Z.
>>> At least as it says in the OpenVMS User Manual:
>>>
>>> Ctrl/Z and F10 Signals the end of the file for data entered from the
>>> terminal.
>>>
>>> Ctrl/Y, Ctrl/C and F6 Interrupts command processing. You can disable
>>> Ctrl/Y with the command SET NOCONTROL=Y.
>>
>> Basic allows ^C to be trapped and handled in a program.  Perhaps Cobol
>> also has this capability.
>>
>> As Steve sometimes mentions, terse questions beget terse answers.  Can
>> you be more specific on how you're handling the terminal I/O ?
>>
> All languages should be able to do it by a call to sys$qiow

lib$disable_ctrl and sys$qiow with IO$_SETMODE|IO$M_CTRLCAST|IO$M_CTRLYAST ?

Arne

Re: F6 and ctrl-C

<sc9of5$mk7$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=15814&group=comp.os.vms#15814

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: F6 and ctrl-C
Date: Fri, 9 Jul 2021 17:03:01 +0200
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <sc9of5$mk7$2@dont-email.me>
References: <sc8274$kgh$1@dont-email.me> <sc85q2$b0p$1@dont-email.me>
<sc8qo0$1tqv$1@gioia.aioe.org> <sc9h8c$a0d$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 9 Jul 2021 15:03:01 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="49966f3f113aa8712bf602898aa2ed64";
logging-data="23175"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gs4Ivc0kpS/jDQjymO19q"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:zTn9FgzUm9SQzPe2nIYp8RJ9tsw=
In-Reply-To: <sc9h8c$a0d$1@gioia.aioe.org>
Content-Language: sv
 by: Jan-Erik Söderholm - Fri, 9 Jul 2021 15:03 UTC

Den 2021-07-09 kl. 14:59, skrev Arne Vajhøj:
> On 7/9/2021 2:35 AM, Joukj wrote:
>> Dave Froble wrote:
>>> On 7/8/2021 7:37 PM, Jan-Erik Söderholm wrote:
>>>> It seems as PF6 and PF10 are linked to Ctrl/C and Ctrl/Z.
>>>> At least as it says in the OpenVMS User Manual:
>>>>
>>>> Ctrl/Z and F10 Signals the end of the file for data entered from the
>>>> terminal.
>>>>
>>>> Ctrl/Y, Ctrl/C and F6 Interrupts command processing. You can disable
>>>> Ctrl/Y with the command SET NOCONTROL=Y.
>>>
>>> Basic allows ^C to be trapped and handled in a program.  Perhaps Cobol
>>> also has this capability.
>>>
>>> As Steve sometimes mentions, terse questions beget terse answers.  Can
>>> you be more specific on how you're handling the terminal I/O ?
>>>
>> All languages should be able to do it by a call to sys$qiow
>
> lib$disable_ctrl and sys$qiow with IO$_SETMODE|IO$M_CTRLCAST|IO$M_CTRLYAST ?
>
> Arne
>

I think that we made a quick solution by running the application
from a short COM file where we do a few set term commands...
It works "good enough" for now...

Thanks everyone for your comments.

Jan-Erik.

Re: F6 and ctrl-C

<schgpq$ru1$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=15840&group=comp.os.vms#15840

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!HQZo29s6y2TCuaP5Uiq8Ow.user.gioia.aioe.org.POSTED!not-for-mail
From: jou...@hrem.nano.tudelft.nl (Joukj)
Newsgroups: comp.os.vms
Subject: Re: F6 and ctrl-C
Date: Mon, 12 Jul 2021 15:41:12 +0200
Organization: Aioe.org NNTP Server
Lines: 54
Message-ID: <schgpq$ru1$1@gioia.aioe.org>
References: <sc8274$kgh$1@dont-email.me> <sc85q2$b0p$1@dont-email.me> <sc8qo0$1tqv$1@gioia.aioe.org> <sc9h8c$a0d$1@gioia.aioe.org>
NNTP-Posting-Host: HQZo29s6y2TCuaP5Uiq8Ow.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (X11; U; OpenVMS COMPAQ_Professional_Workstation; en-US; rv:1.8.1.17) Gecko/20081029 SeaMonkey/1.1.12
X-Notice: Filtered by postfilter v. 0.9.2
 by: Joukj - Mon, 12 Jul 2021 13:41 UTC

Arne Vajhøj wrote:
> On 7/9/2021 2:35 AM, Joukj wrote:
>> Dave Froble wrote:
>>> On 7/8/2021 7:37 PM, Jan-Erik Söderholm wrote:
>>>> It seems as PF6 and PF10 are linked to Ctrl/C and Ctrl/Z.
>>>> At least as it says in the OpenVMS User Manual:
>>>>
>>>> Ctrl/Z and F10 Signals the end of the file for data entered from the
>>>> terminal.
>>>>
>>>> Ctrl/Y, Ctrl/C and F6 Interrupts command processing. You can disable
>>>> Ctrl/Y with the command SET NOCONTROL=Y.
>>>
>>> Basic allows ^C to be trapped and handled in a program. Perhaps
>>> Cobol also has this capability.
>>>
>>> As Steve sometimes mentions, terse questions beget terse answers.
>>> Can you be more specific on how you're handling the terminal I/O ?
>>>
>> All languages should be able to do it by a call to sys$qiow
>
> lib$disable_ctrl and sys$qiow with
> IO$_SETMODE|IO$M_CTRLCAST|IO$M_CTRLYAST ?
>
> Arne
>
I used only sys$qiow to catch CTRL-C and run my own handler.(see fortran
code I wrote over 30 years ago)

include '($iodef)/list'
structure /iostat_block/
integer*2 iostat
end structure
record /iostat_block/ iosb
! integer status , code
integer*2 input_chan
! integer ( kind = kind_i4 ) , external :: sys$assign , sys$qiow
! ! the handler routine
external ctrlc_ast
! status = sys$assign( 'sys$input' , input_chan , , )
code = io$_setmode .or. io$m_ctrlcast
status = sys$qiow( , %val( input_chan ) , %val( code ) ,iosb &
, , , &
ctrlc_ast , , , , , )
if(.not. status) call lib$signal(%val(status))
if(.not.iosb.iostat) call lib$signal(%val(iosb.iostat))

Jouk

Re: F6 and ctrl-C

<sct9fd$1il$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=15923&group=comp.os.vms#15923

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!5Avcpu9drOe6MAssky6/+Q.user.gioia.aioe.org.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: F6 and ctrl-C
Date: Fri, 16 Jul 2021 20:49:51 -0400
Organization: Aioe.org NNTP Server
Lines: 55
Message-ID: <sct9fd$1il$1@gioia.aioe.org>
References: <sc8274$kgh$1@dont-email.me> <sc85q2$b0p$1@dont-email.me>
<sc8qo0$1tqv$1@gioia.aioe.org> <sc9h8c$a0d$1@gioia.aioe.org>
<schgpq$ru1$1@gioia.aioe.org>
NNTP-Posting-Host: 5Avcpu9drOe6MAssky6/+Q.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Arne Vajhøj - Sat, 17 Jul 2021 00:49 UTC

On 7/12/2021 9:41 AM, Joukj wrote:
> Arne Vajhøj wrote:
>> On 7/9/2021 2:35 AM, Joukj wrote:
>>> Dave Froble wrote:
>>>> On 7/8/2021 7:37 PM, Jan-Erik Söderholm wrote:
>>>>> It seems as PF6 and PF10 are linked to Ctrl/C and Ctrl/Z.
>>>>> At least as it says in the OpenVMS User Manual:
>>>>>
>>>>> Ctrl/Z and F10 Signals the end of the file for data entered from the
>>>>> terminal.
>>>>>
>>>>> Ctrl/Y, Ctrl/C and F6 Interrupts command processing. You can disable
>>>>> Ctrl/Y with the command SET NOCONTROL=Y.
>>>>
>>>> Basic allows ^C to be trapped and handled in a program.  Perhaps
>>>> Cobol also has this capability.
>>>>
>>>> As Steve sometimes mentions, terse questions beget terse answers.
>>>> Can you be more specific on how you're handling the terminal I/O ?
>>>>
>>> All languages should be able to do it by a call to sys$qiow
>>
>> lib$disable_ctrl and sys$qiow with
>> IO$_SETMODE|IO$M_CTRLCAST|IO$M_CTRLYAST ?

> I used only sys$qiow to catch CTRL-C and run my own handler.(see fortran
> code I wrote over 30 years ago)
>
>       include '($iodef)/list'
>       structure /iostat_block/
>         integer*2 iostat
>       end structure
>       record /iostat_block/ iosb
> !
>       integer status , code
>       integer*2 input_chan
> !
>       integer ( kind = kind_i4 ) , external :: sys$assign , sys$qiow
> !
> ! the handler routine
>       external ctrlc_ast
> !
>       status = sys$assign( 'sys$input' , input_chan , , )
>       code = io$_setmode .or. io$m_ctrlcast
>       status = sys$qiow( , %val( input_chan ) , %val( code ) ,iosb &
>              , , , &
>              ctrlc_ast , , , , , )
>       if(.not. status) call lib$signal(%val(status))
>       if(.not.iosb.iostat) call lib$signal(%val(iosb.iostat))

lib$disable_ctrl is only needed for CTRL/Y - it is not
needed for CTRL/C.

Arne

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor