* Implementing remote SSH profiles. * Fixing async terminal adds. * Improving behavior when new window is requested. * Minor changes. * Move ssh profiles to roaming, rename sshshellprofile to sshprofile
35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
using FluentTerminal.Models;
|
|
using FluentTerminal.Models.Enums;
|
|
using FluentTerminal.Models.Responses;
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FluentTerminal.App.Services
|
|
{
|
|
public interface ITrayProcessCommunicationService
|
|
{
|
|
event EventHandler<TerminalExitStatus> TerminalExited;
|
|
|
|
void Initialize(IAppServiceConnection appServiceConnection);
|
|
|
|
Task<CreateTerminalResponse> CreateTerminal(byte id, TerminalSize size, ShellProfile shellProfile, SessionType sessionType);
|
|
|
|
Task ResizeTerminal(byte id, TerminalSize size);
|
|
|
|
Task UpdateToggleWindowKeyBindings();
|
|
|
|
Task Write(byte terminalId, byte[] data);
|
|
|
|
void SubscribeForTerminalOutput(byte terminalId, Action<byte[]> callback);
|
|
|
|
Task CloseTerminal(byte terminalId);
|
|
Task<GetAvailablePortResponse> GetAvailablePort();
|
|
byte GetNextTerminalId();
|
|
|
|
Task<string> GetUserName();
|
|
|
|
Task<string> GetMoshSshPath(bool isMosh);
|
|
|
|
Task SaveTextFileAsync(string path, string content);
|
|
}
|
|
} |