mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[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:
committed by
Émilie Feral
parent
010b474f77
commit
f66bde6d31
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user