Skip to content

Releases: jcubic/jquery.terminal

1.19.1

19 Aug 09:40
Compare
Choose a tag to compare

1.19.1

Bug Fixes

  • fix type definition to match types from @types/jquery #412
  • fix infinite loop in regex formatter with loop option #409

1.19.0

21 Jul 12:33
Compare
Choose a tag to compare

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

  • fix overtyping function #409
  • remove CR characters only for display
  • don't invoke onPosition change when calling position and don't change the value
  • fix clearing CR characters that was causing removal of empty lines #411

1.18.0

08 Jul 07:22
Compare
Choose a tag to compare

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

  • handle formatters that replace backspaces and characters before #409
  • fix broken < > & with cmd + prism #410
  • fix background in prism with black background terminal
  • remove warning from nested_formatting when if find nested formatting

1.17.0

01 Jul 13:37
Compare
Choose a tag to compare

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

01 Jul 13:36
Compare
Choose a tag to compare

Bugs

  • fix paste/select all when click below .cmd
  • second fix to jumping on right click (context menu) #399
  • change $.terminal.prism_formatting to $.terminal.prism

1.16.0

03 Jun 10:49
Compare
Choose a tag to compare

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

13 May 09:45
Compare
Choose a tag to compare

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

26 Mar 16:32
Compare
Choose a tag to compare

1.14.0

Features

  • pass options to formatters and accept option unixFormattingEscapeBrackets in unix_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

03 Mar 22:03
Compare
Choose a tag to compare
  • fix minified css file + fix scrollbar

1.12.0

02 Mar 20:40
Compare
Choose a tag to compare

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