git: dsynth - Abstract the run-status infrastructure

Roy Marples roy at marples.name
Tue Aug 27 05:20:01 PDT 2019


On 27/08/2019 06:33, Matthew Dillon wrote:
> commit ea37671df32972e5ab85505aad1eaaf6a307b013
> Author: Matthew Dillon <dillon at apollo.backplane.com>
> Date:   Mon Aug 26 22:31:41 2019 -0700
> 
>      dsynth - Abstract the run-status infrastructure
>      
>      * Abstract the run-status infrastructure and add skeletons for html
>        and a 'dsynth monitor' style monitor.
>      
>        Neither is implemented yet but this moves most of the hard work
>        out of gui.c (and renames it to ncurses.c) so it doesn't have to
>        be replicated for the other two.
> 
> Summary of changes:
>   usr.bin/dsynth/Makefile                            |   3 +-
>   usr.bin/dsynth/build.c                             |  30 ++--
>   usr.bin/dsynth/dsynth.h                            |  49 +++++-
>   .../platform/sysarch.c => usr.bin/dsynth/html.c    |  61 ++++---
>   .../dloader/dloader.h => usr.bin/dsynth/monitor.c  |  64 ++++---
>   usr.bin/dsynth/{gui.c => ncurses.c}                | 146 +++++-----------
>   usr.bin/dsynth/runstats.c                          | 188 +++++++++++++++++++++
>   7 files changed, 380 insertions(+), 161 deletions(-)
>   copy sys/platform/vkernel64/platform/sysarch.c => usr.bin/dsynth/html.c (71%)
>   copy sys/boot/dloader/dloader.h => usr.bin/dsynth/monitor.c (70%)
>   rename usr.bin/dsynth/{gui.c => ncurses.c} (80%)
>   create mode 100644 usr.bin/dsynth/runstats.c
> 
> http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ea37671df32972e5ab85505aad1eaaf6a307b013

I had a quick look at ncurses.c - didn't see anything there specific to 
ncurses.

KEY_RESIZE is a non posix extension, but iirc most other curses (NetBSD, 
PDCurses, etc) do support it.

Maybe consider renaming it to just curses.c?

Roy



More information about the Commits mailing list