Releases: jcubic/jquery.terminal
Releases · jcubic/jquery.terminal
1.19.1
1.19.0
Features
- add TypeScript definition file
- update formatters API to have a way to return position after replace from function formatter
- regex formatters and $.tracking_replace now accept function as replacement
- update unix formatters to use new API so they work with command line
- set exit to false if no login provided
Bugs
1.18.0
1.18.0
Feature
- looping regex formatters that replace until they don't match the regex
- add tracking_replace to $.terminal namespace
- $.terminal.syntax helper
- new language for prism: "website" that handle html, javascript and css syntax
Bugs
1.17.0
Features
- add ascii_table utility in separated file
- per user command line history
- add $.terminal.parse_options which return same object as yargs parser
-
$.jrpc helper now return its own created promise instead of $ .ajax - add wcwidth as dependency so it will always show wider characters correctly (in browsers will work the same as optional)
- expose terminal exception in $.terminal namespace
- new API option doubleTab #405
Bugfix
- disable history in read & login (regression from 1.16.0 history interpreter option)
- fix recursive error on extended commands (but it will only work on exact same commands without trailing white space)
- create copy of Prism for formatter so it can be used with normal html based prism snippets
- double fix: command line when formatter return empty formatting and prism that return empty formatting after
(
and space - third fix fox jumping on right click
- fix columns method
- fix infinite loop when regex in formatters don't have g flag
- fix parsing escape quotes
- fix split equal to handle brackets when using without formatting
- fix command line wrapping if prompt contain brackets as text #407
- insert ^C where cursor was located #404
- fix echo crlf (windows line ending) #408
- allow to call cmd without arguments
- rename undocumented remove API method to remove_line so you can call jQuery remove
- fix throwing exception when there is error in formatter (it now only show alert)
- fix double exception when exec command throw exception
1.16.1
1.16.0
Features
- allow to have limited import when export is save and restored from JSON #393
- add support for new u and s regex flags when parsing commands
- add less plugin based on the one from leash
- supports for promises returned from completion function
- add prism.js file that include monkey patch for PrismJS library (for syntax highlight) to output terminal formatting
- better read method #397
- handle promises returned from login and async login function #401
- add history option for push for easy disabling history for new interpreter
- add scrollObject option, so you can use body when terminal is on full screen div without height
Bugs
- fix resizer in Firefox #395
- fix $.terminal.columns and echo array #394
- fix $.terminal.columns for wider characters and terminal formatting
- fix rows() when using --size #398
- fix null in JSON hash
- fix jumping on right click (context menu) #399
- fix formatting inside brackets #396
- fix async interpreter #400
- use window resize when terminal added to body
1.15.0
Features
- allow to invoke terminal and cmd methods from extended commands
[[ terminal::set_prompt(">>> ") ]]
- new API method
invoke_key
that allow to invoke shortcut,terminal.invoke_key('CTRL+L')
will clear the terminal - shift+backspace now do the same thing as backspace
Bugs
- fix wider characters in IE #380
- fix issue with number of characters when terminal is added to DOM after creation in IE
- fix scrolling on body in Safari
- fix exception when entering JSON with literal strings #389
- fix orphaned closing bracket on multiline echo #390
- fix whitespace insert after first character after first focus #391
- fix open link when click on url from exception
1.14.0
1.14.0
Features
- pass options to formatters and accept option
unixFormattingEscapeBrackets
inunix_formatting
(PR by Marcel Link) - improve performance of repaint and layout whole page when changing content of the terminal
- use ch unit for wide characters if browser support it (it have wide support then css variables)
- keymap terminal method and allow to set shortcuts on runtime
Bugs
- fix newline as first character in formatting #375.
- fix error when echo undefined (it will echo string undefined since it's converted to string)
- fix first argument to keymap function, it's now keypress event
- fix resizing issue when scrollbar appear/disappear while you type #378
- fix cut of cursor when command line had full length lines and it was at the end #379
1.12.1
1.12.0
Features
- default options for cmd plugin
- caseSensitiveSearch option for both terminal and cmd plugins
Bugfixes
- fix urls ending with slash #365
- stringify non string commands in set_command
- fix scrolling of the page, when press space, after you click on the link
- fix scrolling flicker when terminal added to body
- small css fixes for element containers when terminal added to body
- fix for wide characters inside bigger text #369
- when clicking on terminal and it already had focus the textarea was blured #370
- fix parsing empty strings "" or ''
- fix warning from webpack about --char-width without default #371