Commit 2303a6ab5492ba0439956311a9b2f23aca1f5b48
1 parent
a4b94a12
Exists in
master
and in
1 other branch
Adding commands "paste" and "paste text".
Showing
1 changed file
with
21 additions
and
0 deletions
Show diff stats
src/trace/exec.c
| ... | ... | @@ -201,6 +201,27 @@ |
| 201 | 201 | v3270_copy_selection(widget, V3270_SELECT_TABLE, FALSE); |
| 202 | 202 | } |
| 203 | 203 | |
| 204 | + } | |
| 205 | + | |
| 206 | + if(g_str_has_prefix(cmdline,"paste")) | |
| 207 | + { | |
| 208 | + | |
| 209 | + gchar * arg = cmdline+5; | |
| 210 | + g_strstrip(arg); | |
| 211 | + | |
| 212 | + if(!*arg) | |
| 213 | + { | |
| 214 | + v3270_paste(widget); | |
| 215 | + } | |
| 216 | + else if(!g_ascii_strcasecmp(arg,"text")) | |
| 217 | + { | |
| 218 | + v3270_paste_text(widget); | |
| 219 | + } | |
| 220 | + else | |
| 221 | + { | |
| 222 | + return errno = EINVAL; | |
| 223 | + } | |
| 224 | + | |
| 204 | 225 | return 0; |
| 205 | 226 | } |
| 206 | 227 | ... | ... |