David wrote: ↑March 25th, 2018, 10:33 am
I am going to try this on Linux as well.
I tried it, but things aren't that straightforward.
For starters, when I run AppleWin in Wine, AppleWin eats 44% of CPU time, and wineserver eats another 27%.
The emulated Apple II is quite slow, except when I enable turbo mode.
There is an option to enable turbo mode with Scroll Lock. (Turbo mode lasts only while I *hold* Scroll Lock. It's not a toggle.)
David wrote: ↑March 25th, 2018, 10:33 am
Or still better: Copy a Ctrl+A character (ASCII 0x01) followed by many "^" characters, onto the clipboard, and paste the whole thing into AppleWin.
Then AppleWin will first press the Ctrl+A for you, and it will hold "^" after that.
That doesn't seem to work in Wine, at least Ctrl+A is not pasted.
For the record, this is what I tried:
* Execute this in bash: echo $'\1\1\1\1\1\1\1^^^^^^^^^^^^^^^^^^^^'
* Select the output and copy it to the clipboard. (Ctrl+Shift+C or right-click -> copy)
* In AppleWin, press Shift+Insert.
This doesn't work by itself, only if I first press Ctrl+A by hand.
Norbert wrote: ↑March 25th, 2018, 11:11 am
Then Ctrl+c the text in xed, give AppleWin focus, press Shift+Insert.
Unfortunately, this doesn't work. Maybe Wine isn't passing the key-combo to AppleWin.
There is also this little utility that copies its standard input to the clipboard:
Shift+Insert seems to work in AppleWin if I start AppleII Basic.
(Boot from the MASTER.DSK that comes with AppleWin. You need to turn off hard disk emulation, so AppleII can boot from the floppy drive.)
To see every pasted character, including control characters, run this Basic program:
Code: Select all
10 GET A$
20 PRINT ASC(A$)
30 GOTO 10
RUN
If I press Ctrl+A manually, it shows up as a 1.
If I paste a string that contains a Ctrl+A, then that character won't show up. The "^" characters will show up as 94.
Code: Select all
echo -e '\x'{0,1}{{0..9},{A..F}} | clipit
It seems that something in AppleWin or Wine filters out all control characters (0-31 and 127), except newline (13).
Note that the above command will insert spaces between the control characters.
Here is a command that doesn't insert spaces, and also makes a hexdump to make that sure:
Code: Select all
for i in '\x'{0,1}{{0..9},{A..F}} ; do echo -en $i ; done | tee >(clipit) | od -t x1
Here is a screenshot of what the B-side (level 3) easter egg looks like.
Note that this screenshot is just a single frame from the animation, so it's not the whole experience.
Norbert wrote: ↑March 25th, 2018, 1:31 am
- for the first couple of Easter eggs
There is a video of them here:
OGV:
https://github.com/fabiensanglard/Princ ... r-eggs.ogv
GIF:
https://github.com/fabiensanglard/Princ ... r-eggs.gif