Comments (6)
Updated by manuelbi on 2003-06-25 20:46 UTC
- summary: Copy/paste form/to openMSX --> Copy/paste from/to openMSX
from openmsx.
Commented by sd-snatcher on 2007-10-14 04:18 UTC
Logged In: YES
user_id=130840
Originator: NO
I vote for that. It would allow to easily paste MSX-Basic programs from the net directly on the MSX.
Same on the other side: I could copy texts from the output of any MSX-DOS program to the host OS.
from openmsx.
Commented by bifimsx on 2007-10-14 05:00 UTC
Logged In: YES
user_id=790845
Originator: NO
Using Catapult pasting from the native OS to openMSX is available for years already, although only to machines with an international keyboard layout.
from openmsx.
Commented by auroramsx on 2007-10-14 08:32 UTC
Logged In: YES
user_id=951315
Originator: NO
BifiMSX wrote:
> Using Catapult pasting from the native OS to openMSX is available for
> years already, although only to machines with an international keyboard
> layout.
...or via the "type" command in the console.
I guess this FRQ is still open due to the "vice versa". That's a rather
tricky issue though:
* you'd probably need to differentiate between graphics and text modes.
In graphics mode you'd want to copy a rectangle of pixels, in text
mode, a selection of text. But that's not so simple either:
- What about screen 1?
That mode is used for text as well as for graphics!
- What about e.g jANSI?
That's a multi-colored text mode emulated in screen 7!
* Implementing the selection mechanism poses the very practical
problem, that the mouse might be 'captured' by the MSX. This could
be overcome by having the user press an extra keyboard button to
copy/paste, but that's highly non-standard.
Next to these issues, I wonder what practical purposes copy/paste
from openMSX to the OS might have. I think most use cases can be
covered by already implemented features:
* Need graphics? -> Use screenshot
- Need text? -> Direct MSX-output to the MSX-printer and log
the printer file.
Just my 2cts on an early sunday morning ;-)
from openmsx.
Commented by manuelbi on 2015-01-15 21:24 UTC
Paste-to options are nowadays:
- the Type feature in Catapult (which works with any keyboard layout nowadays)
- the type_from_file console command to type the contents of a file (also works for any keyboard layout)
Both use the type console command internally.
Copy-from options:
- the get_screen command on the console. Put to file e.g. via save_to_file test.txt [get_screen](for text modes only)
- indeed via the printer (e.g. llist for a basic program in RAM)
- via the listing command if it's about a basic program in RAM
from openmsx.
Copy/paste to/from clipboard has been implemented in a basic way. You can copy text from the clipboard into openMSX, in the sense that it is typed into the MSX using the 'type' command now. Copying from openMSX is done with the get_screen
command. Of course this means all limitations of these commands apply. But, as I said, the basics are there.
Due to limitations on SDL2, which only supports text on the clipboard, we cannot implement graphics copying (otherwise making a screenshot and putting it on the clipboard was an obvious implementation). Pasting graphics into the MSX is not something implementable at all, I think.
Anyway, because of the above, I'm closing this ticket. Note that all alternatives are still working. It's just that we added a few keyboard shortcuts (and mouse middle button) to use some of them with the host OS clipboard.
TODO separately: enhance the get_screen command. Something for another ticket.
Yay, another ancient ticket closed :) This one is about 17 years old!
from openmsx.
Related Issues (20)
- National CF-SM003 should not have a printer port HOT 1
- Selecting "dir as disk" is broken HOT 2
- imgui light has unreadable white on white text color. HOT 7
- Mysterious case error in DirAsDsk (WINDOWS) HOT 4
- Debugging should unpause the emulation HOT 3
- "Select MSX machine..." dialog usability HOT 3
- Impossible to build OpenMSX HOT 15
- Regarding incorrect specifications of PCM of MSX turboR HOT 3
- Feature request: Add SCCI hardware interface HOT 1
- Overscan setting HOT 1
- Support emulation of plotter (like Sony PRN-C41)
- Problem with loading on MSX tR disk drive (TC8566AF) HOT 17
- Problem d-pad of Dualshock 4 HOT 21
- Support bind with also letting the key press go to the MSX
- Add support for a 'configuration setup'
- Machine selector generates many SRAM file not found messages HOT 3
- Cannot load settings HOT 3
- load_settings <file> working weird HOT 2
- save_settings <file> is removing some existing settings! HOT 4
- Pasting text into a debugger window results in emulator keystrokes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openmsx.