summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Kurtz <seankurtz75@gmail.com>2026-11-25 21:22:31 -0600
committerSean Kurtz <seankurtz75@gmail.com>2026-11-25 21:22:31 -0600
commitfb7691d2a64952c7eeb6160b05eb99a0e0f64fe6 (patch)
tree739ff4358a1c2f85f715eaf16a1c60829aa71910
parent5a05816fd3f72af325d306a461941e0eb4509470 (diff)
downloadztop-fb7691d2a64952c7eeb6160b05eb99a0e0f64fe6.tar.gz
ztop: space out the region list, show real output in README
The first region ran into the word 'regions' and later ones had no separator. The README sample is now what the tool actually prints.
-rw-r--r--DESIGN.md6
-rw-r--r--README.md11
-rw-r--r--src/ztop.c2
3 files changed, 12 insertions, 7 deletions
diff --git a/DESIGN.md b/DESIGN.md
index c9a4228..c9a4a39 100644
--- a/DESIGN.md
+++ b/DESIGN.md
@@ -153,5 +153,7 @@ Three z/OS details are load-bearing:
different source, and none is planned.
- `SP=PVT` output is already grouped by owning TCB, but the view still
prints one list; per-TCB folding is a display change, not a data change.
-- The full-screen view has been exercised on a Linux pty only; the first
- run over a real SSH terminal is still to do.
+- The full-screen view has been exercised on a z/OS pty: area switching,
+ scrolling, help, quit and the cursor restore. What has not been seen is
+ a real xterm over SSH answering the size query; a terminal that ignores
+ `ESC[6n` falls back to `COLUMNS`/`LINES` or 80x24.
diff --git a/README.md b/README.md
index 8a3c70e..c199ff3 100644
--- a/README.md
+++ b/README.md
@@ -4,10 +4,13 @@ How much storage is in each area of a z/OS system -- CSA, SQA, LSQA, and
the private area -- from a z/OS UNIX shell over SSH.
```text
-subpool key blocks used free mapped largest address
-227 8 12 1048576 196608 1245184 1048576 00A00000-00B30000
-231 8 41 16777216 2097152 18874368 4194304 00C00000-02C00000
-CSF total: 17825792 bytes, 17121280 mapped (96.2% of mapped+unallocated)
+area csa: used 71014984 free 525752 mapped 71540736 blocks 326 unallocated 194883584 total 266424320 use 27%
+ sp key blks used free mapped largest address
+227 0 29 1607848 59224 1667072 335872 00B53000-17CF9000
+228 0 54 2149808 74320 2224128 823296 00B3F000-17CFE000
+231 0 77 3354952 65208 3420160 1077248 00B54000-17CE8000
+241 0 166 63902376 327000 64229376 26689536 00B38000-17D00000
+unallocated 194883584 bytes in 5 blocks, largest 191475712 regions 00800000+0039C000, 08287000+0FA79000
```
The numbers come from `VSMLIST`, the interface z/OS offers for exactly
diff --git a/src/ztop.c b/src/ztop.c
index 526dfb1..0ac39eb 100644
--- a/src/ztop.c
+++ b/src/ztop.c
@@ -231,7 +231,7 @@ static void print_area(const struct vsm_info *v)
(unsigned long long)v->unalloc, v->unalloc_blocks,
(unsigned long long)v->largest_unalloc);
for (int i = 0; i < v->nregion && i < VSM_MAX_REGION; i++)
- (void)printf("%s%08X+%08X", i == 0 ? " regions" : " ",
+ (void)printf("%s %08X+%08X", i == 0 ? " regions" : ",",
(unsigned)v->region[i].addr,
(unsigned)v->region[i].len);
(void)printf("\n");