|
1 | | -hterm.Terminal.IO.prototype.sendString = function(data) { |
| 1 | +hterm.Terminal.IO.prototype.sendString = function (data) { |
2 | 2 | native.sendInput(data); |
3 | 3 | }; |
4 | | -hterm.Terminal.IO.prototype.onVTKeystroke = function(data) { |
| 4 | +hterm.Terminal.IO.prototype.onVTKeystroke = function (data) { |
5 | 5 | native.sendInput(data); |
6 | 6 | }; |
7 | | -hterm.Terminal.IO.prototype.onTerminalResize = function(width, height) { |
| 7 | +hterm.Terminal.IO.prototype.onTerminalResize = function (width, height) { |
8 | 8 | native.resize(width, height); |
9 | 9 | }; |
10 | | -hterm.ScrollPort.prototype.onTouch = function(e) { |
| 10 | +hterm.ScrollPort.prototype.onTouch = function (e) { |
11 | 11 | Object.defineProperty(e, 'defaultPrevented', { value: true }); |
12 | 12 | }; |
13 | 13 |
|
@@ -36,7 +36,7 @@ function onTerminalReady() { |
36 | 36 | window.exports = {}; |
37 | 37 |
|
38 | 38 | this.setCursorVisible(true); |
39 | | - term.io.push(); |
| 39 | + var io = term.io.push(); |
40 | 40 | term.reset(); |
41 | 41 |
|
42 | 42 | let decoder = new TextDecoder(); |
@@ -105,7 +105,25 @@ function onTerminalReady() { |
105 | 105 |
|
106 | 106 | hterm.openUrl = (url) => native.openLink(url); |
107 | 107 |
|
| 108 | + io.print('Welcome to Harmonix! A project to run Linux ELF binary on HarmonyOS.\r\n'); |
| 109 | + io.print('Now aarch64 and x86_64 ELF binary are supported(by harmonix-qemu-aarch64 and harmonix-qemu-x86_64).\r\n'); |
| 110 | + io.print('\r\n'); |
| 111 | + io.print( |
| 112 | + ' _ _ _ \r\n' + |
| 113 | + ' | | | | __ _ _ __ _ __ ___ ___ _ __ (_)_ __\r\n' + |
| 114 | + ' | |_| |/ _` | \'__| \'_ ` _ \\ / _ \\| \'_ \\| \\ \\/ /\r\n' + |
| 115 | + ' | _ | (_| | | | | | | | | (_) | | | | |> < \r\n' + |
| 116 | + ' |_| |_|\\__,_|_| |_| |_| |_|\\___/|_| |_|_/_/\\_\\\r\n' |
| 117 | + ) |
| 118 | + io.print('\r\n'); |
| 119 | + io.print('\r\n'); |
| 120 | + io.print('To install or reinstall Alpine Linux, run `harmonix_install_alpine`.\r\n'); |
| 121 | + io.print('To start Alpine Linux, run `harmonix_run_alpine`.\r\n'); |
| 122 | + io.print('\r\n'); |
| 123 | + io.print('You can also use Harmonix in HiShell. To uninstall from HiShell, run `harmonix_remove_alpine`\r\n'); |
| 124 | + io.print('\r\n'); |
| 125 | + io.print('To customize linux root filesystem or run x86_64, see harmonix_install_alpine and harmonix_run_alpine script.\r\n'); |
| 126 | + |
108 | 127 | native.load(); |
109 | 128 | native.syncFocus(); |
110 | | - |
111 | 129 | } |
0 commit comments