Commit Graph

  • a9d9673300 Ignore gestures on subviews main osy 2022-05-23 17:11:22 -07:00
  • 4f4592f2a8 Lower minimum iOS deployment target to iOS 11 osy 2022-05-22 21:31:58 -07:00
  • 43ca63b501 Various memory leak fixes in Terminal Miguel de Icaza 2022-05-06 13:38:25 -04:00
  • a422359674 When the selection is set to active, always notify of a change, we were missing key updates after the last code deduplication. Also, add some debugging aids Miguel de Icaza 2022-05-05 16:42:27 -04:00
  • fb1c3be376 Fix issue reported on TestFlight: 'Was sshed to Linux host in less, going to top and bottom of file with key commands.' Miguel de Icaza 2022-05-05 16:23:12 -04:00
  • 2066ad05fe Make the tests work on modern macOS that lacks Python 2.7 Miguel de Icaza 2022-05-05 16:22:05 -04:00
  • c7bf7884b9 I commited the wrong selection fix, this does the actual validation that was intended Miguel de Icaza 2022-05-05 16:21:52 -04:00
  • f2c34f123d There are two codepaths for text insertion, and my previous patch for handling newlines only handled one. In addition to handling regular input from the keyboard, the input mechanism might send a newline, convert this to the sequence there as well Miguel de Icaza 2022-05-03 23:09:26 -04:00
  • 2b52b9c720 Be more generous with the space on the iPad, I think I could add more gadgets here Miguel de Icaza 2022-05-02 17:55:54 -04:00
  • 126034379f Break a cycle in the buffer Miguel de Icaza 2022-04-30 21:48:48 -04:00
  • 50d785a0dd Harden text input, crash reported here Miguel de Icaza 2022-04-16 22:17:44 -04:00
  • 9bf4413ed6 iOS: Process all presses provided to pressesEvents, like the Apple documentation recommends. Althought I have never seen one of these events come with more than one key, nonetheless, it makes sense. Miguel de Icaza 2022-04-16 10:27:10 -04:00
  • 898e2f2d46 When the terminal changes its size, kill the selection. Also, there is no need for selectNone() to call selectionChanged, as active does that for us Miguel de Icaza 2022-04-15 16:31:47 -04:00
  • 5561564c41 Implement the informal protocol to surface the Copy, Paste and Select All options. This surfaces these commands on the iPad context menu Miguel de Icaza 2022-04-15 13:49:22 -04:00
  • 3e53372c97 Do not capture regular keys if the command key is pressed, as that is likely captured by consumers as a hotkey Miguel de Icaza 2022-04-15 13:26:29 -04:00
  • 2629cc146b iOS/Style: need to draw the selection handles after the buffer is drawn, otherwise the next line overrides parts of the handle Miguel de Icaza 2022-04-14 16:19:16 -04:00
  • fe0f8b67a9 Close the context popup if the selection is removed Miguel de Icaza 2022-04-14 15:37:54 -04:00
  • 43b9810a95 The field 'sentData' was a debugging aid that was committed, should have never been done this way, fix it Miguel de Icaza 2022-04-12 11:41:56 -04:00
  • 341317e628 Make the SwiftTerminal focusable for iPad Miguel de Icaza 2022-04-12 11:30:38 -04:00
  • 8aeeb8fc80 iOS: Sends a carriage return when the return key is pressed, rather than newline. This seems to work on both Unix and Windows hosts. Added a property that can be configured externally if the user desires to change this Miguel de Icaza 2022-04-12 10:31:53 -04:00
  • 4d33ba5a69 Fix some selection issues with a disconnect between screen-visible position, and buffer-relative positions, I think the long-term correct solution is to have two data types to avoid mixing those up by accident Miguel de Icaza 2022-04-07 18:08:01 -04:00
  • dcdda89893 Do not extend if the pivot was not previously set to match iOS behavior (close, iOS would do a 'drag' at this point) and change the pivot point Miguel de Icaza 2022-04-07 17:38:10 -04:00
  • 71fd497243 iOS: Rather than using Mac-desktop semantics for selection and extending, use an iOS-styled pivot for the selection Miguel de Icaza 2022-04-07 17:06:29 -04:00
  • 04632894a4 Make my life easy Miguel de Icaza 2022-04-07 17:05:34 -04:00
  • 32d7f8f62b Change the rendering of any padding to not be the extension of the attributes on the last line Miguel de Icaza 2022-03-25 17:52:03 -04:00
  • d661230c69 Some documentation touch-ups Miguel de Icaza 2022-01-13 11:31:58 -05:00
  • dc592c57d3 Fix Mac build on actions Miguel de Icaza 2022-01-13 11:23:41 -05:00
  • 1b325efdfa Merge pull request #204 from krzyzanowskim/marcin/terminate-localprocess Miguel de Icaza 2022-01-13 11:14:14 -05:00
  • 2b617db718 terminate process with SIGTERM Marcin Krzyzanowski 2022-01-12 19:06:25 +01:00
  • 8db7bc3820 Terminate local process Marcin Krzyzanowski 2022-01-12 02:35:20 +01:00
  • 841c20c26c Fix for #197, from Daniel Fischer, update the color parsed, not the foreground color Miguel de Icaza 2021-11-01 21:25:31 -04:00
  • a1c420bc67 Merge pull request #198 from kevinfr95/main Miguel de Icaza 2021-11-01 21:20:13 -04:00
  • 8dcce2fdf8 Add check for position when one of them is initial = 2021-10-19 18:19:26 +02:00
  • 8094937a8b The system might call frame or bounds, not just bounds as I previously thought Miguel de Icaza 2021-08-04 23:12:51 -04:00
  • 731731c029 Band aid until the Xcode regression is solved Miguel de Icaza 2021-07-20 17:32:50 -04:00
  • 67e301b66e Move some common APIs from MacTerminalView to AppleTerminalView so they can be used on iOS as well Miguel de Icaza 2021-07-17 23:57:02 -04:00
  • a09826cc9d Disable the debug logging of data Miguel de Icaza 2021-07-17 00:35:28 -04:00
  • c4547d91ae If the selection is not active, do not trigger the selectionChanged to nothing Miguel de Icaza 2021-07-17 00:35:06 -04:00
  • 1febeffb3d Missing if(iOS) Miguel de Icaza 2021-07-16 23:58:25 -04:00
  • 0219f53cf3 Small UI touchup for the keyboard, larger buttons on iPad (by fixing a bug), reuse some code Miguel de Icaza 2021-07-15 23:23:13 -04:00
  • fad3c53315 Implement the helper keyboard. Miguel de Icaza 2021-07-15 22:55:43 -04:00
  • c51ddee19b Better use of space on iPads Miguel de Icaza 2021-07-14 18:12:25 -04:00
  • a262dea69e Keyboard accessory improvement: Started as a dual-input keyboard button patch, but in the end, managed to get everything to fit in both small and large iPhone form factors; Will likely still use the dual-button for other scenarios. Untested on the iPad size Miguel de Icaza 2021-07-13 23:17:29 -04:00
  • 24f4a8e046 Change the name Miguel de Icaza 2021-07-13 21:26:08 -04:00
  • 5cfb75fa16 Add file Miguel de Icaza 2021-07-13 20:15:43 -04:00
  • 6614b86f07 Allow pan gestures to be a cursor key when the allowMouseReporting is false, and provide some visual feedback; Undo the changes to allow external inputViews, as that did not work out at all Miguel de Icaza 2021-07-01 23:09:54 -04:00
  • d3c594e87c Change of plans, Work in progress customKeyboard Miguel de Icaza 2021-06-29 23:44:45 -04:00
  • 29e132a363 The "allowMouseReporting" inputAccessoryItem is no longer surfaced here, instead, took the space for the auxiliary keyboard input, which is now requested from a client app - the only reason is that the prototype I wrote uses SwiftUI, and I need a UIViewController to do the view rehosting, and that is not possible on the library itself. Miguel de Icaza 2021-06-29 22:23:23 -04:00
  • 6070699470 Small usability tune up: hide the menu on a tap Miguel de Icaza 2021-06-26 00:03:35 -04:00
  • 8617159525 Fix Mac Build Miguel de Icaza 2021-06-25 23:51:15 -04:00
  • 4ee1baefa8 iOS TerminalView: change the way selection works in a few ways. Now, it behaves more like a text input control in iOS. A long-press will add a "Select" option. Miguel de Icaza 2021-06-25 23:41:30 -04:00
  • 0945f8b47b Expose EscapeSequences Miguel de Icaza 2021-06-20 22:53:19 -04:00
  • dddefcdde6 Unify the code that handles a terminal surface size changed across Mac and iOS, into a new function processSizeChange, which additionally reports whether the underlying terminal size has changed, which we use to avoid unnecessary redraws while resizing Miguel de Icaza 2021-06-19 12:31:39 -04:00
  • da143adc08 AppleTerminal: pageUp/pageDown methods send page up/page escape sequences when on the alternate screen, rather than scrolling Miguel de Icaza 2021-06-19 11:55:19 -04:00
  • 13d535f108 Brings to Mac the same bounds fix that I did to iOS, where I was queuing the wrong chunk of data. Miguel de Icaza 2021-06-18 19:53:42 -04:00
  • 5851eb4f32 Merge pull request #182 from loganmoseley/patch-1 Miguel de Icaza 2021-06-18 21:19:13 -04:00
  • 35f80d52cc Brings to Mac the same bounds fix that I did to iOS, where I was queuing the wrong chunk of data. master Miguel de Icaza 2021-06-18 19:53:42 -04:00
  • 29fb52f0a5 Update file paths in the Readme Logan Moseley 2021-06-18 06:11:08 -04:00
  • 27b837b043 Update README.md Miguel de Icaza 2021-06-09 18:29:21 -04:00
  • 179d03b1c6 On iOS 15, use the more reliable keyboardLayoutGuide to automatically track the keyboard, instead of the manual event handling. Keep the old code for educational purposes Miguel de Icaza 2021-06-09 18:18:31 -04:00
  • 9b3321c836 Hook up to bounds, not frame, as the former is called when autolayout computes our size, and the latter is not. Miguel de Icaza 2021-06-09 18:17:37 -04:00
  • bf3a243436 Clear the colors cache when installing all colors, but do not override other individual actions Miguel de Icaza 2021-05-23 00:13:06 -04:00
  • 57d509dbc1 Clear the colors cache when installing all colors, but do not override other individual actions Miguel de Icaza 2021-05-23 00:12:52 -04:00
  • 8774d386e2 AppleTerminalView: after color changes, trigger a redisplay, otherwise, we had to trigger some input for the display to change after a theme change. Additionally, clear the color cache when a new set of colors have been installed, otherwise it would keep the old color settings Miguel de Icaza 2021-05-23 00:11:22 -04:00
  • b72c83e205 Important to set the textContenType, the familyName told iOS to auto-complete with your name, which you do not want on a terminal Miguel de Icaza 2021-05-07 00:21:48 -04:00
  • 063b5c5657 Dispatch events from the background to the main queue Miguel de Icaza 2021-05-07 00:05:26 -04:00
  • c9cd1482e9 Dispatch events from the background to the main queue Miguel de Icaza 2021-05-06 23:47:13 -04:00
  • 66c7f22ec7 Mouse mode is automatically tracked depending on the alternate buffer; Fixes the selection rendering; Makes the UITextInput less verbose uitextinput-strategy-3 Miguel de Icaza 2021-05-03 19:58:28 -04:00
  • b137f0941c Merge pull request #169 from migueldeicaza/uitextinput-strategy-3 Miguel de Icaza 2021-05-02 22:20:39 -04:00
  • 251612b4bd Merge main Miguel de Icaza 2021-05-02 22:11:39 -04:00
  • 80088184cc Merge Miguel de Icaza 2021-05-02 22:08:27 -04:00
  • 98c1f1e03b Make open Miguel de Icaza 2021-04-30 14:33:47 -04:00
  • 70a3af884c Improve color parsing, add some tests 1.0.7 Miguel de Icaza 2021-04-29 22:13:51 -04:00
  • fcefefd991 Colors: add a mechanism to resolve the ambiguity between the two ways of representing colors that were conflicting with each other due to mistakes made over the years in the community. Various fixes from Fuzzing Miguel de Icaza 2021-04-29 20:14:07 -04:00
  • 34e94a021f Fix the rendering: the row is relative to the buffer, not visual. This caused the selection bugs, and the rendering problems with the backgrounds Miguel de Icaza 2021-04-29 20:08:43 -04:00
  • bf83751406 Updated API docs 1.0.6 Miguel de Icaza 2021-04-28 22:18:10 -04:00
  • c0175913df Bug fixes from fuzzing SwiftTerm Miguel de Icaza 2021-04-28 21:47:42 -04:00
  • 1216e9b925 Update README.md Miguel de Icaza 2021-04-28 12:55:54 -04:00
  • bc716ff432 iTerm image support (#178) Miguel de Icaza 2021-04-27 23:32:47 -04:00
  • cfe482f03a Update swift.yml Miguel de Icaza 2021-04-27 23:21:58 -04:00
  • 3961216c1b Turns out that we should not set the automatic conversion of newlines into newline + carriage return by default. This broke Emacs rendering, and it is not the baseline setting that we should have. Miguel de Icaza 2021-04-27 21:15:21 -04:00
  • b7e6c6a216 Render images after the text, fixes sixel rendering inside SwiftTermApp that changes defaults colors, and also simplifies the TerminalImage protocol Miguel de Icaza 2021-04-23 21:47:58 -04:00
  • f2156280dc Report Sixel through the proper channels 1.0.5 Miguel de Icaza 2021-04-23 18:28:02 -04:00
  • 9684765739 Add Anders. Miguel de Icaza 2021-04-23 14:23:05 -04:00
  • ed210c425b Provide a way of setting COLORTERM=truecolor 1.0.4 Miguel de Icaza 2021-04-22 22:30:10 -04:00
  • da965ea7ef Make the arrow keys easier to hit, and prepare to have a custom keyboard for additional input Miguel de Icaza 2021-04-22 20:32:41 -04:00
  • 4687e4cf29 Attempt to get code coverage out of each build Miguel de Icaza 2021-04-22 20:15:37 -04:00
  • 1570c7b69d Do not use safeAreaInsets.bottom for computing the terminal size, as that just adds another row of padding Miguel de Icaza 2021-04-22 20:14:58 -04:00
  • 5a986a8a15 Resolve a few issues from reviewing the patch Miguel de Icaza 2021-04-22 20:03:12 -04:00
  • f83d75aa73 Merge branch 'main' into uitextinput-strategy-3 Miguel de Icaza 2021-04-22 10:51:20 -04:00
  • 388efe52cb Use new branch name for CI Miguel de Icaza 2021-04-21 22:51:17 -04:00
  • c2b9ba7b2b Fix iOS build Miguel de Icaza 2021-04-21 22:38:06 -04:00
  • b64ea26a81 Update README.md Miguel de Icaza 2021-04-21 22:38:41 -04:00
  • 3f7bed2243 Update README.md Miguel de Icaza 2021-04-21 22:33:37 -04:00
  • 3cbda01601 Sixel progress: I do like this approach a lot more. Now, when an image has bee completed, it is the job of the front-end to insert it in a way that is suitable. Miguel de Icaza 2021-04-21 22:23:52 -04:00
  • 86afcff06c Much faster sixel parser, HSL parsing is not working Miguel de Icaza 2021-04-20 23:33:53 -04:00
  • 51da63c8b0 More work on Sixel, large images are not scaled, nor do they render when they are out of the screen, since there is no backreference to the image that sourced this Miguel de Icaza 2021-04-19 23:29:26 -04:00
  • 63dc5508a9 Restructured a bit how the Sixel image loading will take place, rather than embedding platform specific information inside Terminal (AppKit/UIKit), the handling of the image is delegated to the platform specific part. Miguel de Icaza 2021-04-17 23:26:20 -04:00
  • 905d816cd8 Bring the changes and improvements from https://github.com/migueldeicaza/SwiftTerm/pull/168 Miguel de Icaza 2021-04-17 21:39:22 -04:00
  • 6e2e3e72c9 Due to internal dependencies between the Terminal class and various of its helper classes, the code created a strong cycle, that prevented the Terminal resources from being disposed. Miguel de Icaza 2021-04-17 19:55:49 -04:00