Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion demos/mouse/source/mouse.d
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ void main()
s.showCursor(Cursor.hidden);
s.enableMouse(MouseEnable.all);
s.enablePaste(true);
s.enableFocus(true);
Style white;
white.fg = Color.midnightBlue;
white.bg = Color.lightCoral;
Expand Down
9 changes: 0 additions & 9 deletions source/dcell/screen.d
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,6 @@ interface Screen
*/
void enablePaste(bool b);

/**
* Enable focus reporting. This will cause focus events to be sent
* when the window focus changes.
*
* Params:
* b = true to enable focus reporting, false to disable
*/
void enableFocus(bool b);

/**
* Enable mouse mode. This can cause terminals/emulators
* to behave differently -- for example affecting the ability
Expand Down
7 changes: 1 addition & 6 deletions source/dcell/ttyscreen.d
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ class TtyScreen : Screen
}
puts(vt.saveTitle);
puts(vt.enterKeypad);
puts(vt.enableFocus);
puts(vt.enableAltChars);
puts(vt.clear);

Expand Down Expand Up @@ -418,12 +419,6 @@ class TtyScreen : Screen
sendMouseEnable(en);
}

void enableFocus(bool enabled)
{
puts(enabled ? Vt.enableFocus : Vt.disableFocus);
flush();
}

void enableAlternateScreen(bool enabled)
{
altScrEn = enabled;
Expand Down