[ion/clipboard] Rework clipboard handling

Change the way the clipboard is fetched, so as to preserve the
Poincare/Python translation feature, and remove the cap on the length of
text being imported into the simulator.

Change-Id: I0f3e83c0c8aa4b64eb08d882aa6891b31f191e22
This commit is contained in:
Gabriel Ozouf
2020-10-26 18:06:16 +01:00
committed by Émilie Feral
parent 010b474f77
commit f66bde6d31
15 changed files with 88 additions and 44 deletions

View File

@@ -1,16 +1,15 @@
#ifndef ION_CLIPBOARD_H
#define ION_CLIPBOARD_H
#include <stddef.h>
namespace Ion {
namespace Clipboard {
/* Write the text to the system clipboard. */
void write(const char * text);
/* Fill the buffer with text from the system clipboard. */
void read(char * buffer, size_t bufferSize);
/* Returns the system's clipboard text if it differs from the text previously
* copied, and nullptr otherwise. */
const char * read();
}
}