Poderosa.Terminal.XTerm.EnsureTabStops(int)

Here are the examples of the csharp api class Poderosa.Terminal.XTerm.EnsureTabStops(int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

1. Example

Project: poderosa
Source File: XTerm.cs
View license
private void SetTabStop(int index, bool value) {
            EnsureTabStops(index + 1);
            _tabStops[index] = value;
        }

2. Example

Project: poderosa
Source File: XTerm.cs
View license
protected int GetPrevTabStop(int start) {
            EnsureTabStops(start + 1);

            int index = start - 1;
            while (index > 0) {
                if (_tabStops[index])
                    return index;
                index--;
            }
            return 0;
        }

3. Example

Project: poderosa
Source File: XTerm.cs
View license
protected override int GetNextTabStop(int start) {
            EnsureTabStops(Math.Max(start + 1, GetDocument().TerminalWidth));

            int index = start + 1;
            while (index < GetDocument().TerminalWidth) {
                if (_tabStops[index])
                    return index;
                index++;
            }
            return GetDocument().TerminalWidth - 1;
        }