1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269
|
comment -*- mode: text -*-
How to build & install libvte compatible library using mlterm engine.
* Requirements
o vte library and headers
o gtk+ 2.x or 3.x
o terminal emulators or other applications using libvte
(gnome-terminal, roxterm, synaptic or etc)
* Supported API
vte 0.78
* Build
$ ./configure (--with-type-engine=cairo --with-imagelib=gdk-pixbuf --enable-pty-helper \
--with-gtk=2.0 ...)
- Xft and cairo are not required, but strongly recommended because it is
impossible to change font settings from preferences menu without them.
In addition, you should choose what gtk+ and pango installed to your
system depend on such as gdk-pixbuf.
- If you want to use gnome-pty-helper, specify --enable-pty-helper option and
place gnome-pty-helper (or its symbolic link file) at ${libexecdir}/mlterm/.
- If libvte on your system depends on gtk+-2.x, specify --with-gtk=2.0 option.
(libvte.so.9 => gtk+-2.x, libvte2_90.so.9 and libvte-2.91.so.9 => gtk+-3.0)
$ make
$ make vte (== "cd gtk ; make")
* Build in MSYS2/MinGW-w64
(It supports gtk-3.x alone for now)
1) Copy /usr/include/vte-2.91 in Linux to /mingw64/include
2) Copy /usr/lib/pkgconfig/vte-2.91.pc to /mingw64/lib/pkgconfig
(Replace 'prefix' with /mingw64)
3) Build
CFLAGS="-Wall -g -O2" ./configure --prefix=/mingw64 --disable-ssh2
make
make vte
* Install (Replace official libvte)
$ cd baselib ; make install-la
$ cd encodefilter ; make install-la
$ make install-vte (== "cd gtk ; make install")
$ ln -sf [where libvte of mlterm is installed]/libvte.so.9 \
[where official libvte is installed]/libvte.so.9
or
ln -sf [where libvte of mlterm is installed]/libvte2_90.so.9 \
[where official libvte is installed]/libvte2_90.so.9
or
ln -sf [where libvte of mlterm is installed]/libvte-2.91.so.9 \
[where official libvte is installed]/libvte-2.91.so.9
* Start terminal emulators using libvte
$ gnome-terminal (roxterm, synaptic or etc)
=> mlterm inside gnome-terminal is started.
* Notice
o Because it is mlterm that works inside gnome-terminal or etc,
- Configuration files in ~/.mlterm/ are applied. (*)
- Configuration protocol (like '$ mlcc [key] [value]') is mostly available.
- Pressing Ctrl+Button3 shows 'mlconfig' menu.
(*) Following configurations are invalidated by gnome-terminal or etc in startup.
- 'DEFAULT' settings in ~/.mlterm/(v)(aa)font
- 'bel_mode', 'fg_color', 'bg_color', 'cursor_bg_color', 'wall_picture',
'use_transbg', 'alpha', 'encoding' and 'blink_cursor' options
in ~/.mlterm/main
o Default value of following options are not same as that of normal mlterm.
[Option] [Default Value] [Normal mlterm]
type_engine => xft or cairo (if compiled with it) (xft)
o Following functions which normal mlterm provides are not available.
- Daemon mode
- Multiple ptys using Ctrl+F1 / Ctrl+F2 / Ctrl+F3
- Vertical writing mode
- 'screen_width_ratio' option
- 'inner_border' option
- 'use_urgent_bell' option
o It is recommended to specify the same font to configuration of gnome-terminal
or etc and ~/.mlterm/aafont so as not to load excessive fonts.
ex) - gtkterm2
~/.gtkterm2rc => terminalFont=Terminal 14
~/.mlterm/aafont => DEFAULT=Terminal 14
o libvte compatible library of mlterm 3.9.1 or later supports XInput2.
But if keyboard and mouse don't work correctly, try to set "GDK_CORE_DEVICE_EVENTS"
environmental variable which disables XInput2.
$ export GDK_CORE_DEVICE_EVENTS=1
o Unsupported vte api functions
- vte_terminal_copy_primary
- vte_terminal_set_font_scale
- vte_terminal_get_font_scale
- vte_terminal_set_scroll_background
- vte_terminal_set_scroll_on_keystroke
- vte_terminal_set_rewrap_on_resize
- vte_terminal_get_rewrap_on_resize
- vte_terminal_set_color_highlight
- vte_terminal_set_color_highlight_foreground
- vte_terminal_set_background_tint_color
- vte_terminal_set_cursor_shape
- vte_terminal_get_font
- vte_terminal_set_allow_bold
- vte_terminal_get_allow_bold
- vte_terminal_set_mouse_autohide
- vte_terminal_get_mouse_autohide
- vte_terminal_get_text
- vte_terminal_get_text_include_trailing_spaces
- vte_terminal_get_text_range
- vte_terminal_match_add_gregex (incomplete)
- vte_terminal_match_set_cursor
- vte_terminal_match_set_cursor_type
- vte_terminal_match_set_cursor_name
- vte_terminal_match_remove
- vte_terminal_match_check (incomplete)
- vte_terminal_match_check_event
- vte_terminal_search_set_wrap_around
- vte_terminal_search_get_wrap_around
- vte_get_user_shell
- vte_terminal_get_status_line
- vte_terminal_get_child_exit_status
- vte_terminal_set_alternate_screen_scroll
- vte_terminal_set_geometry_hints
- vte_pty_new_foreign_sync
- vte_pty_close
- vte_terminal_set_input_enabled
- vte_terminal_get_current_directory_uri
- vte_terminal_get_current_file_uri
- vte_regex_jit
- vte_terminal_match_add_regex
- vte_terminal_event_check_regex_simple
- vte_terminal_set_allow_hyperlink
- vte_terminal_hyperlink_check_event
- vte_terminal_set_bold_is_bright
- vte_terminal_set_cell_width_scale
- vte_terminal_set_cell_height_scale
- vte_terminal_set_text_blink_mode
- vte_set_test_flags
- vte_terminal_get_color_background_for_draw
- vte_regex_substitute
- vte_terminal_set_enable_bidi
- vte_terminal_set_enable_shaping
- vte_get_encodings
- vte_get_encoding_supported
- vte_terminal_event_check_regex_array
- vte_terminal_set_enable_sixel
o Unsupported vte signals and properties
- signals
"eof"
"commit"
"emulation-changed"
"contents-changed"
"cursor-moved"
"deiconify-window"
"iconify-window"
"raise-window"
"lower-window"
"refresh-window"
"restore-window"
"maximize-window"
"resize-window"
"move-window"
"status-line-changed"
"increase-font-size"
"decrease-font-size"
"text-modified"
"text-inserted"
"text-deleted"
"text-scrolled"
"copy-clipboard"
"paste-clipboard"
- class property
"allow-bold"
"audible-bell"
"background-image-file"
"background-image-pixbuf"
"background-opacity"
"background-saturation"
"background-tint-color"
"background-transparent"
"backspace-binding"
"cursor-blink-mode"
"cursor-shape"
"delete-binding"
"emulation"
"encoding"
"font-desc"
"pointer-autohide"
"pty"
"scroll-background"
"scrollback-lines"
"scroll-on-keystroke"
"scroll-on-output"
"word-chars"
"visible-bell"
* Tested terminals using vte.
o gnome-terminal 3.46.7 on Arch Linux ... OK except transparency
o gnome-terminal 2.16.0 on CentOS 5 ... OK
o roxterm 3.11.1 on Arch Linux ... OK
o lxterminal 0.4.0 on Arch Linux ... OK
o sakura 3.8.4 on Arch Linux ... OK
o terminator 2.1.2 on Arch Linux ... OK except Tab
Following platforms are not actually tested by developers, but were tested
in the past.
o gnome-terminal 3.42.1 on Arch Linux ... OK except transparency
o gnome-terminal 3.38.1 on Arch Linux ... OK except transparency
o gnome-terminal 3.34.2 on Arch Linux ... OK except transparency
o gnome-terminal 3.32.2 on Arch Linux ... OK except transparency
o gnome-terminal 3.30.2 on Arch Linux ... OK except transparency
o gnome-terminal 3.28.2 on Arch Linux ... OK except transparency
o gnome-terminal 3.26.2 on Arch Linux ... OK except transparency
o gnome-terminal 3.24.2 on Arch Linux ... OK except transparency
o gnome-terminal 3.16.2 on Ubuntu 15.10
o gnome-terminal 3.14.2 on Ubuntu 15.04
o gnome-terminal 3.15.0 on Ubuntu 14.10
o gnome-terminal 3.6.2 on Ubuntu 14.10
o gnome-terminal 3.6.2 on Ubuntu 13.10
o gnome-terminal 3.6.1 on Ubuntu 13.04
o gnome-terminal 3.6.0-0ubuntu1 on Ubuntu 12.10
o gnome-terminal 3.4.1.1-0ubuntu1 on Ubuntu 12.04
o gnome-terminal 3.0.1 on Ubuntu 11.10
o gnome-terminal 2.32.0 on Ubuntu 10.10
o gnome-terminal 3.22.0 on Fedora 25
o gnome-terminal 3.20.2 on Fedora 24
o lxterminal 0.3.2 on Arch Linux
o roxterm 3.3.2 on Arch Linux
o roxterm 3.1.4 on Ubuntu 15.10
o roxterm 2.9.5 on Ubuntu 15.04
o roxterm 2.8.2 on Ubuntu 14.10
o roxterm 2.7.2 on Ubuntu 13.10
o roxterm 2.6.5-1 on Ubuntu 13.04
o roxterm 1.22.2-1 on Ubuntu 12.04
o roxterm 1.22.2 on Ubuntu 11.10
o roxterm 1.18.5 on Ubuntu 10.10
o roxterm 1.18.5 on NetBSD 3.0.1
o roxterm 3.3.2 on Fedora 25
o roxterm 3.3.2 on Fedora 24
o synaptic 0.80.2 on Ubuntu 13.10
o synaptic 0.80 on Ubuntu 13.04
o synaptic 0.75.12build1 on Ubuntu 12.10
o synaptic 0.75.9ubuntu1 on Ubuntu 12.04
o synaptic 0.63.1 on Ubuntu 10.10
o evilvte 0.5.1 on Ubuntu 13.10
o evilvte 0.5.1-1 on Ubuntu 13.04
o evilvte 0.5.0-1 on Ubuntu 12.04
o evilvte 0.4.8 on Ubuntu 11.10
o evilvte 0.4.9pre4 on NetBSD 3.0.1
o sakura 3.8.3 on Arch Linux
o sakura 3.7.1 on Arch Linux
o sakura 3.6.0 on Arch Linux
o sakura 3.1.5 on Ubuntu 15.04
o sakura 3.1.0 on Ubuntu 13.10
o sakura 3.0.4-2 on Ubuntu 13.04
o sakura 3.0.3-2 on Ubuntu 12.04
o sakura 2.4.2 on Ubuntu 11.10
o sakura 2.3.8 on Ubuntu 10.10
o lxterminal 0.1.11 on Ubuntu 13.10
o lxterminal 0.1.11-4ubuntu2 on Ubuntu 13.04
o lxterminal 0.1.11-2ubuntu1 on Ubuntu 12.04
o lxterminal 0.1.11 on Ubuntu 11.10
o gtkterm2 0.2.3 on NetBSD 3.0.1
o terminator 2.1.1 on Arch Linux
o terminator 1.92 on Arch Linux
o terminator 1.91 on Arch Linux
|