Skip to content

Commit

Permalink
Set default snippet height to 13 in the non-Web UI
Browse files Browse the repository at this point in the history
This avoids the “[More]” prompt in plain mode.
  • Loading branch information
dscorbett committed Jul 28, 2024
1 parent 85f1bff commit 271235d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 25 deletions.
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
16 changes: 10 additions & 6 deletions pygmentalion.t
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -256,7 +256,7 @@ gameMain: GameMainDef
<.p>You awake in your studio. Perhaps this is the day your prayers will
be answered.\b
<b><<versionInfo.name>></b>\n
Copyright 2014, 2022, 2023 <<versionInfo.byline>>\n
Copyright 2014, 2022, 2023, 2024 <<versionInfo.byline>>\n
Version <<versionInfo.version>>\b
<.notification>First-time players should type <<aHref('about',
'ABOUT')>>. Those unfamiliar with interactive fiction in general should
Expand All @@ -268,7 +268,7 @@ gameMain: GameMainDef
"<aboutbox><center>
<b><<versionInfo.name.toUpper()>></b>\b
Version <<versionInfo.version>>\b
Copyright 2014, 2022, 2023 <<versionInfo.byline>>
Copyright 2014, 2022, 2023, 2024 <<versionInfo.byline>>
</center></aboutbox>";
}
;
Expand Down Expand Up @@ -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));
Expand All @@ -2339,6 +2342,7 @@ transient iris: Deity
&& systemInfo(SysInfoOsName) == 'POSIX_UNIX_MSWINDOWS')
screenHeight = height;
return height;
#endif
}
coverArt
{
Expand Down Expand Up @@ -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
Expand Down
18 changes: 3 additions & 15 deletions tests/100%.out
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -392,26 +392,14 @@ 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.
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.

Expand Down
2 changes: 1 addition & 1 deletion tests/any%.out
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/high-score.out
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 271235d

Please sign in to comment.