Skip to content

Releases: jcubic/jquery.terminal

1.11.0

17 Dec 15:57
Compare
Choose a tag to compare

Features

  • update API method accept options 3rd argument
  • speed up refresh on resize by checking character size in font resizer (reported by @artursOs)
  • change command line num chars on resize + settings.numChars (reported by @artursOs #353)
  • add remove api method that call update(line, null);
  • don't call scroll to bottom on resize/refresh/update/remove
  • improve scroll_element plugin by using document.scrollingElement if present and cache the value
  • resizer plugin use ResizeObserver if defined
  • remove fake call to finalize in echo to catch potential error
  • silent boolean 3rd argument to cmd::set and 2nd to terminal::set_command
  • handy classes to change cursor animation in IE

Bugs

  • don't prevent default scroll when terminal have no scrollbar
  • restart cursor animation on keydown (requested by @themeow on chat)
  • don't redraw whole terminal in update api method
  • show exception from onAfterRedraw on terminal
  • don't show first argument to method in help command when login is used
  • allow to call disable/focus(false) from command + fix focus(false) with single terminal
    (reported by Eric Lindgren #359)
  • fix autofocus on init

1.10.1

10 Nov 08:36
Compare
Choose a tag to compare
  • fix scroll to bottom on scrolling when terminal is disabled (reported by @RomanPerin #355)

Version 1.10.0

07 Nov 19:51
Compare
Choose a tag to compare

Features

  • new api for formatters Array with 2 elements regex and replacement string (it fix issue when formatters change
    length of string - emoji demo)
  • normalize IE key property for keymap + always use +SPACEBAR if there is any control key
  • cursor text for terminal and cmd
  • onEchoCommand callback gets second argument command
  • cmd keymap api function, along with object and no arguments, accept string as first argument and function as second
  • only one exception per callback event
  • select all context menu (based on idea from CodeMirror)

Bugs

  • fix cursor in IE and iOS/Safari reported by @RinaVladimyrovna #350
  • don't apply formatters in echo commands for completion (found by applying completion to emoji demo)
  • fix substring and html entity (entering < & > in command line was showing entity not character)
  • paste context menu not for img tag to allow to save as
  • fix nested formatting (by introducing meta on formatter function that apply the function to whole string)
  • fix format_split when text have \ character before ]
  • fix line ending on windows in command line (CRLF)
  • fix copy from command line
  • fix cursor position when command line have formatting (using formatters)
  • fix cursor position when command line have 3 lines
  • don't apply formatters for greetings not only for signture (user can use formatting because he control the string)
  • fix max call stack exception when error happen in onEchoCommand
  • Chinese character occupy 2 characters same as in linux terminal (requirement wcwidth and css variables)
  • fix substring and string like '<a' that was breaking command line
  • fix newlines in string when do parse/split _command (used by command line)
  • fix split equal and command line splitting
  • fix exception in keymap when calling original in the one that was overwriten by terminal like CTRL+V (reported by Ravi Teja Mamidipaka #351)
  • not all keymaps had terminal as this context