Reply to note from Fred Weiner <dmarc-noreply@xxxxxxxxxxxxx> Thu, 1 Oct 2026 11:11:10 -0700
Fred,
> I wonder if it's possible for this function to persist over
> sessions?
Yes, you can make the command history persist over sessions. There are two ways, global and targeted. The global way makes *all* config settings persist across sessions. In startup.xpl, add these two lines (change 'my.cfg' to whatever you like):
LoadCfg $XSDIR/my.cfg
AutoCfg $XSDIR/my.cfg
The targeted way saves the command history only. You'll need a dedicated routine for quitting XyScript, assigned to a key or saved as a library routine, plus a line in startup.xpl. So, for example, in the KBD file:
nn=SaveCM $XSDIR/cm-history.xpl;QUIT
And in startup.xpl:
RUN $XSDIR/cm-history.xpl
Hope this helps.
--
Carl Distefano
cld@xxxxxxxxxx