Commit 9535172158324ea59ce952f859dcca69e944febc
1 parent
d39e8d2e
Exists in
master
and in
5 other branches
Implementando copia do buffer de terminal em formato html
Showing
6 changed files
with
384 additions
and
164 deletions
Show diff stats
pw3270.cbp
| ... | ... | @@ -9,8 +9,8 @@ |
| 9 | 9 | <Option compiler="mingw_64_compiler" /> |
| 10 | 10 | <Build> |
| 11 | 11 | <Target title="Debug"> |
| 12 | - <Option output=".bin/Debug/pw3270" prefix_auto="1" extension_auto="1" /> | |
| 13 | - <Option object_output=".obj/Debug/" /> | |
| 12 | + <Option output=".bin\Debug\pw3270" prefix_auto="1" extension_auto="1" /> | |
| 13 | + <Option object_output=".obj\Debug\" /> | |
| 14 | 14 | <Option type="1" /> |
| 15 | 15 | <Option compiler="mingw_64_compiler" /> |
| 16 | 16 | <Option use_console_runner="0" /> |
| ... | ... | @@ -20,8 +20,8 @@ |
| 20 | 20 | </Compiler> |
| 21 | 21 | </Target> |
| 22 | 22 | <Target title="Release"> |
| 23 | - <Option output=".bin/Release/pw3270" prefix_auto="1" extension_auto="1" /> | |
| 24 | - <Option object_output=".obj/Release/" /> | |
| 23 | + <Option output=".bin\Release\pw3270" prefix_auto="1" extension_auto="1" /> | |
| 24 | + <Option object_output=".obj\Release\" /> | |
| 25 | 25 | <Option type="0" /> |
| 26 | 26 | <Option compiler="mingw_64_compiler" /> |
| 27 | 27 | <Compiler> |
| ... | ... | @@ -35,304 +35,308 @@ |
| 35 | 35 | <Compiler> |
| 36 | 36 | <Add option="-Wall" /> |
| 37 | 37 | <Add option="`pkg-config gtk+-3.0 lib3270 --cflags`" /> |
| 38 | - <Add directory="src/include" /> | |
| 38 | + <Add directory="src\include" /> | |
| 39 | 39 | </Compiler> |
| 40 | 40 | <Linker> |
| 41 | 41 | <Add option="`pkg-config gtk+-3.0 lib3270 --libs`" /> |
| 42 | 42 | </Linker> |
| 43 | 43 | <Unit filename="Makefile.in" /> |
| 44 | - <Unit filename="android/Makefile" /> | |
| 45 | - <Unit filename="android/jni/Android.mk" /> | |
| 46 | - <Unit filename="android/jni/globals.h" /> | |
| 47 | - <Unit filename="android/jni/main.cpp" /> | |
| 48 | - <Unit filename="android/jni/misc.cpp" /> | |
| 49 | - <Unit filename="android/src/br/com/bb/pw3270/PW3270Activity.java" /> | |
| 50 | - <Unit filename="android/src/br/com/bb/pw3270/lib3270.java" /> | |
| 44 | + <Unit filename="android\Makefile" /> | |
| 45 | + <Unit filename="android\jni\Android.mk" /> | |
| 46 | + <Unit filename="android\jni\globals.h" /> | |
| 47 | + <Unit filename="android\jni\main.cpp" /> | |
| 48 | + <Unit filename="android\jni\misc.cpp" /> | |
| 49 | + <Unit filename="android\src\br\com\bb\pw3270\PW3270Activity.java" /> | |
| 50 | + <Unit filename="android\src\br\com\bb\pw3270\lib3270.java" /> | |
| 51 | 51 | <Unit filename="autogen.sh" /> |
| 52 | 52 | <Unit filename="colors.conf" /> |
| 53 | 53 | <Unit filename="configure.ac" /> |
| 54 | 54 | <Unit filename="pw3270.spec.in" /> |
| 55 | - <Unit filename="src/include/lib3270.h" /> | |
| 56 | - <Unit filename="src/include/lib3270/action_table.h" /> | |
| 57 | - <Unit filename="src/include/lib3270/actions.h" /> | |
| 58 | - <Unit filename="src/include/lib3270/config.h.in" /> | |
| 59 | - <Unit filename="src/include/lib3270/filetransfer.h" /> | |
| 60 | - <Unit filename="src/include/lib3270/log.h" /> | |
| 61 | - <Unit filename="src/include/lib3270/popup.h" /> | |
| 62 | - <Unit filename="src/include/lib3270/selection.h" /> | |
| 63 | - <Unit filename="src/include/lib3270/session.h" /> | |
| 64 | - <Unit filename="src/include/lib3270/trace.h" /> | |
| 65 | - <Unit filename="src/include/pw3270.h" /> | |
| 66 | - <Unit filename="src/include/rules.mak.in" /> | |
| 67 | - <Unit filename="src/lib3270/3270ds.h" /> | |
| 68 | - <Unit filename="src/lib3270/Makefile.in" /> | |
| 69 | - <Unit filename="src/lib3270/X11keysym.h" /> | |
| 70 | - <Unit filename="src/lib3270/XtGlue.c"> | |
| 55 | + <Unit filename="src\include\lib3270.h" /> | |
| 56 | + <Unit filename="src\include\lib3270\action_table.h" /> | |
| 57 | + <Unit filename="src\include\lib3270\actions.h" /> | |
| 58 | + <Unit filename="src\include\lib3270\config.h.in" /> | |
| 59 | + <Unit filename="src\include\lib3270\filetransfer.h" /> | |
| 60 | + <Unit filename="src\include\lib3270\html.h" /> | |
| 61 | + <Unit filename="src\include\lib3270\log.h" /> | |
| 62 | + <Unit filename="src\include\lib3270\popup.h" /> | |
| 63 | + <Unit filename="src\include\lib3270\selection.h" /> | |
| 64 | + <Unit filename="src\include\lib3270\session.h" /> | |
| 65 | + <Unit filename="src\include\lib3270\trace.h" /> | |
| 66 | + <Unit filename="src\include\pw3270.h" /> | |
| 67 | + <Unit filename="src\include\rules.mak.in" /> | |
| 68 | + <Unit filename="src\lib3270\3270ds.h" /> | |
| 69 | + <Unit filename="src\lib3270\Makefile.in" /> | |
| 70 | + <Unit filename="src\lib3270\X11keysym.h" /> | |
| 71 | + <Unit filename="src\lib3270\XtGlue.c"> | |
| 71 | 72 | <Option compilerVar="CC" /> |
| 72 | 73 | </Unit> |
| 73 | - <Unit filename="src/lib3270/actions.c"> | |
| 74 | + <Unit filename="src\lib3270\actions.c"> | |
| 74 | 75 | <Option compilerVar="CC" /> |
| 75 | 76 | </Unit> |
| 76 | - <Unit filename="src/lib3270/actionsc.h" /> | |
| 77 | - <Unit filename="src/lib3270/ansi.c"> | |
| 77 | + <Unit filename="src\lib3270\actionsc.h" /> | |
| 78 | + <Unit filename="src\lib3270\ansi.c"> | |
| 78 | 79 | <Option compilerVar="CC" /> |
| 79 | 80 | </Unit> |
| 80 | - <Unit filename="src/lib3270/ansic.h" /> | |
| 81 | - <Unit filename="src/lib3270/api.h" /> | |
| 82 | - <Unit filename="src/lib3270/apl.c"> | |
| 81 | + <Unit filename="src\lib3270\ansic.h" /> | |
| 82 | + <Unit filename="src\lib3270\api.h" /> | |
| 83 | + <Unit filename="src\lib3270\apl.c"> | |
| 83 | 84 | <Option compilerVar="CC" /> |
| 84 | 85 | </Unit> |
| 85 | - <Unit filename="src/lib3270/aplc.h" /> | |
| 86 | - <Unit filename="src/lib3270/appres.h" /> | |
| 87 | - <Unit filename="src/lib3270/arpa_telnet.h" /> | |
| 88 | - <Unit filename="src/lib3270/bounds.c"> | |
| 86 | + <Unit filename="src\lib3270\aplc.h" /> | |
| 87 | + <Unit filename="src\lib3270\appres.h" /> | |
| 88 | + <Unit filename="src\lib3270\arpa_telnet.h" /> | |
| 89 | + <Unit filename="src\lib3270\bounds.c"> | |
| 89 | 90 | <Option compilerVar="CC" /> |
| 90 | 91 | </Unit> |
| 91 | - <Unit filename="src/lib3270/cg.h" /> | |
| 92 | - <Unit filename="src/lib3270/charset.c"> | |
| 92 | + <Unit filename="src\lib3270\cg.h" /> | |
| 93 | + <Unit filename="src\lib3270\charset.c"> | |
| 93 | 94 | <Option compilerVar="CC" /> |
| 94 | 95 | </Unit> |
| 95 | - <Unit filename="src/lib3270/charsetc.h" /> | |
| 96 | - <Unit filename="src/lib3270/childc.h" /> | |
| 97 | - <Unit filename="src/lib3270/ctlr.c"> | |
| 96 | + <Unit filename="src\lib3270\charsetc.h" /> | |
| 97 | + <Unit filename="src\lib3270\childc.h" /> | |
| 98 | + <Unit filename="src\lib3270\ctlr.c"> | |
| 98 | 99 | <Option compilerVar="CC" /> |
| 99 | 100 | </Unit> |
| 100 | - <Unit filename="src/lib3270/ctlrc.h" /> | |
| 101 | - <Unit filename="src/lib3270/ft.c"> | |
| 101 | + <Unit filename="src\lib3270\ctlrc.h" /> | |
| 102 | + <Unit filename="src\lib3270\ft.c"> | |
| 102 | 103 | <Option compilerVar="CC" /> |
| 103 | 104 | </Unit> |
| 104 | - <Unit filename="src/lib3270/ft_cut.c"> | |
| 105 | + <Unit filename="src\lib3270\ft_cut.c"> | |
| 105 | 106 | <Option compilerVar="CC" /> |
| 106 | 107 | </Unit> |
| 107 | - <Unit filename="src/lib3270/ft_cut_ds.h" /> | |
| 108 | - <Unit filename="src/lib3270/ft_cutc.h" /> | |
| 109 | - <Unit filename="src/lib3270/ft_dft.c"> | |
| 108 | + <Unit filename="src\lib3270\ft_cut_ds.h" /> | |
| 109 | + <Unit filename="src\lib3270\ft_cutc.h" /> | |
| 110 | + <Unit filename="src\lib3270\ft_dft.c"> | |
| 110 | 111 | <Option compilerVar="CC" /> |
| 111 | 112 | </Unit> |
| 112 | - <Unit filename="src/lib3270/ft_dft_ds.h" /> | |
| 113 | - <Unit filename="src/lib3270/ft_dftc.h" /> | |
| 114 | - <Unit filename="src/lib3270/ftc.h" /> | |
| 115 | - <Unit filename="src/lib3270/globals.h" /> | |
| 116 | - <Unit filename="src/lib3270/glue.c"> | |
| 113 | + <Unit filename="src\lib3270\ft_dft_ds.h" /> | |
| 114 | + <Unit filename="src\lib3270\ft_dftc.h" /> | |
| 115 | + <Unit filename="src\lib3270\ftc.h" /> | |
| 116 | + <Unit filename="src\lib3270\globals.h" /> | |
| 117 | + <Unit filename="src\lib3270\glue.c"> | |
| 117 | 118 | <Option compilerVar="CC" /> |
| 118 | 119 | </Unit> |
| 119 | - <Unit filename="src/lib3270/gluec.h" /> | |
| 120 | - <Unit filename="src/lib3270/host.c"> | |
| 120 | + <Unit filename="src\lib3270\gluec.h" /> | |
| 121 | + <Unit filename="src\lib3270\host.c"> | |
| 121 | 122 | <Option compilerVar="CC" /> |
| 122 | 123 | </Unit> |
| 123 | - <Unit filename="src/lib3270/hostc.h" /> | |
| 124 | - <Unit filename="src/lib3270/icmdc.h" /> | |
| 125 | - <Unit filename="src/lib3270/iocalls.c"> | |
| 124 | + <Unit filename="src\lib3270\hostc.h" /> | |
| 125 | + <Unit filename="src\lib3270\html.c"> | |
| 126 | 126 | <Option compilerVar="CC" /> |
| 127 | 127 | </Unit> |
| 128 | - <Unit filename="src/lib3270/keypadc.h" /> | |
| 129 | - <Unit filename="src/lib3270/kybd.c"> | |
| 128 | + <Unit filename="src\lib3270\icmdc.h" /> | |
| 129 | + <Unit filename="src\lib3270\iocalls.c"> | |
| 130 | 130 | <Option compilerVar="CC" /> |
| 131 | 131 | </Unit> |
| 132 | - <Unit filename="src/lib3270/kybdc.h" /> | |
| 133 | - <Unit filename="src/lib3270/localdefs.h" /> | |
| 134 | - <Unit filename="src/lib3270/log.c"> | |
| 132 | + <Unit filename="src\lib3270\keypadc.h" /> | |
| 133 | + <Unit filename="src\lib3270\kybd.c"> | |
| 135 | 134 | <Option compilerVar="CC" /> |
| 136 | 135 | </Unit> |
| 137 | - <Unit filename="src/lib3270/macros.c"> | |
| 136 | + <Unit filename="src\lib3270\kybdc.h" /> | |
| 137 | + <Unit filename="src\lib3270\localdefs.h" /> | |
| 138 | + <Unit filename="src\lib3270\log.c"> | |
| 138 | 139 | <Option compilerVar="CC" /> |
| 139 | 140 | </Unit> |
| 140 | - <Unit filename="src/lib3270/mkfb.c"> | |
| 141 | + <Unit filename="src\lib3270\macros.c"> | |
| 141 | 142 | <Option compilerVar="CC" /> |
| 142 | 143 | </Unit> |
| 143 | - <Unit filename="src/lib3270/objects.h" /> | |
| 144 | - <Unit filename="src/lib3270/paste.c"> | |
| 144 | + <Unit filename="src\lib3270\mkfb.c"> | |
| 145 | 145 | <Option compilerVar="CC" /> |
| 146 | 146 | </Unit> |
| 147 | - <Unit filename="src/lib3270/popupsc.h" /> | |
| 148 | - <Unit filename="src/lib3270/printc.h" /> | |
| 149 | - <Unit filename="src/lib3270/printerc.h" /> | |
| 150 | - <Unit filename="src/lib3270/proxy.c"> | |
| 147 | + <Unit filename="src\lib3270\objects.h" /> | |
| 148 | + <Unit filename="src\lib3270\paste.c"> | |
| 151 | 149 | <Option compilerVar="CC" /> |
| 152 | 150 | </Unit> |
| 153 | - <Unit filename="src/lib3270/proxyc.h" /> | |
| 154 | - <Unit filename="src/lib3270/resolver.c"> | |
| 151 | + <Unit filename="src\lib3270\popupsc.h" /> | |
| 152 | + <Unit filename="src\lib3270\printc.h" /> | |
| 153 | + <Unit filename="src\lib3270\printerc.h" /> | |
| 154 | + <Unit filename="src\lib3270\proxy.c"> | |
| 155 | 155 | <Option compilerVar="CC" /> |
| 156 | 156 | </Unit> |
| 157 | - <Unit filename="src/lib3270/resolverc.h" /> | |
| 158 | - <Unit filename="src/lib3270/resources.c"> | |
| 157 | + <Unit filename="src\lib3270\proxyc.h" /> | |
| 158 | + <Unit filename="src\lib3270\resolver.c"> | |
| 159 | 159 | <Option compilerVar="CC" /> |
| 160 | 160 | </Unit> |
| 161 | - <Unit filename="src/lib3270/resources.h" /> | |
| 162 | - <Unit filename="src/lib3270/rpq.c"> | |
| 161 | + <Unit filename="src\lib3270\resolverc.h" /> | |
| 162 | + <Unit filename="src\lib3270\resources.c"> | |
| 163 | 163 | <Option compilerVar="CC" /> |
| 164 | 164 | </Unit> |
| 165 | - <Unit filename="src/lib3270/savec.h" /> | |
| 166 | - <Unit filename="src/lib3270/screen.c"> | |
| 165 | + <Unit filename="src\lib3270\resources.h" /> | |
| 166 | + <Unit filename="src\lib3270\rpq.c"> | |
| 167 | 167 | <Option compilerVar="CC" /> |
| 168 | 168 | </Unit> |
| 169 | - <Unit filename="src/lib3270/screen.h" /> | |
| 170 | - <Unit filename="src/lib3270/screenc.h" /> | |
| 171 | - <Unit filename="src/lib3270/scrollc.h" /> | |
| 172 | - <Unit filename="src/lib3270/see.c"> | |
| 169 | + <Unit filename="src\lib3270\savec.h" /> | |
| 170 | + <Unit filename="src\lib3270\screen.c"> | |
| 173 | 171 | <Option compilerVar="CC" /> |
| 174 | 172 | </Unit> |
| 175 | - <Unit filename="src/lib3270/seec.h" /> | |
| 176 | - <Unit filename="src/lib3270/selection.c"> | |
| 173 | + <Unit filename="src\lib3270\screen.h" /> | |
| 174 | + <Unit filename="src\lib3270\screenc.h" /> | |
| 175 | + <Unit filename="src\lib3270\scrollc.h" /> | |
| 176 | + <Unit filename="src\lib3270\see.c"> | |
| 177 | 177 | <Option compilerVar="CC" /> |
| 178 | 178 | </Unit> |
| 179 | - <Unit filename="src/lib3270/session.c"> | |
| 179 | + <Unit filename="src\lib3270\seec.h" /> | |
| 180 | + <Unit filename="src\lib3270\selection.c"> | |
| 180 | 181 | <Option compilerVar="CC" /> |
| 181 | 182 | </Unit> |
| 182 | - <Unit filename="src/lib3270/sf.c"> | |
| 183 | + <Unit filename="src\lib3270\session.c"> | |
| 183 | 184 | <Option compilerVar="CC" /> |
| 184 | 185 | </Unit> |
| 185 | - <Unit filename="src/lib3270/sf.h" /> | |
| 186 | - <Unit filename="src/lib3270/shlobj_missing.h" /> | |
| 187 | - <Unit filename="src/lib3270/sources.mak" /> | |
| 188 | - <Unit filename="src/lib3270/state.c"> | |
| 186 | + <Unit filename="src\lib3270\sf.c"> | |
| 189 | 187 | <Option compilerVar="CC" /> |
| 190 | 188 | </Unit> |
| 191 | - <Unit filename="src/lib3270/statusc.h" /> | |
| 192 | - <Unit filename="src/lib3270/tables.c"> | |
| 189 | + <Unit filename="src\lib3270\sf.h" /> | |
| 190 | + <Unit filename="src\lib3270\shlobj_missing.h" /> | |
| 191 | + <Unit filename="src\lib3270\sources.mak" /> | |
| 192 | + <Unit filename="src\lib3270\state.c"> | |
| 193 | 193 | <Option compilerVar="CC" /> |
| 194 | 194 | </Unit> |
| 195 | - <Unit filename="src/lib3270/tablesc.h" /> | |
| 196 | - <Unit filename="src/lib3270/telnet.c"> | |
| 195 | + <Unit filename="src\lib3270\statusc.h" /> | |
| 196 | + <Unit filename="src\lib3270\tables.c"> | |
| 197 | 197 | <Option compilerVar="CC" /> |
| 198 | 198 | </Unit> |
| 199 | - <Unit filename="src/lib3270/telnetc.h" /> | |
| 200 | - <Unit filename="src/lib3270/testprogram.c"> | |
| 199 | + <Unit filename="src\lib3270\tablesc.h" /> | |
| 200 | + <Unit filename="src\lib3270\telnet.c"> | |
| 201 | 201 | <Option compilerVar="CC" /> |
| 202 | 202 | </Unit> |
| 203 | - <Unit filename="src/lib3270/tn3270e.h" /> | |
| 204 | - <Unit filename="src/lib3270/toggle.h" /> | |
| 205 | - <Unit filename="src/lib3270/toggles.c"> | |
| 203 | + <Unit filename="src\lib3270\telnetc.h" /> | |
| 204 | + <Unit filename="src\lib3270\testprogram.c"> | |
| 206 | 205 | <Option compilerVar="CC" /> |
| 207 | 206 | </Unit> |
| 208 | - <Unit filename="src/lib3270/togglesc.h" /> | |
| 209 | - <Unit filename="src/lib3270/trace_ds.c"> | |
| 207 | + <Unit filename="src\lib3270\tn3270e.h" /> | |
| 208 | + <Unit filename="src\lib3270\toggle.h" /> | |
| 209 | + <Unit filename="src\lib3270\toggles.c"> | |
| 210 | 210 | <Option compilerVar="CC" /> |
| 211 | 211 | </Unit> |
| 212 | - <Unit filename="src/lib3270/trace_dsc.h" /> | |
| 213 | - <Unit filename="src/lib3270/utf8.c"> | |
| 212 | + <Unit filename="src\lib3270\togglesc.h" /> | |
| 213 | + <Unit filename="src\lib3270\trace_ds.c"> | |
| 214 | 214 | <Option compilerVar="CC" /> |
| 215 | 215 | </Unit> |
| 216 | - <Unit filename="src/lib3270/utf8c.h" /> | |
| 217 | - <Unit filename="src/lib3270/util.c"> | |
| 216 | + <Unit filename="src\lib3270\trace_dsc.h" /> | |
| 217 | + <Unit filename="src\lib3270\utf8.c"> | |
| 218 | 218 | <Option compilerVar="CC" /> |
| 219 | 219 | </Unit> |
| 220 | - <Unit filename="src/lib3270/utilc.h" /> | |
| 221 | - <Unit filename="src/lib3270/w3misc.c"> | |
| 220 | + <Unit filename="src\lib3270\utf8c.h" /> | |
| 221 | + <Unit filename="src\lib3270\util.c"> | |
| 222 | 222 | <Option compilerVar="CC" /> |
| 223 | 223 | </Unit> |
| 224 | - <Unit filename="src/lib3270/w3miscc.h" /> | |
| 225 | - <Unit filename="src/lib3270/widec.h" /> | |
| 226 | - <Unit filename="src/lib3270/winvers.c"> | |
| 224 | + <Unit filename="src\lib3270\utilc.h" /> | |
| 225 | + <Unit filename="src\lib3270\w3misc.c"> | |
| 227 | 226 | <Option compilerVar="CC" /> |
| 228 | 227 | </Unit> |
| 229 | - <Unit filename="src/lib3270/winversc.h" /> | |
| 230 | - <Unit filename="src/lib3270/xioc.h" /> | |
| 231 | - <Unit filename="src/lib3270/xl.h" /> | |
| 232 | - <Unit filename="src/pw3270/Makefile.in" /> | |
| 233 | - <Unit filename="src/pw3270/actions.c"> | |
| 228 | + <Unit filename="src\lib3270\w3miscc.h" /> | |
| 229 | + <Unit filename="src\lib3270\widec.h" /> | |
| 230 | + <Unit filename="src\lib3270\winvers.c"> | |
| 234 | 231 | <Option compilerVar="CC" /> |
| 235 | 232 | </Unit> |
| 236 | - <Unit filename="src/pw3270/colors.c"> | |
| 233 | + <Unit filename="src\lib3270\winversc.h" /> | |
| 234 | + <Unit filename="src\lib3270\xioc.h" /> | |
| 235 | + <Unit filename="src\lib3270\xl.h" /> | |
| 236 | + <Unit filename="src\pw3270\Makefile.in" /> | |
| 237 | + <Unit filename="src\pw3270\actions.c"> | |
| 237 | 238 | <Option compilerVar="CC" /> |
| 238 | 239 | </Unit> |
| 239 | - <Unit filename="src/pw3270/common/common.h.in" /> | |
| 240 | - <Unit filename="src/pw3270/common/config.c"> | |
| 240 | + <Unit filename="src\pw3270\colors.c"> | |
| 241 | 241 | <Option compilerVar="CC" /> |
| 242 | 242 | </Unit> |
| 243 | - <Unit filename="src/pw3270/common/sources.mak" /> | |
| 244 | - <Unit filename="src/pw3270/dialog.c"> | |
| 243 | + <Unit filename="src\pw3270\common\common.h.in" /> | |
| 244 | + <Unit filename="src\pw3270\common\config.c"> | |
| 245 | 245 | <Option compilerVar="CC" /> |
| 246 | 246 | </Unit> |
| 247 | - <Unit filename="src/pw3270/filetransfer.c"> | |
| 247 | + <Unit filename="src\pw3270\common\sources.mak" /> | |
| 248 | + <Unit filename="src\pw3270\dialog.c"> | |
| 248 | 249 | <Option compilerVar="CC" /> |
| 249 | 250 | </Unit> |
| 250 | - <Unit filename="src/pw3270/filetransfer.h" /> | |
| 251 | - <Unit filename="src/pw3270/fonts.c"> | |
| 251 | + <Unit filename="src\pw3270\filetransfer.c"> | |
| 252 | 252 | <Option compilerVar="CC" /> |
| 253 | 253 | </Unit> |
| 254 | - <Unit filename="src/pw3270/globals.h" /> | |
| 255 | - <Unit filename="src/pw3270/main.c"> | |
| 254 | + <Unit filename="src\pw3270\filetransfer.h" /> | |
| 255 | + <Unit filename="src\pw3270\fonts.c"> | |
| 256 | 256 | <Option compilerVar="CC" /> |
| 257 | 257 | </Unit> |
| 258 | - <Unit filename="src/pw3270/print.c"> | |
| 258 | + <Unit filename="src\pw3270\globals.h" /> | |
| 259 | + <Unit filename="src\pw3270\main.c"> | |
| 259 | 260 | <Option compilerVar="CC" /> |
| 260 | 261 | </Unit> |
| 261 | - <Unit filename="src/pw3270/uiparser/Makefile.in" /> | |
| 262 | - <Unit filename="src/pw3270/uiparser/accelerator.c"> | |
| 262 | + <Unit filename="src\pw3270\print.c"> | |
| 263 | 263 | <Option compilerVar="CC" /> |
| 264 | 264 | </Unit> |
| 265 | - <Unit filename="src/pw3270/uiparser/action.c"> | |
| 265 | + <Unit filename="src\pw3270\uiparser\Makefile.in" /> | |
| 266 | + <Unit filename="src\pw3270\uiparser\accelerator.c"> | |
| 266 | 267 | <Option compilerVar="CC" /> |
| 267 | 268 | </Unit> |
| 268 | - <Unit filename="src/pw3270/uiparser/menu.c"> | |
| 269 | + <Unit filename="src\pw3270\uiparser\action.c"> | |
| 269 | 270 | <Option compilerVar="CC" /> |
| 270 | 271 | </Unit> |
| 271 | - <Unit filename="src/pw3270/uiparser/menubar.c"> | |
| 272 | + <Unit filename="src\pw3270\uiparser\menu.c"> | |
| 272 | 273 | <Option compilerVar="CC" /> |
| 273 | 274 | </Unit> |
| 274 | - <Unit filename="src/pw3270/uiparser/menuitem.c"> | |
| 275 | + <Unit filename="src\pw3270\uiparser\menubar.c"> | |
| 275 | 276 | <Option compilerVar="CC" /> |
| 276 | 277 | </Unit> |
| 277 | - <Unit filename="src/pw3270/uiparser/parsefile.c"> | |
| 278 | + <Unit filename="src\pw3270\uiparser\menuitem.c"> | |
| 278 | 279 | <Option compilerVar="CC" /> |
| 279 | 280 | </Unit> |
| 280 | - <Unit filename="src/pw3270/uiparser/parser.c"> | |
| 281 | + <Unit filename="src\pw3270\uiparser\parsefile.c"> | |
| 281 | 282 | <Option compilerVar="CC" /> |
| 282 | 283 | </Unit> |
| 283 | - <Unit filename="src/pw3270/uiparser/parser.h" /> | |
| 284 | - <Unit filename="src/pw3270/uiparser/popup.c"> | |
| 284 | + <Unit filename="src\pw3270\uiparser\parser.c"> | |
| 285 | 285 | <Option compilerVar="CC" /> |
| 286 | 286 | </Unit> |
| 287 | - <Unit filename="src/pw3270/uiparser/private.h" /> | |
| 288 | - <Unit filename="src/pw3270/uiparser/script.c"> | |
| 287 | + <Unit filename="src\pw3270\uiparser\parser.h" /> | |
| 288 | + <Unit filename="src\pw3270\uiparser\popup.c"> | |
| 289 | 289 | <Option compilerVar="CC" /> |
| 290 | 290 | </Unit> |
| 291 | - <Unit filename="src/pw3270/uiparser/separator.c"> | |
| 291 | + <Unit filename="src\pw3270\uiparser\private.h" /> | |
| 292 | + <Unit filename="src\pw3270\uiparser\script.c"> | |
| 292 | 293 | <Option compilerVar="CC" /> |
| 293 | 294 | </Unit> |
| 294 | - <Unit filename="src/pw3270/uiparser/sources.mak" /> | |
| 295 | - <Unit filename="src/pw3270/uiparser/toolbar.c"> | |
| 295 | + <Unit filename="src\pw3270\uiparser\separator.c"> | |
| 296 | 296 | <Option compilerVar="CC" /> |
| 297 | 297 | </Unit> |
| 298 | - <Unit filename="src/pw3270/uiparser/toolitem.c"> | |
| 298 | + <Unit filename="src\pw3270\uiparser\sources.mak" /> | |
| 299 | + <Unit filename="src\pw3270\uiparser\toolbar.c"> | |
| 299 | 300 | <Option compilerVar="CC" /> |
| 300 | 301 | </Unit> |
| 301 | - <Unit filename="src/pw3270/v3270/accessible.c"> | |
| 302 | + <Unit filename="src\pw3270\uiparser\toolitem.c"> | |
| 302 | 303 | <Option compilerVar="CC" /> |
| 303 | 304 | </Unit> |
| 304 | - <Unit filename="src/pw3270/v3270/accessible.h" /> | |
| 305 | - <Unit filename="src/pw3270/v3270/draw.c"> | |
| 305 | + <Unit filename="src\pw3270\v3270\accessible.c"> | |
| 306 | 306 | <Option compilerVar="CC" /> |
| 307 | 307 | </Unit> |
| 308 | - <Unit filename="src/pw3270/v3270/genmarshal" /> | |
| 309 | - <Unit filename="src/pw3270/v3270/iocallback.c"> | |
| 308 | + <Unit filename="src\pw3270\v3270\accessible.h" /> | |
| 309 | + <Unit filename="src\pw3270\v3270\draw.c"> | |
| 310 | 310 | <Option compilerVar="CC" /> |
| 311 | 311 | </Unit> |
| 312 | - <Unit filename="src/pw3270/v3270/keyboard.c"> | |
| 312 | + <Unit filename="src\pw3270\v3270\genmarshal" /> | |
| 313 | + <Unit filename="src\pw3270\v3270\iocallback.c"> | |
| 313 | 314 | <Option compilerVar="CC" /> |
| 314 | 315 | </Unit> |
| 315 | - <Unit filename="src/pw3270/v3270/mouse.c"> | |
| 316 | + <Unit filename="src\pw3270\v3270\keyboard.c"> | |
| 316 | 317 | <Option compilerVar="CC" /> |
| 317 | 318 | </Unit> |
| 318 | - <Unit filename="src/pw3270/v3270/oia.c"> | |
| 319 | + <Unit filename="src\pw3270\v3270\mouse.c"> | |
| 319 | 320 | <Option compilerVar="CC" /> |
| 320 | 321 | </Unit> |
| 321 | - <Unit filename="src/pw3270/v3270/private.h" /> | |
| 322 | - <Unit filename="src/pw3270/v3270/selection.c"> | |
| 322 | + <Unit filename="src\pw3270\v3270\oia.c"> | |
| 323 | 323 | <Option compilerVar="CC" /> |
| 324 | 324 | </Unit> |
| 325 | - <Unit filename="src/pw3270/v3270/sources.mak" /> | |
| 326 | - <Unit filename="src/pw3270/v3270/v3270.h" /> | |
| 327 | - <Unit filename="src/pw3270/v3270/widget.c"> | |
| 325 | + <Unit filename="src\pw3270\v3270\private.h" /> | |
| 326 | + <Unit filename="src\pw3270\v3270\selection.c"> | |
| 328 | 327 | <Option compilerVar="CC" /> |
| 329 | 328 | </Unit> |
| 330 | - <Unit filename="src/pw3270/window.c"> | |
| 329 | + <Unit filename="src\pw3270\v3270\sources.mak" /> | |
| 330 | + <Unit filename="src\pw3270\v3270\v3270.h" /> | |
| 331 | + <Unit filename="src\pw3270\v3270\widget.c"> | |
| 331 | 332 | <Option compilerVar="CC" /> |
| 332 | 333 | </Unit> |
| 333 | - <Unit filename="src/tools/Makefile.in" /> | |
| 334 | - <Unit filename="ui/00default.xml" /> | |
| 335 | - <Unit filename="ui/99debug.xml" /> | |
| 334 | + <Unit filename="src\pw3270\window.c"> | |
| 335 | + <Option compilerVar="CC" /> | |
| 336 | + </Unit> | |
| 337 | + <Unit filename="src\tools\Makefile.in" /> | |
| 338 | + <Unit filename="ui\00default.xml" /> | |
| 339 | + <Unit filename="ui\99debug.xml" /> | |
| 336 | 340 | <Extensions> |
| 337 | 341 | <code_completion /> |
| 338 | 342 | <debugger /> | ... | ... |
| ... | ... | @@ -0,0 +1,35 @@ |
| 1 | +/* | |
| 2 | + * "Software G3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | |
| 3 | + * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | |
| 4 | + * aplicativos mainframe. Registro no INPI sob o nome G3270. | |
| 5 | + * | |
| 6 | + * Copyright (C) <2008> <Banco do Brasil S.A.> | |
| 7 | + * | |
| 8 | + * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | |
| 9 | + * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | |
| 10 | + * Free Software Foundation. | |
| 11 | + * | |
| 12 | + * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | |
| 13 | + * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | |
| 14 | + * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | |
| 15 | + * obter mais detalhes. | |
| 16 | + * | |
| 17 | + * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | |
| 18 | + * programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple | |
| 19 | + * Place, Suite 330, Boston, MA, 02111-1307, USA | |
| 20 | + * | |
| 21 | + * Este programa está nomeado como html.h e possui - linhas de código. | |
| 22 | + * | |
| 23 | + * Contatos: | |
| 24 | + * | |
| 25 | + * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | |
| 26 | + * | |
| 27 | + */ | |
| 28 | + | |
| 29 | +#ifndef LIB3270_HTML_H_INCLUDED | |
| 30 | + | |
| 31 | + #define LIB3270_HTML_H_INCLUDED 1 | |
| 32 | + | |
| 33 | + | |
| 34 | +#endif // LIB3270_HTML_H_INCLUDED | |
| 35 | + | ... | ... |
| ... | ... | @@ -0,0 +1,172 @@ |
| 1 | +/* | |
| 2 | + * "Software G3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | |
| 3 | + * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | |
| 4 | + * aplicativos mainframe. Registro no INPI sob o nome G3270. | |
| 5 | + * | |
| 6 | + * Copyright (C) <2008> <Banco do Brasil S.A.> | |
| 7 | + * | |
| 8 | + * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | |
| 9 | + * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | |
| 10 | + * Free Software Foundation. | |
| 11 | + * | |
| 12 | + * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | |
| 13 | + * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | |
| 14 | + * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | |
| 15 | + * obter mais detalhes. | |
| 16 | + * | |
| 17 | + * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | |
| 18 | + * programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple | |
| 19 | + * Place, Suite 330, Boston, MA, 02111-1307, USA | |
| 20 | + * | |
| 21 | + * Este programa está nomeado como html.c e possui - linhas de código. | |
| 22 | + * | |
| 23 | + * Contatos: | |
| 24 | + * | |
| 25 | + * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | |
| 26 | + * | |
| 27 | + */ | |
| 28 | + | |
| 29 | + #include <string.h> | |
| 30 | + #include <lib3270.h> | |
| 31 | + #include <lib3270/session.h> | |
| 32 | + #include <lib3270/html.h> | |
| 33 | + | |
| 34 | + #include "globals.h" | |
| 35 | + #include "utilc.h" | |
| 36 | + | |
| 37 | +/*--[ Defines ]--------------------------------------------------------------------------------------*/ | |
| 38 | + | |
| 39 | + enum html_element | |
| 40 | + { | |
| 41 | + HTML_ELEMENT_LINE_BREAK, | |
| 42 | + HTML_ELEMENT_BEGIN_COLOR, | |
| 43 | + HTML_ELEMENT_END_COLOR, | |
| 44 | + | |
| 45 | + HTML_ELEMENT_COUNT | |
| 46 | + }; | |
| 47 | + | |
| 48 | + static const char * element_text[HTML_ELEMENT_COUNT] = | |
| 49 | + { | |
| 50 | +#ifdef DEBUG | |
| 51 | + "<br />\n", | |
| 52 | +#else | |
| 53 | + "<br />", | |
| 54 | +#endif // Debug | |
| 55 | + "<span style=\"color:%s;background-color:%s\">", | |
| 56 | + "</span>", | |
| 57 | + }; | |
| 58 | + | |
| 59 | + static const char * html_color[] = | |
| 60 | + { | |
| 61 | + "black", | |
| 62 | + "deepSkyBlue", | |
| 63 | + "red", | |
| 64 | + "pink", | |
| 65 | + "green", | |
| 66 | + "turquoise", | |
| 67 | + "yellow", | |
| 68 | + "white", | |
| 69 | + "black", | |
| 70 | + "blue", | |
| 71 | + "orange", | |
| 72 | + "purple", | |
| 73 | + "paleGreen", | |
| 74 | + "paleTurquoise", | |
| 75 | + "grey", | |
| 76 | + "white" | |
| 77 | + }; | |
| 78 | + | |
| 79 | + struct html_info | |
| 80 | + { | |
| 81 | + int szText; | |
| 82 | + char * text; | |
| 83 | + unsigned short fg; | |
| 84 | + unsigned short bg; | |
| 85 | + }; | |
| 86 | + | |
| 87 | + /*--[ Implement ]------------------------------------------------------------------------------------*/ | |
| 88 | + | |
| 89 | + static void append_string(struct html_info *info, const char *text) | |
| 90 | + { | |
| 91 | + int sz = strlen(info->text)+strlen(text); | |
| 92 | + | |
| 93 | + if(strlen(info->text)+sz <= info->szText) | |
| 94 | + { | |
| 95 | + info->szText += (100+sz); | |
| 96 | + info->text = lib3270_realloc(info->text,info->szText); | |
| 97 | + } | |
| 98 | + | |
| 99 | + strcat(info->text,text); | |
| 100 | + | |
| 101 | + } | |
| 102 | + | |
| 103 | + static void append_element(struct html_info *info, enum html_element id) | |
| 104 | + { | |
| 105 | + append_string(info,element_text[id]); | |
| 106 | + } | |
| 107 | + | |
| 108 | + static update_colors(struct html_info *info, unsigned short attr) | |
| 109 | + { | |
| 110 | + unsigned short fg; | |
| 111 | + unsigned short bg = ((attr & 0x00F0) >> 4); | |
| 112 | + char * txt; | |
| 113 | + | |
| 114 | + #warning Fix field colors | |
| 115 | + if(attr & LIB3270_ATTR_FIELD) | |
| 116 | + fg = (attr & 0x0003); | |
| 117 | + else | |
| 118 | + fg = (attr & 0x000F); | |
| 119 | + | |
| 120 | + if(fg == info->fg && bg == info->bg) | |
| 121 | + return; | |
| 122 | + | |
| 123 | + if(info->fg != 0xFF) | |
| 124 | + append_string(info,element_text[HTML_ELEMENT_END_COLOR]); | |
| 125 | + | |
| 126 | + txt = xs_buffer(element_text[HTML_ELEMENT_BEGIN_COLOR],html_color[fg],html_color[bg]); | |
| 127 | + append_string(info,txt); | |
| 128 | + lib3270_free(txt); | |
| 129 | + | |
| 130 | + info->fg = fg; | |
| 131 | + info->bg = bg; | |
| 132 | + } | |
| 133 | + | |
| 134 | + LIB3270_EXPORT char * lib3270_get_as_html(H3270 *session, unsigned char all) | |
| 135 | + { | |
| 136 | + int row, col, baddr; | |
| 137 | + struct html_info info; | |
| 138 | + | |
| 139 | + memset(&info,0,sizeof(info)); | |
| 140 | + info.szText = session->rows * (session->cols + strlen(element_text[HTML_ELEMENT_LINE_BREAK])+1); | |
| 141 | + info.text = lib3270_malloc(info.szText+1); | |
| 142 | + info.fg = 0xFF; | |
| 143 | + info.bg = 0xFF; | |
| 144 | + | |
| 145 | + baddr = 0; | |
| 146 | + for(row=0;row < session->rows;row++) | |
| 147 | + { | |
| 148 | + int cr = 0; | |
| 149 | + | |
| 150 | + for(col = 0; col < session->cols;col++) | |
| 151 | + { | |
| 152 | + if(all || session->text[baddr].attr & LIB3270_ATTR_SELECTED) | |
| 153 | + { | |
| 154 | + char txt[] = { session->text[baddr].chr, 0 }; | |
| 155 | + cr++; | |
| 156 | + update_colors(&info,session->text[baddr].attr); | |
| 157 | + append_string(&info,txt); | |
| 158 | + } | |
| 159 | + baddr++; | |
| 160 | + } | |
| 161 | + | |
| 162 | + if(cr) | |
| 163 | + append_element(&info,HTML_ELEMENT_LINE_BREAK); | |
| 164 | + } | |
| 165 | + | |
| 166 | + if(info.fg != 0xFF) | |
| 167 | + append_string(&info,element_text[HTML_ELEMENT_END_COLOR]); | |
| 168 | + | |
| 169 | + return lib3270_realloc(info.text,strlen(info.text)+2); | |
| 170 | + } | |
| 171 | + | |
| 172 | + | ... | ... |
src/lib3270/sources.mak
| ... | ... | @@ -27,7 +27,7 @@ |
| 27 | 27 | # Terminal only sources |
| 28 | 28 | TERMINAL_SOURCES = bounds.c XtGlue.c ctlr.c util.c toggles.c screen.c selection.c kybd.c telnet.c \ |
| 29 | 29 | host.c sf.c ansi.c resolver.c tables.c utf8.c charset.c \ |
| 30 | - version.c session.c state.c | |
| 30 | + version.c session.c state.c html.c | |
| 31 | 31 | |
| 32 | 32 | # Network I/O Sources |
| 33 | 33 | NETWORK_SOURCES = iocalls.c proxy.c | ... | ... |
src/lib3270/util.c
| ... | ... | @@ -191,8 +191,7 @@ char * lib3270_vsprintf(const char *fmt, va_list args) |
| 191 | 191 | * buffer. |
| 192 | 192 | * 'format' is assumed to be a printf format string with '%s's in it. |
| 193 | 193 | */ |
| 194 | -char * | |
| 195 | -xs_buffer(const char *fmt, ...) | |
| 194 | +char * xs_buffer(const char *fmt, ...) | |
| 196 | 195 | { |
| 197 | 196 | va_list args; |
| 198 | 197 | char *r; | ... | ... |
src/pw3270/window.c
| ... | ... | @@ -461,6 +461,16 @@ |
| 461 | 461 | // Finish setup |
| 462 | 462 | #ifdef DEBUG |
| 463 | 463 | lib3270_testpattern(host); |
| 464 | + | |
| 465 | + { | |
| 466 | + #warning Temporario | |
| 467 | + char * text = lib3270_get_as_html(host,1); | |
| 468 | + | |
| 469 | + printf("\n%s\n",text); | |
| 470 | + | |
| 471 | + lib3270_free(text); | |
| 472 | + } | |
| 473 | + | |
| 464 | 474 | #endif |
| 465 | 475 | |
| 466 | 476 | trace("%s ends",__FUNCTION__); | ... | ... |