Browse Source

remove second cursor

pull/123/head
butlerx 8 years ago
committed by cbutler
parent
commit
75e00be4cf
No known key found for this signature in database GPG Key ID: 9EB3D625BD14DDEC
  1. 1
      .eslintignore
  2. 9
      gulpfile.js
  3. 2
      public/wetty/index.html
  4. 2
      public/wetty/wetty.min.js
  5. 16076
      src/hterm_all.js
  6. 3
      src/wetty.js

1
.eslintignore

@ -1,3 +1,4 @@
node_modules/
public/
.esm-cache
*hterm*

9
gulpfile.js

@ -5,9 +5,9 @@ const babel = require('gulp-babel');
const shell = require('gulp-shell');
const del = require('del');
gulp.task('compress', ['hterm'], () =>
gulp.task('compress', [], () =>
gulp
.src(['./libapps/hterm_all.js', './src/wetty.js'])
.src(['./src/hterm_all.js', './src/wetty.js'])
.pipe(concat('wetty.js'))
.pipe(babel())
.pipe(
@ -28,7 +28,7 @@ gulp.task(
shell.task(
[
'git clone https://chromium.googlesource.com/apps/libapps',
'LIBDOT_SEARCH_PATH=$(pwd)/libapps ./libapps/libdot/bin/concat.sh -i ./libapps/hterm/concat/hterm_all.concat -o ./libapps/hterm_all.js',
'LIBDOT_SEARCH_PATH=$(pwd)/libapps ./libapps/libdot/bin/concat.sh -i ./libapps/hterm/concat/hterm_all.concat -o ./src/hterm_all.js',
],
{
verbose: true,
@ -36,4 +36,5 @@ gulp.task(
),
);
gulp.task('default', ['compress'], () => del(['./libapps']));
gulp.task('default', ['compress']);
gulp.task('upgrade', ['hterm', 'compress'], () => del(['./libapps']));

2
public/wetty/index.html

@ -35,7 +35,7 @@
</head>
<body>
<div id="overlay"><input type="button" onclick="location.reload();" value="reconnect" /></div>
<div id="terminal" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></div>
<div id="terminal"></div>
<script src="/wetty/wetty.min.js"></script>
</body>
</html>

2
public/wetty/wetty.min.js

File diff suppressed because one or more lines are too long

16076
src/hterm_all.js

File diff suppressed because it is too large

3
src/wetty.js

@ -41,10 +41,11 @@ socket.on('connect', () => {
term.prefs_.set('use-default-window-copy', true);
term.prefs_.set('send-encoding', 'raw');
term.prefs_.set('receive-encoding', 'raw');
term.prefs_.set('font-size', 14);
term.scrollPort_.screen_.setAttribute('spellcheck', 'false');
term.scrollPort_.screen_.setAttribute('autocorrect', 'false');
term.scrollPort_.screen_.setAttribute('autocomplete', 'false');
term.scrollPort_.screen_.setAttribute('contenteditable', 'true');
term.scrollPort_.screen_.setAttribute('contenteditable', 'false');
term.runCommandClass(Wetty, document.location.hash.substr(1));
socket.emit('resize', {

Loading…
Cancel
Save