Commit Graph
31 Commits
Author SHA1 Message Date
Miguel de Icaza c44f36c02f This renders the default background color as transparent, allowing me to put an image later on in the background 2020-05-26 21:48:16 -04:00
Miguel de Icaza 26c194094c Fuzzer bug fixes: The reflow code did not expect getTrimmedLenght to be actually the visible length, and crashed; There was an off-by-one error in the parsing of an escape sequence 2020-05-25 13:35:21 -04:00
pancake 3bbe5ef21c Fix an index out of bounds crash when using ansi256 color + bold (#125) 2020-05-24 09:42:45 -04:00
Miguel de Icaza 9b144c174c iOS: Some gestures 2020-05-12 00:15:10 -04:00
Miguel de Icaza d5cc9f640c Merge pull request #122 from migueldeicaza/ios-keyboard-accessory
iOS Keyboard accessory
2020-05-11 22:10:03 -04:00
Miguel de Icaza 5b91f4e290 Proper fix for the color parser, this was hanging the test suite 2020-05-11 21:59:43 -04:00
Miguel de Icaza 38b67af7eb iOS: implement cursor keys autorepeat on inputAccessoryView, clicksound, fix build 2020-05-11 21:57:23 -04:00
Miguel de Icaza e437ee4beb iOS InputAccessory support, implement some of the keys, and add some refactoring needed 2020-05-11 00:50:02 -04:00
Miguel de Icaza 09c631b9c2 Work in progress- support for accessoryview 2020-05-10 00:30:14 -04:00
Miguel de Icaza f2a6a6f27f Remove warnings 2020-05-10 00:29:35 -04:00
Miguel de Icaza e0b4f821c8 Cursor Save/Restore should save the character set, fixes the longest standing bug in XtermSharp/SwiftTerm 2020-05-09 23:10:28 -04:00
Miguel de Icaza 57f413c656 Another Fuzzer find - could crash the hex-parser 2020-05-09 23:10:28 -04:00
Miguel de Icaza 7bb7aa7c38 Merge pull request #110 from palmin/sixel-support-3
conversion of sixel graphics into images
2020-05-09 15:04:36 -04:00
Miguel de Icaza e8a8826c1a Update SixelDcsHandler.swift 2020-05-09 14:50:08 -04:00
Miguel de Icaza a46d19872d Alternative version 2020-05-09 14:46:46 -04:00
Miguel de Icaza 6fc3a820c3 Update the truecolor array as well 2020-05-09 14:45:36 -04:00
Miguel de Icaza f2d9828350 Update to 16 bit colors 2020-05-09 14:42:03 -04:00
Miguel de Icaza 15eef76d07 Debugging aids 2020-05-08 23:56:01 -04:00
Miguel de Icaza 63b08568bb Terminal emulation fixes for alt-screen and attributes.
The sequence "1049" in set mode is an alias for "1048" and "1047" and
should be clear the alt buffer when going to the normal buffer on that
scenario.  This was causing "junk" to remain on the alt-buffer because
it was not being cleared for certain TERM definitions (on the iOS
client I was setting TERM to xterm-256color, while on the Mac I was
using xterm-color, so it looked like an iOS bug, but it was a general
emulation bug).

The second problem is that I missunderstood how "OptionSet.remove" works,
the operation itself is mutating, so

style.remove (.underline)

Would be enough to remove the .underline from the optionset, but instead,
I was doing:

style = style.remove (.underline)

And this operation instead return the intersection of the existing value
and the passed value, meaning that I was never clearing the state when
precise commands were used, only when a full reset was issued (which was
the case with xterm-color)
2020-05-08 23:55:23 -04:00
Miguel de Icaza 4ce620bca0 Fix the SD implementation, and add tests 2020-05-05 22:03:52 -04:00
Miguel de Icaza aa062ec6e7 Implement hide/show cursor, DECTCEM 2020-05-04 22:40:24 -04:00
Miguel de Icaza e9f87d485e Finally got this behavior right, and make the old vttest pass, as well as another test 2020-05-04 22:26:31 -04:00
Miguel de Icaza 478dc1d3b6 iOS: Take keyboard size into consideration, remove debugging junk, disable iOS chuning for now 2020-05-04 00:01:20 -04:00
Miguel de Icaza 919ee32945 Merge branch 'master' into sixel-support-3 2020-05-03 23:35:19 -04:00
Miguel de Icaza 2fcee46eb9 Restructured default color handling.
The source of truth is now Terminal.foregroundColor and
Terminal.backgroundColor, which are in turn initialized from the
defaults in Colors.

Setting these will trigger an event that the UIs can catch and can
adjust their own colors.

But it is possible that someone wants a high-fidelity color, tied to a
particular color space, so to surface this, both the AppKit and UIKit
views surface a `nativeForegroundColor` and `nativeBackgroundColor`
that can take the native UIColor/NSColor and will set the underlying
terminal color in turn.
2020-05-03 17:59:39 -04:00
Miguel de Icaza ef62a251d1 Implement foreground/background color changes, fix bugs in the palette update code (it was not redisplaying changes - subtle, I was using the wrong index, one that did not take bold into account); implements palette reset as well - pending the actual changes to UI colors, see bug #111 2020-05-03 00:04:14 -04:00
Miguel de Icaza 41b70b394d Implement indexed color changes (OSC 4), and changed the internal color storage to 16 bits to support this 2020-05-02 20:21:55 -04:00
Anders Borum 0f1264e4ac Merge remote-tracking branch 'upstream/master' into sixel-support-3
# Conflicts:
#	Sources/SwiftTerm/SixelDcsHandler.swift
2020-05-02 21:50:12 +02:00
Marcin Krzyzanowski af67bea515 Merge branch 'master' into marcin/reorganize 2020-04-30 11:24:55 +02:00
Marcin Krzyzanowski 4d737968a8 Merge branch 'master' into marcin/reorganize 2020-04-29 19:24:04 +02:00
Marcin Krzyzanowski 10db3c3896 Reorganize project. Move terminal apps into TerminalApp directory. Reference project from SwiftTErm.xcworkspace for Xcode 2020-04-28 12:58:18 +02:00