Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #125978

Re: Correct way to detect F1

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: Correct way to detect F1
Date 2018-01-29 20:01 -0800
Organization None to speak of
Message-ID <lnk1w08065.fsf@kst-u.example.com> (permalink)
References <800430537@f122.n1.z21.fsxnet> <p4mpqh$1jeq$1@gioia.aioe.org> <ln4ln4a87v.fsf@kst-u.example.com> <p4o27d$s3n$1@dont-email.me> <0omv6dhece0dqu53n2crr4jap2rq52ic5l@4ax.com>

Show all headers | View raw


Robert Wessel <robertwessel2@yahoo.com> writes:
> On Mon, 29 Jan 2018 21:03:41 -0000 (UTC), ais523 <ais523@nethack4.org>
> wrote:
>>Keith Thompson wrote:
>>> The sequence sent by F1 can vary depending on what kind of terminal
>>> you're using, though (almost?) all terminal emulators these days
>>> use VT100-like sequences by default.
>>
>>This is a problem with F1 in particular, though. The VT100's physical F1
>>key is interpreted directly by the terminal itself and can't be
>>intercepted by software. As a result, terminal emulators that use
>>VT100-like sequences don't generally agree on what code should be used
>>for F1 (because they can't just copy from a VT100 as it didn't have one).
>>
>>Note also that similarly to a VT100, some terminal emulators will use F1
>>for their own purposes (e.g. showing a help screen), rather than passing
>>it on to an application running inside the terminal emulator.
>
> Well a VT220 doesn't have an F1 key at all, the first key on the top
> row is "hold screen".  And none of the first five keys on the top row
> are really programmable, as are the sixth (and subsequent) keys (which
> start with F6).
>
> I have seen emulators map the PC keyboard's F1 key to the VT220 "Help"
> key, which is a user definable key often called F15.

The Wikipedia article on the VT220 has a photo of one with a keyboard
that definitely has a key labeled "F1".  I think the label strip might
be replaceable.  I'll take your word for the rest of it, though.

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Correct way to detect F1 shinobi@f122.n1.z21.fsxnet (shinobi) - 2018-01-29 03:44 +1200
  Re: Correct way to detect F1 Lorinczy Zsigmond <zsiga@nospam.for.me> - 2018-01-29 10:34 +0100
    Re: Correct way to detect F1 Keith Thompson <kst-u@mib.org> - 2018-01-29 09:24 -0800
      Re: Correct way to detect F1 "James R. Kuyper" <jameskuyper@verizon.net> - 2018-01-29 12:43 -0500
        Re: Correct way to detect F1 scott@slp53.sl.home (Scott Lurndal) - 2018-01-29 18:20 +0000
      Re: Correct way to detect F1 ais523 <ais523@nethack4.org> - 2018-01-29 21:03 +0000
        Re: Correct way to detect F1 Robert Wessel <robertwessel2@yahoo.com> - 2018-01-29 20:47 -0600
          Re: Correct way to detect F1 Keith Thompson <kst-u@mib.org> - 2018-01-29 20:01 -0800
            Re: Correct way to detect F1 Robert Wessel <robertwessel2@yahoo.com> - 2018-01-29 22:43 -0600
  Re: Correct way to detect F1 Ike Naar <ike@iceland.freeshell.org> - 2018-01-29 10:26 +0000
  Re: Correct way to detect F1 "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2018-01-30 14:14 +0800
  Re: Correct way to detect F1 luser droog <luser.droog@gmail.com> - 2018-01-30 09:26 -0800
  Re: Correct way to detect F1 bartc <bc@freeuk.com> - 2018-01-30 18:39 +0000
  Re: Correct way to detect F1 Egor <egor@ruby.local> - 2018-02-08 14:21 +0200
    Re: Correct way to detect F1 shinobi@f153.n1.z21.fsxnet (shinobi) - 2018-02-08 16:41 +1200
      Re: Correct way to detect F1 Jorgen Grahn <grahn+nntp@snipabacken.se> - 2018-02-08 20:43 +0000
        Re: Correct way to detect F1 Keith Thompson <kst-u@mib.org> - 2018-02-08 13:13 -0800
          Re: Correct way to detect F1 scott@slp53.sl.home (Scott Lurndal) - 2018-02-08 22:14 +0000
    Re: Correct way to detect F1 Keith Thompson <kst-u@mib.org> - 2018-02-08 10:29 -0800
      Re: Correct way to detect F1 Egor <egor@ruby.local> - 2018-02-09 15:05 +0200
        Re: Correct way to detect F1 Jorgen Grahn <grahn+nntp@snipabacken.se> - 2018-02-09 17:30 +0000
        Re: Correct way to detect F1 Keith Thompson <kst-u@mib.org> - 2018-02-09 10:06 -0800
    Re: Correct way to detect F1 luser droog <luser.droog@gmail.com> - 2018-02-08 16:31 -0800

csiph-web