From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22625 invoked from network); 29 Jun 2023 22:16:13 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 29 Jun 2023 22:16:13 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id F1E0C432B4; Fri, 30 Jun 2023 08:16:07 +1000 (AEST) Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by minnie.tuhs.org (Postfix) with ESMTPS id 7882F432B3 for ; Fri, 30 Jun 2023 08:15:59 +1000 (AEST) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-5728df0a7d9so12511017b3.1 for ; Thu, 29 Jun 2023 15:15:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688076958; x=1690668958; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=hH34svRS3Az7DosZD070ERbJ76HvBk7ZH/CRk4zghSw=; b=h8+/obCW2hBrI+f1o1hVcrr84FwPwtkqmr7pGa0iR6dsCel84DGs84ldfb6spZ4D6s CMe7azVvhgO1uoAYPaV6SrVDpsfLPADpUNVBm6wBW4eF3rz/PD6OjlQBwefeiP5n/kRd d4t/cPj7zP9+f2jnANcjQitI7oI+Z4mSrN5EYjfKc9IWf7Wr6Y6TyPt+wOpu5iSsC52m joFlIChmuyNQvWJHtgxV8Tf5HbmhZ0LVtfu9qWEroydVT/nPr3NZF5LpYuY2i51AvUY7 /IohU/WwEBT23R6SPu53YGczNsDTFI8UCDI6ajjUuxzPoqBdzGw2tJkTMO4ylgdJdGzT sCUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688076958; x=1690668958; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hH34svRS3Az7DosZD070ERbJ76HvBk7ZH/CRk4zghSw=; b=P1k5LtnevcoiRg08zHgadbKqnPNdmtyP+V/og1vy4dl9ghV2TtNmjf5/7PZSChwVpD ZWyrLq1OhE0K4GLzlsgywV0hElimjqa7v3//FLtO16KEcaiXjiVX9gDym/RZ6t6N+Ou9 eaZ5lbwXtN+Tmelnf+09224H5KjhCwap3uzkJR9LlV5c0DIokJBDVGMVx8o5Mw/WVndF scVwuUsixvO+1Qq/pBq+TCHK2J/akxIqCsX6lDASGRRbX7xX+Vy8LLDM5Nmv/1hV5V6w 72reFaBcvklhBYMeVkTXlTlB3EplQrKLAHTr4jrxIEqRykuSsi/yZek5Z93mFx3+wlWC qFzw== X-Gm-Message-State: ABy/qLbxn1mgnCVb/wz/YALiFvnwtP1Z6o/Ff1eLN0y4cb0pQ58NwdJa sAAud+DA1vmkwDCjtY3YDMYfMUC3JLHkGD2hxTLoTwm1Syo= X-Google-Smtp-Source: APBJJlFeo3gdXKK5Sh81/ErweOsIrY1099HfQZk9SUcyo2jEG0mFsUKpTMnDVdwNxULY2a8zr1L7aBmFl1J/u0sc33A= X-Received: by 2002:a81:6dcc:0:b0:56d:9e2:7d9e with SMTP id i195-20020a816dcc000000b0056d09e27d9emr576680ywc.21.1688076958111; Thu, 29 Jun 2023 15:15:58 -0700 (PDT) MIME-Version: 1.0 From: Noel Hunt Date: Fri, 30 Jun 2023 08:15:32 +1000 Message-ID: To: The Unix Heritage Society Content-Type: text/plain; charset="UTF-8" Message-ID-Hash: G6EXCDRGXX22ONQQZEBXQOFNBNMPNHHJ X-Message-ID-Hash: G6EXCDRGXX22ONQQZEBXQOFNBNMPNHHJ X-MailFrom: noel.hunt@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Jerq menuhit/mhit List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The standard routine for drawing menus on the jerq was 'menuhit'. Items in the menu were centered, and the menu was scrollable when a certain threshold number of items was reached, and in addition, when the mouse pointer was in the top (bottom) item of the menu and it was possible to scroll in the appropriate direction, the menu was scrolled up or down 1 line. The structure associated with these menus is 'Menu'. There was however another menu-drawing routine, 'mhit', the menus drawn by this being hierarchical, the structure NMenu, which no longer contained text strings but an array of NItems. NMenus also had provision for 'help' text to be displayed, a simple string displayed on the screen, when button 1 was pressed while an entry in the menu was selected. The earliest version in the Eight Edition jerq code, also has one function in the NMenu structure which is called when the mouse pointer invokes a hierarchical menu. By Ninth Edition this has been expanded, with 3 functions, one as above, one invoked when an item is selected ('hit') and one when a hierarchical menu is exited. In the jerq code directories, under 'lib/jj', is a small 'ms' document, 'A Library of Goo for the 5620', which lists routines available in the library, and their authors. Andrew Hume is listed as the author of 'mhit'. Are there examples of code using these three menu functions ('dfn', 'hfn', 'bfn')? There seems to have been little interest in hierarchical menus at the labs, their use was quite limited. I found a program in the Tenth Edition archive, 'bubble' (which seems to be a program for displaying the three-dimensional structure of molecules) which uses them. 'samuel' made heavy use of them, including use of the 'hit' function, and Tom Cargill used basically the same code in 'pads' wherein the routine was called 'scripthit'. The plain 'menuhit' survived into Plan9, but as far as I know, it is only used by 'sam'.