[Date Prev][Date Next][Subject Prev][Subject Next][Date Index][Subject Index]

Re: DOSBox-X version 0.83.10 released!



Hmmm, that by itself wouldn't work, because Xy commands are not reversible by replaying keystrokes. E.g., ci /a/x/ when executed couldn't be undone by replaying keystrokes. Maybe Wengier's state saving but on steroids would do it: save state after every keystroke to the next element in an array of saved states. Let the user decide stack size. I would be happy with an array of 1000 keystroke-triggered events.

Since Xy files are rarely more than 100k, that's only 100k of RAM. 

Ctrl-z would then just replace the onscreen contents with the pre-keystroke state. (It would be important to save before the keystroke was allowed to do anything in Xy.)

I'll try a version of that.



On Mon, Feb 8, 2021 at 11:09 AM Harry Binswanger <hb@xxxxxxxxxxxx> wrote:
To that end, what about keylogging every keystroke to a simultaneously open Windows Notepad (which would stay minimized and out of sight). Then, when you hit ctrl-z in XyWrite, that does a control-z in Notepad and replaces the current Xy screen with what Notepad then has.

Baroque, yes. Practical, maybe.

On Mon, Feb 8, 2021 at 11:06 AM Harry Binswanger <hb@xxxxxxxxxxxx> wrote:
We can interface with the Windows Clipboard, why can't we interface with the Windows Undo?


On Fri, Feb 5, 2021 at 11:59 AM Carl Distefano <cld@xxxxxxxxxx> wrote:
Reply to note from Kari Eveli <lexitec@xxxxxxxxxxx> Fri, 5 Feb 2021
10:54:08 +0200

Kari,

> It is easy to program an alternative save routine using XyWrite's
> programming language which saves multiple bak files with file
> extensions like 001, 002, etc. Then all you have to do is to save
> ever so often.

This is essentially what Robert's Undo|Redo does for Xy4, with the
added convenience that it can do the job automatically, in the
background. (It's part of U2.) I also have routine called RD that saves
all or user-selected block deletions to disk. These tools are a pretty
good way of retracing your steps in Xy, but they do not approach the
convenience of Ctrl-Z/Ctrl-Y in Windows. As wonderful as it would be to
have that in Xy, I'm doubtful that it's attainable in a DOS environment
--  though I'd love to be proved wrong.

--
Carl Distefano
cld@xxxxxxxxxx