nxwish(1)

πŸ“¦
version 2.4.0 Β· 2 versions
, in alpine 3.24, debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– nxwish(1) β€” Command-line interface πŸ’–

okay bestie, sit down, hydrate, because this one is literally a whole vibe. this is the manual page for nxwish, and it's giving "tiny shell, enormous power" energy. no cap.


✨ NAME ✨

nxwish β€” a simple windowing shell that has the NSF/NX interpreter living inside it πŸͺŸπŸš


🌸 SYNOPSIS 🌸

nxwish ?fileName?

πŸ¦‹ DESCRIPTION πŸ¦‹

nxwish ?fileName?

so here's the tea, fr fr: nxwish is a shell-like application, and the way that it's built is that it includes Tcl plus the NX extension plus the Tk toolkit. all three. together. in one little program. iconic behavior honestly πŸ‘‘

what it does: nxwish creates a main window, and then it reads commands β€” either from its standard input or from fileName β€” and evaluates them. that's the whole loop, bestie.

if you invoke it without fileName, it just runs in REPL mode, reading commands straight off standard input like a cozy little conversation πŸ’¬

and it keeps going β€” processing commands, one after another β€” until one of two things happens:

  • all windows have been deleted πŸ™ˆ
  • end-of-file is reached on standard input 😭

that's it. that's the exit condition. periodt.


πŸŽ€ making your NX scripts directly invocable πŸŽ€

you can use nxwish like wish, which means you can make NX scripts directly invocable from the shell by putting the following first line (the "shebang", iykyk) in the script:

#! /usr/bin/env nxwish

a (more portable) alternative β€” and this one is the ✨ main character ✨ β€” is:

#! /bin/sh
# the next line restarts using nxwish \
    exec nxwish "$0" "$@"

look at that backslash doing the lord's work on the comment line. we love a portable queen πŸ’…


Copyright (c) 2014-16 Stefan Sobernig <stefan.sobernig@wu.ac.at>, Gustaf Neumann <gustaf.neumann@wu.ac.at>; available under the Creative Commons Attribution 3.0 Austria license (CC BY 3.0 AT).


okay that's the whole page!! go forth and write your NX scripts, bestie, you're gonna slay πŸ«ΆπŸ’–

this was nxwish version 2.4.0, from the nxwish(1) manual β€” mwah, bye bye, drink some water 🌸✨

πŸ“¦ where this page comes from