Skip to content

Commit

Permalink
Recognize terminal mouse input and generate MOUSE_EVENT records.
Browse files Browse the repository at this point in the history
Tracked by #57
  • Loading branch information
rprichard committed Dec 16, 2015
1 parent d4b4cb6 commit 48ddc93
Show file tree
Hide file tree
Showing 3 changed files with 333 additions and 88 deletions.
2 changes: 2 additions & 0 deletions src/agent/Agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ void Agent::updateMouseInputFlag(bool forceTrace)
newFlag ? "enabled" : "disabled");
}
m_consoleMouseInputFlag = newFlag;
m_consoleInput->setMouseInputEnabled(newFlag);
}

void Agent::onPollTimeout()
Expand Down Expand Up @@ -584,6 +585,7 @@ void Agent::syncConsoleContentAndSize(bool forceResize)
syncConsoleTitle();

const ConsoleScreenBufferInfo info = m_console->bufferInfo();
m_consoleInput->setMouseWindowRect(info.windowRect());

// If an app resizes the buffer height, then we enter "direct mode", where
// we stop trying to track incremental console changes.
Expand Down
Loading

0 comments on commit 48ddc93

Please sign in to comment.