Settings

Theme

Show HN: WOPR – A markup for rich terminal reports

github.com

125 points by yaronn01 · 39 comments

Reader

15 threads
OJFord

For now I'm categorising this (mentally, I mean) under "awesome, but idky useful".

I'd love to be told I'm wrong though. It's the best thing when you discover how to usefully use awesome but hitherto useless tools :p

yaronn01OP

Hi everyone, I am the author. Feel free to ask me anything or come up with suggestions!

  • akkartik

    Very cool! It got me daydreaming about an alternative to html designed from the ground up to minimize webpage bloat and avoid tracking (1x1 pixel gifs, etc.)

  • raindev

    Why do you decided to use XML as the basic format?

    • yaronn01OP

      XML is a standard format for markup (e.g. HTML). When XML is used where it shouldn't (object serialization) it adds complexity. Here it signals that creating a report is as simple (or at least as standard) as creating HTML. What other format you had in mind?

      • mburns

        >XML is a standard format for markup (e.g. HTML).

        XHTML is maybe the most hated incarnation of HTML, and is no longer encouraged.

        • oneeyedpigeon

          You can still write xml-compliant HTML; whether it's called XHTML or not is splitting hairs. You still get all the benefits of a very rich toolset for document preparation. I work on a site that makes heavy use of xslt and works with xml-compliant HTML as input/output.

        • themodelplumber

          XML and XHTML are two different things. Related, but different. XHTML is no longer encouraged for website markup, that part is true too. That does not mean that XML is no longer encouraged.

  • agumonkey

    Greetings, Professor Falken.

mannycalavera42

Joshua: Shall we play a game?

yaronn01OP

Another example is US weather map:

$> a=$(curl -Ls "bit.ly/1OuRPDJ"); curl --data "$a" "tty.zone?cols=${COLUMNS}"

chazu

Very cool indeed - pair this with 'watch' and you have instant ASCII monitoring tools implemented as http endpoints.

sklogic

Impressive. I keep using bare xterm since it still supports Tektronix emulation (but, unfortunately, no Regis nor Sixel). This seems like a viable substitution for all three.

  • LukeShu

    xterm actually does support ReGIS and Sixel graphics! However, it must be compiled with --enable-regis-graphics` (or `--enable-sixel-graphics`); and it's likely that your distro didn't compile it with those flags. If they did, you can get ReGIS support by running xterm in VT340 mode (`-ti vt340`).

    • sklogic

      Great! Did not know that, thought that only the DEC version could do it.

ratboy666

Haven't tried this. Just want to know -- what advantage does this give over using gnu plot with sixel output?

I can see the advantage over tek 4010 (this could be dynamic). If this is static (again, haven't tried yet), with multiple pages, why not just use tek 4010?

I also don't understand the admonish to use something other than xterm. What is the issue that was observed?

Ratboy

gavazzy

This would be useful for AWS instances where you don't want to install a desktop environment on the server.

  • atmosx

    Why would you wanna do that (install a desktop env)?!

    • kbenson

      To support graphical installers and specific service administrators that are used to using a GUI on a server? I knew an Oracle DBA once that always wanted X and and Gnome installed on the the RHEL DB servers, it was what he knew and was comfortable with when installing Oracle.

Kinnard

This is cool. I've been looking for something like it.

ivanceras

I didn't know, you could display something like that in a terminal. And why tty.zone maps to that wopr site?

Bud

Absolutely fantastic name choice; kudos.

jaxb

reminds me of http://zachholman.com/spark/ (spark-line graphs using unicode graph chars)

astro1138

I wonder if it's manageable to build a converter to SVG with just XSLT?

ape4

Long live the TUI!

bbrock25

heh, this is pretty awesome. I literally just started hacking with blessed over the weekend. Nice work!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection