# ngspice interactive commands — from frontend/commands.c cp_coms (118 unique)
# mode: 'batch+ui' = works in -b batch (spiceonly=TRUE); 'ui' = interactive only

command      mode      syntax : description
--------------------------------------------------------------------------------------------------
ac           batch+ui  [.ac line args] : Do an ac analysis.
alias        ui        [[word] alias] : Define an alias.
alter        batch+ui  devspecs : parmname value : Alter device parameters.
altermod     batch+ui  devspecs : parmname value : Alter model parameters.
alterparam   batch+ui  devspecs : parmname value : Alter .param parameters.
asciiplot    ui        plotargs : Produce ascii plots.
aspice       ui        file [outfile] : Run a spice job asynchronously.
bltplot      ui        expr ... [vs expr] [xl xlo xhi] [yl ylo yhi] : Plot things.
bug          ui        : Report a %s bug.
cd           ui        [directory] : Change working directory.
cdump        ui        : Dump the current control structures.
check_ifparm batch+ui  : Check model ifparm descriptors (for developers)
circbyline   ui        line : Enter a circuit line.
codemodel    ui        library library ... : Loads the code model libraries.
compose      ui        var parm=val ... : Compose a vector.
cross        ui        vecname number [ vector ... ] : Make a vector in a strange way.
cutout       ui        [ vec ... ] : Cut out portion of a vector.
dc           batch+ui  [.dc line args] : Do a dc analysis.
define       ui        [[func (args)] stuff] : Define a user-definable function.
deftype      ui        spec name pat ... : Redefine vector and plot types.
delete       batch+ui  [all] [break number ...] : Delete breakpoints and traces.
destroy      ui        [plotname] ... : Throw away all the data in the plot.
devhelp      ui        devspecs : show device information.
diff         ui        plotname plotname [vec ...] : 'diff' two plots.
display      ui        : Display vector status.
disto        batch+ui  [.disto line args] : Do an distortion analysis.
dump         batch+ui  : Print a dump of the current circuit.
echo         ui        [stuff ...] : Print stuff.
edit         batch+ui  [filename] : Edit a spice deck and then load it in.
fclose       ui        handle : Close open file
fft          ui        vector ... : Create a frequency domain plot with FFT.
fopen        ui        handle file_name [mode] : Open file_name with mode, return handle in $handle
fourier      ui        fund_freq vector ... : Do a fourier analysis of some data.
fread        ui        handle result [length] : Read a line from open file handle, data in $result, status in $length
getcwd       ui        [directory] : Print current working directory.
gnuplot      ui        file plotargs : Send plot to gnuplot.
hardcopy     ui        file plotargs : Produce hardcopy plots.
help         ui        [subject] ... : Hierarchical documentation browser.
history      ui        [-r] [number] : Print command history.
inventory    batch+ui  : Print circuit inventory
iplot        batch+ui  [-w width] [-d initial_steps] [-o] [all] [node ...] : Incrementally plot nodes.
jobs         ui        : Report on asynchronous spice jobs.
let          ui        varname = expr : Assign vector variables.
linearize    batch+ui  [ vec ... ] : Convert plot into one with linear scale.
listing      batch+ui  [logical] [physical] [deck] : Print the current circuit.
load         ui        file ... : Load in data.
mc_source    batch+ui  : Re-source the actual circuit deck for MC simulation.
mdump        batch+ui  outfile: Dump the current matrix.
meas         ui        various ... : User defined signal evaluation.
mrdump       batch+ui  outfile: Dump the current RHS to file.
newhelp      ui        [command name] ... : help.
noise        batch+ui  [.noise line args] : Do a noise analysis.
oldhelp      ui        [command name] ... : Print help.
op           batch+ui  [.op line args] : Determine the operating point of the circuit.
option       batch+ui  [option] [option = value] ... : Set a simulator option.
options      batch+ui  [option] [option = value] ... : Set a simulator option.  [= option]
optran       batch+ui  : Prepare optran by setting 6 flags
osdi         ui        library library ... : Loads a osdi library.
osdigen      ui        model n1 n2 expr : emit a C-OSDI resistor model from a behavioral expression.
osdigenc     ui        model n1 n2 qexpr : emit a C-OSDI capacitor (charge) model from Q(v).
plot         ui        expr ... [vs expr] [xl xlo xhi] [yl ylo yhi] : Plot things.
print        ui        [col] expr ... : Print vector values.
psd          ui        vector ... : Create a power spetral density plot with FFT.
pss          batch+ui  [.pss line args] : Do a periodic state analysis.
pz           batch+ui  [.pz line args] : Do a pole / zero analysis.
quit         ui        : Quit %s.
rehash       ui        : Rebuild the unix command database.
remcirc      batch+ui  : Remove current citcuit.
removecirc   batch+ui  [circuit name] : Remove the current circuit from memory.
remzerovec   ui        remove zero length vectors.
reset        batch+ui  : Terminate a simulation after a breakpoint (formerly 'end').
reshape      ui        vector ... [ shape ] : change the dimensions of a vector.
resume       batch+ui  : Continue after a stop.
rspice       ui        [input file] : Run a spice job remotely.
run          batch+ui  [rawfile] : Run the simulation as specified in the input file.
rusage       ui        [resource ...] : Print current resource usage.
save         batch+ui  [all] [node ...] : Save a spice output.
sens         batch+ui  [.sens line args] : Do a sensitivity analysis.
set          ui        [option] [option = value] ... : Set a variable.
setcirc      batch+ui  [circuit name] : Change the current circuit.
setcs        ui        [option] [option = value] ... : Set a variable, case remains as given.  [= set]
setplot      ui        [plotname] : Change the current working plot.
setscale     ui        [vecname] : Change default scale of current working plot.
setseed      ui        [seed value] : Reset the random number generator with new seed value.
settype      ui        type vec ... : Change the type of a vector.
shell        ui        [args] : Fork a shell, or execute the command.
shift        ui        [var] [number] : Shift argv or the named list var to the left.
show         batch+ui  devices ... : parameters ... : Print out device summary.
showmod      batch+ui  models ... : parameters ... : Print out model summary.
snload       ui        file : Load a snapshot.
snsave       ui        file : Save a snapshot.
source       ui        file : Source a %s file.
sp           batch+ui  [.sp line args] : Do an S-parameter analysis.
spec         ui        start_freq stop_freq step_freq vector ... : Create a frequency domain plot.
state        batch+ui  (unimplemented) : Print the state of the circuit.
status       batch+ui  : Print the current breakpoints and traces.
step         batch+ui  [number] : Iterate number times, or one.
stop         batch+ui  [stop args] : Set a breakpoint.
strcmp       ui        varname s1 s2 : Set $varname to strcmp(s1, s2).
strslice     ui        varname s1 offset length : Set $varname to s1[offset ... offset+length]
strstr       ui        varname s1 s2 : Set $varname to strstr(s1, s2).
sysinfo      batch+ui  Print out system info summary.
tf           batch+ui  [.tran line args] : Do a transient analysis.
trace        batch+ui  [all] [node ...] : Trace a node.
tran         batch+ui  [.tran line args] : Do a transient analysis.
transpose    ui        varname ... : Perform matrix transposition on multi-D vectors.
tutorial     ui        [subject] ... : Hierarchical documentation browser.  [= help]
unalias      ui        word ... : Undefine an alias.
undefine     ui        [func ...] : Undefine a user-definable function.
unlet        ui        varname ... : Undefine vectors.
unset        ui        varname ... : Unset a variable.
use          ui        library library ... : Loads the device libraries.
version      ui        [number] : Print the version number.
where        batch+ui  : Print last non-converging node or device
wrdata       ui        file plotargs : Send plot data to file.
write        ui        file expr ... : Write data to a file.
wrnodev      batch+ui  : Save current node voltage values to file
wrs2p        ui        file : Send s-param data to file.
