<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ztop.git/DESIGN.md, branch main</title>
<subtitle>Interactive z/OS storage and address space monitor (VSMLIST, CVT/ASVT)</subtitle>
<id>https://git.abendless.com/ztop.git/atom?h=main</id>
<link rel='self' href='https://git.abendless.com/ztop.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/'/>
<updated>2026-11-28T00:10:43Z</updated>
<entry>
<title>views: PS, FS and LOG, and a DEC-graphics frame</title>
<updated>2026-11-28T00:10:43Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-28T00:10:43Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=bed906ea03f44454baa7089bb3cb975f94d77bcc'/>
<id>urn:sha1:bed906ea03f44454baa7089bb3cb975f94d77bcc</id>
<content type='text'>
Two changes that share files -- the views, and the screen they are drawn
on -- so one commit; splitting them would mean splitting src/ztop.c and
tui/tui.h by hunk, which is not a split a reviewer could follow.

The views.  Seven tabs instead of four: PS (w_getpsent), FS (w_getmntent
plus statvfs) and LOG, a read-only extended MCS console behind -c.  LOG
needs supervisor state, so MCSOPER and MCSOPMSG live in src/zmcs.s: it
switches to supervisor state, calls the macro, switches back, and hands
the caller a copy of the message data block.  src/mdb.c walks that MDB
(IEAVM105) for the job name and the text line, and is separate from
src/ztop.c because it is the one place ztop parses bytes written by
another address space, so it is worth a test that runs anywhere.  The
small structs become C23 typedefs, src/vsm.c keeps the 16M line apart,
and README lists the seven views and the keys they moved.

The screen.  The frame, the meters and the scrollbar were the last parts
that said "curses".  Borders and meters are now the DEC Special Graphics
set, designated into G0 with ESC ( 0 and released with ESC ( B, with a
fallback to + - | # when TERM is not one we know; the meters are shade
fill over a horizontal rule instead of a [####    ] bar; table selection
is a background colour instead of reverse video, which is the tell almost
everyone recognises as curses; the tab row separates with a gap instead
of |; titles are a dim style and the frame is grey so the accent colour
means selection.  The designation is tracked per cell, because an SGR
reset does not leave the graphics set, and only the cells that carry a
border glyph pay for it -- six bytes a row at 80 columns.  Everything
stays 7-bit ASCII in the source, which is what .gitattributes now
enforces for the whole tree: one rule, ISO8859-1 in the working tree,
the same line the zopen git port uses, so a checkout on z/OS is tagged
ASCII for make, sh, awk and the compiler and no file needs a hand tag.

Verified on Linux: make test TESTCC=cc green (test_vsm, test_sys,
test_mdb, tui/test_tui, leakcheck), make tidy adds no finding to the ten
that predate this, src/ztop.c passes -fsyntax-only with the project's
warnings.  The frame was checked against a painted screen with
tests/screen.py, which now understands ESC ( 0.  Not yet built on z/OS:
the CBT build, make check and make leakcheck run after the push and the
PR carries their result.
</content>
</entry>
<entry>
<title>docs: four views, the IPL fields, the leak check</title>
<updated>2026-11-26T04:49:30Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T04:49:30Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=ca1aebd13e439022d65a292c51a47fe752523ecf'/>
<id>urn:sha1:ca1aebd13e439022d65a292c51a47fe752523ecf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tui: mouse messages; ztop: clickable tabs, wheel, better help</title>
<updated>2026-11-26T03:56:07Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:55:37Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=8a85eb0a61c4deaa337f49f437e00710fc940556'/>
<id>urn:sha1:8a85eb0a61c4deaa337f49f437e00710fc940556</id>
<content type='text'>
Enable xterm SGR mouse reporting and decode it into TUI_MSG_MOUSE.  ztop
uses it for the view tabs, the storage sub-tabs, table rows and the
wheel.  The help panel now lists navigation explicitly, and the status
line shows the keys for the current view.
</content>
</entry>
<entry>
<title>Revert "tui: mouse messages; ztop: clickable tabs, wheel, better help"</title>
<updated>2026-11-26T03:55:52Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:55:52Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=431855189a87388c323787d668e0698cbfefef30'/>
<id>urn:sha1:431855189a87388c323787d668e0698cbfefef30</id>
<content type='text'>
This reverts commit 5f8909cf7beeefa6318c795f8bf52b4b9f4361ae.
</content>
</entry>
<entry>
<title>tui: mouse messages; ztop: clickable tabs, wheel, better help</title>
<updated>2026-11-26T03:55:37Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:55:37Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=5f8909cf7beeefa6318c795f8bf52b4b9f4361ae'/>
<id>urn:sha1:5f8909cf7beeefa6318c795f8bf52b4b9f4361ae</id>
<content type='text'>
Enable xterm SGR mouse reporting and decode it into TUI_MSG_MOUSE.  ztop
uses it for the view tabs, the storage sub-tabs, table rows and the
wheel.  The help panel now lists navigation explicitly, and the status
line shows the keys for the current view.
</content>
</entry>
<entry>
<title>docs: describe the views, the library and the CVT/ASVT source</title>
<updated>2026-11-26T03:48:09Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:48:09Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=facbb0d0820c6630a3c8548cad32ed448cc5b93b'/>
<id>urn:sha1:facbb0d0820c6630a3c8548cad32ed448cc5b93b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ztop: space out the region list, show real output in README</title>
<updated>2026-11-26T03:22:31Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:22:31Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=fb7691d2a64952c7eeb6160b05eb99a0e0f64fe6'/>
<id>urn:sha1:fb7691d2a64952c7eeb6160b05eb99a0e0f64fe6</id>
<content type='text'>
The first region ran into the word 'regions' and later ones had no
separator.  The README sample is now what the tool actually prints.
</content>
</entry>
<entry>
<title>zvslist: fix the service call and build the stub with clang</title>
<updated>2026-11-26T03:08:28Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:08:28Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=b9c2a4b5f138c3d7eff351f0c49aa6b631a9c1c8'/>
<id>urn:sha1:b9c2a4b5f138c3d7eff351f0c49aa6b631a9c1c8</id>
<content type='text'>
Three separate faults kept the call from returning:

- the binder rewrites =A(zvslist) into a function descriptor in an
  XPLINK module, so loading it into the base register sent every literal
  and branch elsewhere; BALR alone is the base setup the assembler needs;
- WKAREA=((4),5) passes the literal 5 as the work-area length, not R5,
  so the macro stored its control block at the start of a request it had
  been told was five bytes long;
- FREE and UNALLOC are different macro expansions, not a runtime space
  operand, so the stub now branches to power the right one.

Rename the source to src/zvslist.S and let ibm-clang assemble it, which
removes the chtag/column-71/EBCDIC dance from the build.  With these
changes VSMLIST answers without an APF bit, so the docs no longer claim
otherwise, and the sample output is the real layout.
</content>
</entry>
<entry>
<title>ztop: parse the VSMLIST answer, add a full-screen view</title>
<updated>2026-11-26T02:36:47Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T02:36:47Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=8f2578664a1420759f2a0e29e27d128a7d3e2567'/>
<id>urn:sha1:8f2578664a1420759f2a0e29e27d128a7d3e2567</id>
<content type='text'>
The old parser scanned from offset 4, which is the data-area pointer, not
the data.  Read the documented framing instead: the work area's first word
is the service return code, then the address and length of the data area.
Continuation (rc=4) reuses the same work area and must not clear that word,
so the request build now happens once and each piece is merged.

Parsing follows the reference: subpool descriptors, allocated blocks with
their free descriptors (used = block length - free), unallocated regions
and holes for CSA and PVT.  CSA gets a total and a percentage; the other
areas do not have that request.

The display is a small cell-buffer TUI: diffed output, ASCII box drawing,
termios raw input, CPR sizing because TIOCGWINSZ reports zero on z/OS, and
EBCDIC ESC on __MVS__.  One-shot output stays exact bytes for grep.

tests/test_vsm.c builds synthetic data areas for the parser and runs on
any host; tests/demo_tui.c exercises the terminal layer.
</content>
</entry>
<entry>
<title>DESIGN: ztop is APF-authorized, LINKAGE=SYSTEM is the path</title>
<updated>2026-11-25T21:53:26Z</updated>
<author>
<name>skurtz97</name>
<email>skurtz97@users.noreply.github.com</email>
</author>
<published>2026-11-25T21:53:26Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=79c0ef9ecc60b6348ac3a023f1bac4caa0cffee7'/>
<id>urn:sha1:79c0ef9ecc60b6348ac3a023f1bac4caa0cffee7</id>
<content type='text'>
</content>
</entry>
</feed>
