]> git.proxmox.com Git - mirror_xterm.js.git/log
mirror_xterm.js.git
8 years agoAdd tests
Daniel Imms [Fri, 15 Jul 2016 23:31:57 +0000 (16:31 -0700)]
Add tests

8 years agoMerge remote-tracking branch 'upstream/master' into 118_support_custom_keydown_handler
Daniel Imms [Fri, 15 Jul 2016 23:21:06 +0000 (16:21 -0700)]
Merge remote-tracking branch 'upstream/master' into 118_support_custom_keydown_handler

8 years agoAllow custom keydown handler to be attached
Daniel Imms [Fri, 15 Jul 2016 23:16:37 +0000 (16:16 -0700)]
Allow custom keydown handler to be attached

Fixes #118

8 years agoMerge pull request #178 from sourcelair/issue/169
Paris Kasidiaris [Wed, 13 Jul 2016 17:18:41 +0000 (20:18 +0300)]
Merge pull request #178 from sourcelair/issue/169

Fix entering hash (#) on British keyboard layout

8 years agoClarify `isThirdLevelShift`
Paris [Wed, 13 Jul 2016 14:53:33 +0000 (17:53 +0300)]
Clarify `isThirdLevelShift`

8 years agoFix thirdLevelKey clause
Paris [Wed, 13 Jul 2016 14:10:45 +0000 (17:10 +0300)]
Fix thirdLevelKey clause

8 years agoSeparate dummy keyDown and keyPress events in tests
Paris [Wed, 13 Jul 2016 13:48:48 +0000 (16:48 +0300)]
Separate dummy keyDown and keyPress events in tests

8 years agoFix #169
Paris [Wed, 13 Jul 2016 13:35:57 +0000 (16:35 +0300)]
Fix #169

8 years agoMerge pull request #177 from sourcelair/document-everything-part-2
Paris Kasidiaris [Wed, 13 Jul 2016 12:38:18 +0000 (15:38 +0300)]
Merge pull request #177 from sourcelair/document-everything-part-2

Document all public methods of Xterm

8 years agoFix all leading whitespaces (eliminate tabs)
Paris [Wed, 13 Jul 2016 10:24:53 +0000 (13:24 +0300)]
Fix all leading whitespaces (eliminate tabs)

8 years agoFix leading whitespaces (eliminate tabs)
Paris [Wed, 13 Jul 2016 10:22:51 +0000 (13:22 +0300)]
Fix leading whitespaces (eliminate tabs)

8 years agoDocument all public methods
Paris [Wed, 13 Jul 2016 10:14:02 +0000 (13:14 +0300)]
Document all public methods

8 years agoDocument more public methods and transform comments to JSDoc compatible
Paris [Wed, 13 Jul 2016 10:03:40 +0000 (13:03 +0300)]
Document more public methods and transform comments to JSDoc compatible

8 years agoMerge pull request #161 from jerch/tests_xterm
Paris Kasidiaris [Tue, 12 Jul 2016 21:46:44 +0000 (00:46 +0300)]
Merge pull request #161 from jerch/tests_xterm

xterm test cases

8 years agoMerge branch 'tests_xterm' of https://github.com/jerch/xterm.js into tests_xterm
Jörg Breitbart [Tue, 12 Jul 2016 19:27:06 +0000 (21:27 +0200)]
Merge branch 'tests_xterm' of https://github.com/jerch/xterm.js into tests_xterm

8 years agocleanup xterm test file
Jörg Breitbart [Sat, 9 Jul 2016 12:57:57 +0000 (14:57 +0200)]
cleanup xterm test file

8 years agoselecting sucessful tests
Jörg Breitbart [Tue, 5 Jul 2016 12:55:03 +0000 (14:55 +0200)]
selecting sucessful tests

8 years agoadding xterm comparison tests
Jörg Breitbart [Tue, 5 Jul 2016 09:36:30 +0000 (11:36 +0200)]
adding xterm comparison tests

8 years agoMerge pull request #165 from sourcelair/first-docs
Paris Kasidiaris [Sun, 10 Jul 2016 00:57:05 +0000 (03:57 +0300)]
Merge pull request #165 from sourcelair/first-docs

Document several public methods

8 years agocleanup xterm test file
Jörg Breitbart [Sat, 9 Jul 2016 12:57:57 +0000 (14:57 +0200)]
cleanup xterm test file

8 years agoMerge pull request #168 from freebroccolo/master
Paris Kasidiaris [Fri, 8 Jul 2016 22:47:52 +0000 (01:47 +0300)]
Merge pull request #168 from freebroccolo/master

:arrow_up: pty.js@0.3.1

8 years ago:arrow_up: pty.js@0.3.1
Darin Morrison [Thu, 7 Jul 2016 18:42:49 +0000 (12:42 -0600)]
:arrow_up: pty.js@0.3.1

8 years agoBetter document scrollDisp
Paris [Wed, 6 Jul 2016 09:37:45 +0000 (12:37 +0300)]
Better document scrollDisp

8 years agoRemove most `public` directives
Paris [Wed, 6 Jul 2016 09:36:11 +0000 (12:36 +0300)]
Remove most `public` directives

8 years agoprogress
Paris [Fri, 24 Jun 2016 00:41:08 +0000 (03:41 +0300)]
progress

8 years agoFirst chunk of documentation
Paris [Sun, 19 Jun 2016 19:02:20 +0000 (22:02 +0300)]
First chunk of documentation

8 years agoMerge pull request #163 from jerch/fix_147_162
Paris Kasidiaris [Wed, 6 Jul 2016 09:29:01 +0000 (12:29 +0300)]
Merge pull request #163 from jerch/fix_147_162

fixing #147 and #162

8 years agodisable refresh for tests
Jörg Breitbart [Tue, 5 Jul 2016 22:23:10 +0000 (00:23 +0200)]
disable refresh for tests

8 years agofixing #147 and #162
Jörg Breitbart [Tue, 5 Jul 2016 21:54:15 +0000 (23:54 +0200)]
fixing #147 and #162

8 years agoselecting sucessful tests
Jörg Breitbart [Tue, 5 Jul 2016 12:55:03 +0000 (14:55 +0200)]
selecting sucessful tests

8 years agoMerge pull request #160 from Tyriar/159_fix_nbsp_resize
Paris Kasidiaris [Tue, 5 Jul 2016 10:53:34 +0000 (13:53 +0300)]
Merge pull request #160 from Tyriar/159_fix_nbsp_resize

Have ' ' chars get inserted correctly after a resize

8 years agoMerge pull request #155 from Tyriar/154_fix_resize_at_top_exception
Paris Kasidiaris [Tue, 5 Jul 2016 09:56:45 +0000 (12:56 +0300)]
Merge pull request #155 from Tyriar/154_fix_resize_at_top_exception

Fix exception when increasing size when viewport is at top of buffer

8 years agoadding xterm comparison tests
Jörg Breitbart [Tue, 5 Jul 2016 09:36:30 +0000 (11:36 +0200)]
adding xterm comparison tests

8 years agoHave ' ' chars get inserted correctly after a resize
Daniel Imms [Mon, 4 Jul 2016 20:16:34 +0000 (13:16 -0700)]
Have ' ' chars get inserted correctly after a resize

Since the character spec didn't contain a character width it was being skipped
during refresh.

Fixes #159

8 years agoCorrect if condition
Daniel Imms [Mon, 4 Jul 2016 19:15:47 +0000 (12:15 -0700)]
Correct if condition

8 years agoMerge pull request #153 from sourcelair/fix/pasting
Paris Kasidiaris [Thu, 30 Jun 2016 11:29:28 +0000 (14:29 +0300)]
Merge pull request #153 from sourcelair/fix/pasting

Fix Ctrl+Shift+V pasting

8 years agoFix exception when increasing size when viewport is at top of buffer
Daniel Imms [Thu, 30 Jun 2016 09:05:06 +0000 (02:05 -0700)]
Fix exception when increasing size when viewport is at top of buffer

Fixes #154

8 years agoFix Ctrl+Shift+V pasting
TDaglis [Thu, 30 Jun 2016 07:58:00 +0000 (10:58 +0300)]
Fix Ctrl+Shift+V pasting

8 years agoMerge pull request #148 from bfis/fix/MouseEvent_clone
Paris Kasidiaris [Mon, 27 Jun 2016 13:04:33 +0000 (16:04 +0300)]
Merge pull request #148 from bfis/fix/MouseEvent_clone

Fix MouseEvent cloning

8 years agoFix MouseEvent cloning
Benjamin Fischer [Mon, 27 Jun 2016 11:27:19 +0000 (13:27 +0200)]
Fix MouseEvent cloning
Cloneing MouseEvent instances via __proto__ (lline 1099) caused the cloned object to be broken and throw "TypeError: Illegal invocation" during property access ("ev.shiftKey" line 1020).

8 years agoMerge pull request #144 from jerch/wcwidth
Paris Kasidiaris [Mon, 27 Jun 2016 09:02:47 +0000 (12:02 +0300)]
Merge pull request #144 from jerch/wcwidth

wcwidth calculation

8 years agoadding unicode test cases
Jörg Breitbart [Sun, 26 Jun 2016 10:50:06 +0000 (12:50 +0200)]
adding unicode test cases

8 years agocleanup
Jörg Breitbart [Sat, 25 Jun 2016 08:12:21 +0000 (10:12 +0200)]
cleanup

8 years agowcwidth only for printables
Jörg Breitbart [Fri, 24 Jun 2016 14:25:00 +0000 (16:25 +0200)]
wcwidth only for printables

8 years agoMerge pull request #142 from Tyriar/patch-1
Paris Kasidiaris [Fri, 24 Jun 2016 12:58:38 +0000 (05:58 -0700)]
Merge pull request #142 from Tyriar/patch-1

Only blink cursor if the terminal has focus

8 years agowcwidth calculation
Jörg Breitbart [Fri, 24 Jun 2016 12:16:12 +0000 (14:16 +0200)]
wcwidth calculation

8 years agoOnly blink cursor if the terminal has focus
Daniel Imms [Fri, 24 Jun 2016 05:16:29 +0000 (22:16 -0700)]
Only blink cursor if the terminal has focus

Fixes #141

8 years agoMerge pull request #138 from dbkaplun/disable-ligatures
Paris Kasidiaris [Fri, 24 Jun 2016 01:39:52 +0000 (18:39 -0700)]
Merge pull request #138 from dbkaplun/disable-ligatures

Disable ligatures which mess up rendering for certain fonts

8 years agoDisable ligatures
Dan Kaplun [Thu, 23 Jun 2016 22:07:38 +0000 (15:07 -0700)]
Disable ligatures

8 years agoMerge pull request #130 from Tyriar/windows_demo
Antonis Kalipetis [Thu, 23 Jun 2016 08:52:16 +0000 (11:52 +0300)]
Merge pull request #130 from Tyriar/windows_demo

Get demo working on Windows

8 years agoBind to 127.0.0.1 on Windows only
Daniel Imms [Thu, 23 Jun 2016 03:43:41 +0000 (20:43 -0700)]
Bind to 127.0.0.1 on Windows only

8 years agoMerge remote-tracking branch 'upstream/master' into windows_demo
Daniel Imms [Thu, 23 Jun 2016 03:36:05 +0000 (20:36 -0700)]
Merge remote-tracking branch 'upstream/master' into windows_demo

8 years agoMerge pull request #137 from sourcelair/improve-paste
Paris Kasidiaris [Sun, 19 Jun 2016 17:45:31 +0000 (20:45 +0300)]
Merge pull request #137 from sourcelair/improve-paste

Fix cumbersome pasting with Cmd + V

8 years agoFix cumbersome pasting with Cmd + V
Paris [Sun, 19 Jun 2016 03:12:25 +0000 (06:12 +0300)]
Fix cumbersome pasting with Cmd + V

For some reason, setting the element's contentEditable value to true within a keyboard event, while the element has focus, did not allow pasting with clipboard, unless the element gets clicked explicitly.

8 years agoFix npm scripts
Daniel Imms [Thu, 16 Jun 2016 23:31:01 +0000 (16:31 -0700)]
Fix npm scripts

8 years agoMerge remote-tracking branch 'upstream/master' into windows_demo
Daniel Imms [Thu, 16 Jun 2016 23:28:20 +0000 (16:28 -0700)]
Merge remote-tracking branch 'upstream/master' into windows_demo

8 years agoMerge pull request #131 from sourcelair/issue/120
Paris Kasidiaris [Thu, 16 Jun 2016 14:06:10 +0000 (17:06 +0300)]
Merge pull request #131 from sourcelair/issue/120

Fix focus and blur events emission

8 years agoOn big refreshes remove `term.rowContainer` instead of `term.element` from DOM
Paris [Thu, 16 Jun 2016 08:47:05 +0000 (11:47 +0300)]
On big refreshes remove `term.rowContainer` instead of `term.element` from DOM

Fix #120

8 years agoProgress with #120
Paris [Thu, 16 Jun 2016 08:41:41 +0000 (11:41 +0300)]
Progress with #120

8 years agoMerge pull request #133 from Tyriar/132_fix_constant_focus
Paris Kasidiaris [Wed, 15 Jun 2016 09:53:31 +0000 (12:53 +0300)]
Merge pull request #133 from Tyriar/132_fix_constant_focus

Only refresh when asked

8 years agoMerge pull request #121 from Tyriar/119_fix_cursor_blink
Paris Kasidiaris [Wed, 15 Jun 2016 06:51:49 +0000 (09:51 +0300)]
Merge pull request #121 from Tyriar/119_fix_cursor_blink

Fix cursor blinking when enabled

8 years agoUse CSS animations
Daniel Imms [Tue, 14 Jun 2016 17:52:49 +0000 (10:52 -0700)]
Use CSS animations

8 years agoMerge remote-tracking branch 'upstream/master' into 119_fix_cursor_blink
Daniel Imms [Tue, 14 Jun 2016 17:36:56 +0000 (10:36 -0700)]
Merge remote-tracking branch 'upstream/master' into 119_fix_cursor_blink

8 years agoOnly refresh when asked
Daniel Imms [Tue, 14 Jun 2016 17:33:24 +0000 (10:33 -0700)]
Only refresh when asked

Fixes #132

8 years agoMerge pull request #117 from Tyriar/86_protect_max_refresh
Paris Kasidiaris [Tue, 14 Jun 2016 08:11:04 +0000 (11:11 +0300)]
Merge pull request #117 from Tyriar/86_protect_max_refresh

Bound refresh max rows to this.rows not this.lines

8 years agoMerge pull request #129 from sourcelair/docs
Paris Kasidiaris [Tue, 14 Jun 2016 07:56:08 +0000 (10:56 +0300)]
Merge pull request #129 from sourcelair/docs

Improve docs building script and template

8 years agoMerge pull request #128 from Tyriar/127_debounce_refresh
Paris Kasidiaris [Tue, 14 Jun 2016 07:49:53 +0000 (10:49 +0300)]
Merge pull request #128 from Tyriar/127_debounce_refresh

Allow refresh to execute 30 times a second maximum

8 years agoGet demo working on Windows
Daniel Imms [Mon, 13 Jun 2016 22:50:18 +0000 (15:50 -0700)]
Get demo working on Windows

- Removed bin bash scripts in favor of npm scripts so they work
  cross-platform
- Moved to use 127.0.0.1 as 0.0.0.0 doesn't work on Windows

Note that this doesn't work with the current pty.js as it doesn't build on
Windows.

8 years agoMerge pull request #125 from sourcelair/addon-loader
Paris Kasidiaris [Mon, 13 Jun 2016 21:58:23 +0000 (00:58 +0300)]
Merge pull request #125 from sourcelair/addon-loader

Implement addon loader (CommonJS + RequireJS)

8 years agoImplement docs building
Paris [Mon, 13 Jun 2016 21:21:17 +0000 (00:21 +0300)]
Implement docs building

8 years agoImplement test
Paris [Mon, 13 Jun 2016 21:05:47 +0000 (00:05 +0300)]
Implement test

8 years agoAllow refresh to execute 30 times a second maximum
Daniel Imms [Mon, 13 Jun 2016 19:37:16 +0000 (12:37 -0700)]
Allow refresh to execute 30 times a second maximum

For commands that pass a significant amount of output to the write function,
this prevents the terminal maxing out the CPU and making the UI unresponsive.
While commands can still run beyond what they do on the terminal, it is far
better with a debounce in place as every single terminal manipulation does not
need to be constructed in the DOM.

A side-effect of this is that it makes ^C to interrupt a process seem more
responsive.

Fixes #127
Fixes #126

8 years agoImplement addon loader (CommonJS + RequireJS)
Paris [Mon, 13 Jun 2016 16:07:29 +0000 (19:07 +0300)]
Implement addon loader (CommonJS + RequireJS)

Closes #96

8 years agoMerge pull request #122 from Tyriar/demo_options
Paris Kasidiaris [Mon, 13 Jun 2016 12:03:10 +0000 (15:03 +0300)]
Merge pull request #122 from Tyriar/demo_options

Add basic options selection to demo

8 years agoMerge pull request #123 from Tyriar/jsdoc
Paris Kasidiaris [Mon, 13 Jun 2016 11:58:17 +0000 (14:58 +0300)]
Merge pull request #123 from Tyriar/jsdoc

Add some jsdoc for important functions

8 years agoMerge pull request #93 from Tyriar/linkify_ip_addr
Antonis Kalipetis [Mon, 13 Jun 2016 11:53:17 +0000 (14:53 +0300)]
Merge pull request #93 from Tyriar/linkify_ip_addr

Add IP addresses to linkify

8 years agoAdd some jsdoc for important functions
Daniel Imms [Sat, 11 Jun 2016 03:05:26 +0000 (20:05 -0700)]
Add some jsdoc for important functions

Part of #13

8 years agoAdd basic options selection to demo
Daniel Imms [Sat, 11 Jun 2016 02:15:52 +0000 (19:15 -0700)]
Add basic options selection to demo

This will make it easier to test options without needing to modify the demo.

8 years agoAdd a bunch of tests
Daniel Imms [Sat, 11 Jun 2016 01:53:32 +0000 (18:53 -0700)]
Add a bunch of tests

8 years agoMerge remote-tracking branch 'upstream/master' into linkify_ip_addr
Daniel Imms [Sat, 11 Jun 2016 01:08:39 +0000 (18:08 -0700)]
Merge remote-tracking branch 'upstream/master' into linkify_ip_addr

8 years agoTidy up code
Daniel Imms [Sat, 11 Jun 2016 01:05:24 +0000 (18:05 -0700)]
Tidy up code

8 years agoFix cursor blinking when enabled
Daniel Imms [Sat, 11 Jun 2016 01:01:34 +0000 (18:01 -0700)]
Fix cursor blinking when enabled

Fixes #119

8 years agoCheck optional port clause after domain too
Daniel Imms [Fri, 10 Jun 2016 20:15:59 +0000 (13:15 -0700)]
Check optional port clause after domain too

8 years agoBound refresh max rows to this.rows not this.lines
Daniel Imms [Fri, 10 Jun 2016 18:51:00 +0000 (11:51 -0700)]
Bound refresh max rows to this.rows not this.lines

this.row is the size of rows in the viewport, this.lines is the buffer. It's
only possible to refresh `0` to `this.rows - 1`.

Fixes #86

8 years agoMerge pull request #60 from runarberg/master
Paris Kasidiaris [Fri, 10 Jun 2016 16:32:45 +0000 (19:32 +0300)]
Merge pull request #60 from runarberg/master

Fix cross platform input problems

8 years agoFix third level shifts for Mac OS and windows
runarberg [Wed, 1 Jun 2016 17:06:57 +0000 (17:06 +0000)]
Fix third level shifts for Mac OS and windows

ISO third level keys were not working. That prevented some inputting
important characters (like pipe `|` and caret `^`) on some keyboard
layouts.

Instead of parsing the user-agent string to find the users os, we now
look into the `platform` attribute of the `navigator` object.

Removed the hijacking of the command key `⌘` on Mac OS as the `Alt` key
on other systems.

8 years agoMerge pull request #115 from sourcelair/decimal-terminal-flags
Paris Kasidiaris [Fri, 10 Jun 2016 16:07:25 +0000 (19:07 +0300)]
Merge pull request #115 from sourcelair/decimal-terminal-flags

Stop using binary literals

8 years agoStop using binary literals. Non ES6 compatible
Paris [Fri, 10 Jun 2016 16:02:49 +0000 (19:02 +0300)]
Stop using binary literals. Non ES6 compatible

8 years agoMerge pull request #114 from sourcelair/fix-copy-nbsp
Paris Kasidiaris [Fri, 10 Jun 2016 14:05:10 +0000 (17:05 +0300)]
Merge pull request #114 from sourcelair/fix-copy-nbsp

Stop copying non-breaking spaces into clipboard

8 years agoImplement tests
Paris [Fri, 10 Jun 2016 13:35:56 +0000 (16:35 +0300)]
Implement tests

8 years agoExport copied text processing to static method
Paris [Fri, 10 Jun 2016 13:27:58 +0000 (16:27 +0300)]
Export copied text processing to static method

8 years agoFix copying of non-breaking spaces
Paris [Fri, 10 Jun 2016 13:17:14 +0000 (16:17 +0300)]
Fix copying of non-breaking spaces

8 years agoMerge pull request #109 from Tyriar/65_send_ctrl_l_r_key
Antonis Kalipetis [Fri, 10 Jun 2016 12:57:10 +0000 (15:57 +0300)]
Merge pull request #109 from Tyriar/65_send_ctrl_l_r_key

Jump over words with ctrl+left/right

8 years agoMerge remote-tracking branch 'upstream/master' into 65_send_ctrl_l_r_key
Daniel Imms [Fri, 10 Jun 2016 10:00:22 +0000 (03:00 -0700)]
Merge remote-tracking branch 'upstream/master' into 65_send_ctrl_l_r_key

8 years agoMerge pull request #110 from Tyriar/64_cursor_disappears_when_scrolling
Paris Kasidiaris [Fri, 10 Jun 2016 09:22:28 +0000 (12:22 +0300)]
Merge pull request #110 from Tyriar/64_cursor_disappears_when_scrolling

Draw cursor at correct position when scrolling

8 years agoMerge pull request #107 from runarberg/fix/ctrl-or-shift-insert-copy-pasting
Paris Kasidiaris [Fri, 10 Jun 2016 08:57:15 +0000 (11:57 +0300)]
Merge pull request #107 from runarberg/fix/ctrl-or-shift-insert-copy-pasting

Allow Ctrl/Shift + insert to copy/paste on windows and linux

8 years agoMerge pull request #112 from Tyriar/111_scroll_with_blank_lines_after_cursor
Paris Kasidiaris [Fri, 10 Jun 2016 08:40:08 +0000 (11:40 +0300)]
Merge pull request #112 from Tyriar/111_scroll_with_blank_lines_after_cursor

Improve scroll to work with blank lines after the cursor

8 years agoImprove scroll to work with blank lines after the cursor
Daniel Imms [Fri, 10 Jun 2016 04:05:45 +0000 (21:05 -0700)]
Improve scroll to work with blank lines after the cursor

This commit works fixes scrolling when there were blank lines after the cursor.
Here is what it does (blank rows are those added by running `clear`):

when increasing rows:
  if there are blank rows below the cursor:
    add a blank row to the bottom
  else if there is room in the buffer above the viewport
    scroll up
  else
    add a blank row to the bottom

when decreasing rows:
  if there are blank rows below the cursor:
    remove a blank row from the bottom
  else
    scroll down

Fixes #111

8 years agoDraw cursor at correct position when scrolling
Daniel Imms [Fri, 10 Jun 2016 02:59:59 +0000 (19:59 -0700)]
Draw cursor at correct position when scrolling

Fixes #64

8 years agoMore escape sequence tests
Daniel Imms [Fri, 10 Jun 2016 02:25:29 +0000 (19:25 -0700)]
More escape sequence tests