summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-03-18 19:34:32 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-03-18 19:34:32 +0100
commit81d47f71d64caaaed7013b3f494dbae33267e70d (patch)
tree1153b86a893c1f434f609a71f6fea347b18c60a9
parent7bc75e8962b795f60e7589a84e4c1736e416e344 (diff)
Fix VS compiler warning, write "copied" message to tty
... rather than popping up a message window.
-rw-r--r--test/handle_keys.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/handle_keys.cxx b/test/handle_keys.cxx
index a081de933..de38ef38c 100644
--- a/test/handle_keys.cxx
+++ b/test/handle_keys.cxx
@@ -130,7 +130,7 @@ const char *get_keyname(int k, int &lg) {
lg = snprintf(buffer, sizeof(buffer), "0x%04x", k);
for (int i = 0; i < int(sizeof(key_table)/sizeof(*key_table)); i++) {
if (key_table[i].n == k) {
- lg = strlen(key_table[i].text);
+ lg = (int)strlen(key_table[i].text);
return key_table[i].text;
}
}
@@ -287,7 +287,7 @@ void copy_cb(Fl_Widget *b, void *) {
}
tlen = (int)strlen(text);
Fl::copy(text, tlen, 1, Fl::clipboard_plain_text);
- fl_message("%s text has been copied to the clipboard, length = %d.", what, tlen);
+ tty->printf("[%s text copied to clipboard, length = %d]\n", what, tlen);
free((void *)text);
tty->take_focus();
}