本文整理汇总了C#中Poderosa.Connection.ConnectionTag类的典型用法代码示例。如果您正苦于以下问题:C# ConnectionTag类的具体用法?C# ConnectionTag怎么用?C# ConnectionTag使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ConnectionTag类属于Poderosa.Connection命名空间,在下文中一共展示了ConnectionTag类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ClearTimerToConnectionTag
public void ClearTimerToConnectionTag(ConnectionTag ct)
{
if(ct.Timer!=null) {
ct.Timer.Dispose();
ct.Timer = null;
}
}
示例2: PasteProcessor
public PasteProcessor(ConnectionTag tag, string text)
{
_tag = tag;
StringReader r = new StringReader(text);
Fill(r);
r.Close();
}
示例3: XTerm
public XTerm(ConnectionTag tag, ICharDecoder decoder)
: base(tag, decoder)
{
_wrapAroundMode = true;
_tabStops = new bool[tag.Connection.TerminalWidth];
InitTabStops();
}
示例4: CloseConnection
public void CloseConnection(ConnectionTag tag)
{
_connection = tag.Connection;
lock(this) {
SendMessageCore(CService.CloseConnection);
}
}
示例5: ActivateConnection
public void ActivateConnection(ConnectionTag tag)
{
lock(this) {
_connection = tag.Connection;
SendMessageCore(CService.ActivateConnection);
}
}
示例6: VT100Terminal
public VT100Terminal(ConnectionTag tag, ICharDecoder decoder)
: base(tag, decoder)
{
_insertMode = false;
_scrollRegionRelative = false;
bool sfu = tag.Connection.Param is SFUTerminalParam;
_homePositionOnCSIJ2 = sfu;
}
示例7: EmulateWithLog
//�f�o�b�O�p�ɁA�O����XML�`�����O��ǂ�ŃG�~�����[�g�����
public static void EmulateWithLog(XmlReader reader, ConnectionTag tag)
{
ITerminal term = tag.Terminal;
TerminalDocument doc = tag.Document;
StringBuilder buf = new StringBuilder();
reader.ReadStartElement("terminal-log");
try {
do {
if(reader.NodeType==XmlNodeType.Text || reader.NodeType==XmlNodeType.Whitespace)
buf.Append(reader.Value);
else if(reader.NodeType==XmlNodeType.Element) {
if(reader.Name=="ESC") {
buf.Append((char)0x1B);
buf.Append(reader.GetAttribute("seq"));
}
else if(reader.Name=="BS")
buf.Append((char)0x8);
else if(reader.Name=="BEL")
buf.Append((char)0x7);
else if(reader.Name=="dump") {
buf = Flush(tag, buf);
doc.Dump(reader.GetAttribute("title"));
}
else if(reader.Name=="comment") {
buf = Flush(tag, buf);
while(reader.NodeType!=XmlNodeType.EndElement || reader.Name!="comment") {
reader.Read();
if(reader.NodeType==XmlNodeType.Text)
GEnv.InterThreadUIService.Warning(doc, reader.Value);
}
}
else if(reader.Name=="break") {
Debug.WriteLine("BREAK "+reader.GetAttribute("title"));
Debugger.Break();
buf = Flush(tag, buf);
}
else if(reader.Name=="PD") {
buf = Flush(tag, buf);
}
else if(reader.Name=="pause") {
buf = Flush(tag, buf);
GEnv.InterThreadUIService.Warning(doc, reader.GetAttribute("title"));
}
else if(reader.Name!="SI" && reader.Name!="SO" && reader.Name!="NUL" && reader.Name!="terminal-size")
Debug.WriteLine("Unsupported element "+reader.Name);
}
else if(reader.NodeType==XmlNodeType.EndElement) {
if(reader.Name=="terminal-log") {
Flush(tag, buf);
}
}
} while(reader.Read());
}
catch(Exception ex) {
Debug.WriteLine(ex.Message);
Debug.WriteLine(ex.StackTrace);
}
}
示例8: AbstractTerminal
/// <summary>
/// ����̑ΏۂɂȂ�h�L�������g�ƕ����̃G���R�[�f�B���O��w�肵�č\�z
/// </summary>
public AbstractTerminal(ConnectionTag tag, ICharDecoder decoder)
{
_tag = tag;
_decoder = decoder;
_terminalMode = TerminalMode.Normal;
_currentdecoration = TextDecoration.Default;
_manipulator = new GLineManipulator(80);
_bufferForMacro = new StringBuilder();
_signalForMacro = new AutoResetEvent(false);
}
示例9: SetTimerToConnectionTag
public void SetTimerToConnectionTag(ConnectionTag ct)
{
if(GEnv.Options.KeepAliveInterval==0) {
if(ct.Timer!=null) {
ct.Timer.Dispose();
ct.Timer = null;
}
}
else {
if(ct.Timer==null)
ct.Timer = new Timer(new TimerCallback(OnTimer), ct, GEnv.Options.KeepAliveInterval, Timeout.Infinite);
else
ct.Timer.Change(GEnv.Options.KeepAliveInterval, Timeout.Infinite);
}
}
示例10: SetConnectionLocation
public void SetConnectionLocation(ConnectionTag ct, IPoderosaTerminalPane pane)
{
if(ct.AttachedPane==null) { //��\���̂Ƃ�
ct.PositionIndex = GetPaneIndex(pane);
ct.PreservedPositionIndex = ct.PositionIndex; //�蓮�Őݒ肳�ꂽ�Ƃ��͂����ւ�L�^
ActivateConnection(ct);
}
else {
ActivateConnection(ct);
MovePane(ct, GetPaneIndex(pane));
}
}
示例11: Flush
private static StringBuilder Flush(ConnectionTag tag, StringBuilder buf)
{
char[] data = buf.ToString().ToCharArray();
tag.Terminal.Input(data, 0, data.Length);
tag.Pane.DataArrived();
return new StringBuilder();
}
示例12: SuccessfullyExit
//ISocketWithTimeoutClient �����͂��̃E�B���h�E�Ƃ͕ʂ̃X���b�h�Ŏ��s�����̂ŐT�d��
public void SuccessfullyExit(object result)
{
_result = (ConnectionTag)result;
//_result.SetServerInfo(((TCPTerminalParam)_result.Param).Host, swt.IPAddress);
Win32.SendMessage(_savedHWND, GConst.WMG_ASYNCCONNECT, IntPtr.Zero, new IntPtr(1));
}
示例13: AddNewTerminalInternal
//TerminalConnection
protected override void AddNewTerminalInternal(ConnectionTag con)
{
GApp.ConnectionHistory.Update(con.Connection.Param);
_frame.AddConnection(con);
_frame.AdjustMRUMenu();
ActivateConnection(con.Connection);
_frame.RefreshConnection(con);
}
示例14: ShowContextMenu
public void ShowContextMenu(System.Drawing.Point pt, ConnectionTag ct)
{
GApp.Frame.CommandTargetConnection = ct.Connection;
//���j���[��UI����
GApp.Frame.AdjustContextMenu(true, ct.Connection);
GApp.Frame.ContextMenu.Show(GApp.Frame, pt);
}
示例15: ActivateConnection
public void ActivateConnection(ConnectionTag ct)
{
GApp.GlobalCommandTarget.ActivateConnection2(ct);
}