Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting text adds spurious carriage-return #10

Open
Guddler opened this issue Apr 22, 2019 · 2 comments
Open

Pasting text adds spurious carriage-return #10

Guddler opened this issue Apr 22, 2019 · 2 comments

Comments

@Guddler
Copy link
Contributor

Guddler commented Apr 22, 2019

Originally reported by @lurkio

A long-standing bug in Mac BeebEm (which is also present in Win BeebEm): if you copy some text in any macOS app (other than BeebEm) and then paste that text into BeebEm using either Command-V or the Edit->Paste menu item, the text is pasted but a spurious carriage-return (or newline) is prepended to it, so you get an extra blank line at the beginning of the pasted text in BeebEm when you didn’t want or expect one!

This makes it a bit tricky to, e.g., prepare EXEC files in TextEdit for pasting into a *BUILD dialogue. (You have to type *BUILD !BOOT and then not press Return -- but press Command-V immediately instead! That’s to prevent BeebEm from inserting a blank line at the beginning of the EXEC file.)

@g7jjf wrote:

I don’t know if this is a bug or feature. The emulator explicitly presses the return key to generate the first key interrupt to start processing the clipboard data. Without the emulator pressing some key, the data in the clipboard can’t get processed. I have tried using non destructive keys like shift or control but these don’t work. Backspace would work as long as you are on the beginning of a line when you paste. Don’t know what else can be done.

Can’t the emulator press the key that corresponds to the first character of the text that’s on the clipboard, waiting to be pasted?

Failing that, I think that Backspace is preferable to Return. Then you’d be able to paste text in the middle of a line (in certain editor-type programs) in BeebEm (albeit once you’d remembered to add an extra space just before the insertion point), which you currently can’t do. The Backspace solution would also allow you to type *BUILD !BOOT and then paste in the text of the EXEC file.

https://stardot.org.uk/forums/viewtopic.php?f=4&t=12961&start=30#p169733

@lurkio
Copy link

lurkio commented Apr 23, 2019

Minor nitpick: the way that the above comment has been formatted makes it look like the sentence beginning "Can't the emulator..." is part of g7jjf's comment, but it's not: it's part of my comment.

(I.e. it's me who's suggesting that the emulator should press the key corresponding to the first char in the to-be-pasted text.)

@Guddler
Copy link
Contributor Author

Guddler commented Jun 4, 2019

Oops! Sorry (and I'm not good with notifications on GitHub!!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants