This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
MrKicker's profile picture

[1.7.10][SMP & SSP] Cant paste text longer then 127 charactors.

Started by MrKicker, 12 January 2015 - 10:46 PM
MrKicker #1
Posted 12 January 2015 - 11:46 PM
Version:1.7.10

Description: While trying to install the bedrock API, I noticed that for some reason the whole thing wasn't pasting using Ctrl + V. Using a basic text string to test this, I found out that you can only paste about 127 characters at a time. (I tried it outside of computer craft and it seems to work just fine.)

Expected result: I expected the hole line to be pasted.

Reproduction: Copy this: http://pastebin.com/wkGpJtaH
Its a simple repetition of a 1-9 scale with a number at the front of it to act as the "tenth" digit.
eg: 012345678911234567892123456789
Once 100 is reached, it starts over.
Maxes out at 200.
If you don't know how to paste in the in-game editor. First press Ctrl to open the menu, then (with the menu open) press Ctrl + V to paste it.

Work around: If you really need to get this text into computer craft, you can paste it in pastebin then download it through the pastebin program on computercraft.
SquidDev #2
Posted 13 January 2015 - 07:54 AM
This is by design. In the WidgetTerminal class, it the clipboard is more than 128 characters it trims it.

Edit:
I did find another bug though. I ran in a python shell: print("HELLO\nWORLD\nYAY\r")
Copy and pasting this in gives you "HELLO\nWORLD\nYAY", allowing you to copy multiple lines. This is because ComputerCraft uses either the first \n or the first \r and uses the largest of the two (it should be the smallest).

You can duplicate this with:

print(read())


This should print out


HELLO
WORLD
YAY
3 -- Because we have done 3 lines
Edited on 13 January 2015 - 07:00 AM