From 271235d24deb2774a1a09b90e344fce41cd6d184 Mon Sep 17 00:00:00 2001 From: David Corbett Date: Sun, 28 Jul 2024 13:38:19 -0400 Subject: [PATCH] Set default snippet height to 13 in the non-Web UI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids the “[More]” prompt in plain mode. --- LICENSE | 4 ++-- pygmentalion.t | 16 ++++++++++------ tests/100%.out | 18 +++--------------- tests/any%.out | 2 +- tests/high-score.out | 2 +- 5 files changed, 17 insertions(+), 25 deletions(-) diff --git a/LICENSE b/LICENSE index 664d4f0..12a485d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ Files: * -Copyright: Copyright 2022, 2023 David Corbett +Copyright: Copyright 2022, 2023, 2024 David Corbett License: Apache-2.0 Files: arrheta.txt @@ -21,7 +21,7 @@ Copyright: Copyright (c) 2015-2022, Renzhi Li (aka. Belleve Invis, belleve@typeo License: OFL-1.1-Iosevka Files: pygmentalion.t -Copyright: Copyright 2014, 2022, 2023 David Corbett +Copyright: Copyright 2014, 2022, 2023, 2024 David Corbett License: Apache-2.0 OR BSD-2-Clause License: Apache-2.0 diff --git a/pygmentalion.t b/pygmentalion.t index 0c61453..3d4eec3 100644 --- a/pygmentalion.t +++ b/pygmentalion.t @@ -3,7 +3,7 @@ // SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause /* -Copyright 2014, 2022, 2023 David Corbett +Copyright 2014, 2022, 2023, 2024 David Corbett Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ limitations under the License. */ /* -Copyright 2014, 2022, 2023 David Corbett +Copyright 2014, 2022, 2023, 2024 David Corbett Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are @@ -256,7 +256,7 @@ gameMain: GameMainDef <.p>You awake in your studio. Perhaps this is the day your prayers will be answered.\b <>\n - Copyright 2014, 2022, 2023 <>\n + Copyright 2014, 2022, 2023, 2024 <>\n Version <>\b <.notification>First-time players should type <>. Those unfamiliar with interactive fiction in general should @@ -268,7 +268,7 @@ gameMain: GameMainDef "
<>\b Version <>\b - Copyright 2014, 2022, 2023 <> + Copyright 2014, 2022, 2023, 2024 <>
"; } ; @@ -2326,8 +2326,11 @@ transient iris: Deity file = nil screenHeight() { +#ifdef TADS_INCLUDE_NET + return 25; +#else if (!systemInfo(SysInfoBanners)) - return 25; + return 13; local probe = bannerCreate(nil, BannerAfter, statuslineBanner.handle_, BannerTypeText, BannerAlignTop, 100, BannerSizePercent, 0); local height = min(100, max(10, bannerGetInfo(probe)[3] - 12)); @@ -2339,6 +2342,7 @@ transient iris: Deity && systemInfo(SysInfoOsName) == 'POSIX_UNIX_MSWINDOWS') screenHeight = height; return height; +#endif } coverArt { @@ -3178,7 +3182,7 @@ VerbRule(License) DefineSystemAction(License) execSystemAction { - "Copyright 2014, 2022, 2023 David Corbett + "Copyright 2014, 2022, 2023, 2024 David Corbett <.p>Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/tests/100%.out b/tests/100%.out index c08ce3a..90db19b 100644 --- a/tests/100%.out +++ b/tests/100%.out @@ -12,7 +12,7 @@ You awake in your studio. Perhaps this is the day your prayers will be answered. Pygmentalion -Copyright 2014, 2022, 2023 by David Corbett +Copyright 2014, 2022, 2023, 2024 by David Corbett Version 2 (First-time players should type ABOUT. Those unfamiliar with interactive @@ -34,7 +34,7 @@ was loosely inspired by a section of “Le Roman de la Rose” 31ce76482afe/). For license and copyright information, type LICENSE. >license -Copyright 2014, 2022, 2023 David Corbett +Copyright 2014, 2022, 2023, 2024 David Corbett Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -392,7 +392,7 @@ and coalesce, forming words. // SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause /* -Copyright 2014, 2022, 2023 David Corbett +Copyright 2014, 2022, 2023, 2024 David Corbett Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -400,18 +400,6 @@ You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -/* -Copyright 2014, 2022, 2023 David Corbett - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are The rainbow fades and your vision clears. diff --git a/tests/any%.out b/tests/any%.out index 8db2914..c116f22 100644 --- a/tests/any%.out +++ b/tests/any%.out @@ -12,7 +12,7 @@ You awake in your studio. Perhaps this is the day your prayers will be answered. Pygmentalion -Copyright 2014, 2022, 2023 by David Corbett +Copyright 2014, 2022, 2023, 2024 by David Corbett Version 2 (First-time players should type ABOUT. Those unfamiliar with interactive diff --git a/tests/high-score.out b/tests/high-score.out index 0d1c9d4..a9c9535 100644 --- a/tests/high-score.out +++ b/tests/high-score.out @@ -12,7 +12,7 @@ You awake in your studio. Perhaps this is the day your prayers will be answered. Pygmentalion -Copyright 2014, 2022, 2023 by David Corbett +Copyright 2014, 2022, 2023, 2024 by David Corbett Version 2 (First-time players should type ABOUT. Those unfamiliar with interactive